ADAPTER
- is the generic type of AbstractUiWidgetNative.getWidgetAdapter()
.public abstract class AbstractUiWidgetTab<ADAPTER extends UiWidgetAdapterTab> extends AbstractUiWidgetSingleMutableComposite<ADAPTER,UiWidgetRegular> implements UiWidgetTab
UiWidgetTab
.AbstractUiWidgetNative.SizeImpl
AbstractUiWidget.AccessHelper, AbstractUiWidget.EventSender, AbstractUiWidget.HandlerContainer
Modifier and Type | Field and Description |
---|---|
private UiWidgetImage |
image |
private String |
label |
STYLE_PRIMARY
STYLE_HEADER
HTML_ATTRIBUTE_ID, ID_SEPARATOR, PROPERTY_ID
PROPERTY_STYLES, STYLE_PATTERN_MULTIPLE, STYLE_PATTERN_SINGLE
WAI_ARIA
PROPERTY_LABEL
Constructor and Description |
---|
AbstractUiWidgetTab(UiContext context,
ADAPTER widgetAdapter)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
UiWidgetImage |
getImage()
This method gets the
image of this object. |
String |
getLabel()
This method gets the label of this object.
|
String |
getSource() |
protected void |
initializeWidgetAdapter(ADAPTER adapter)
This method is called from
AbstractUiWidgetNative.getWidgetAdapter() to initialize the UiWidgetAdapter . |
void |
setImage(UiWidgetImage image)
This method sets the
image of this object. |
void |
setLabel(String label)
This method sets the
label of this object. |
setChild
doSetChild, getChild, getChild, getChildCount, getChildIndex, onChildRemoved, onChildSet
getChild
addChangeHandler, addStyle, clearMessages, clearValidity, createSize, createUniqueId, createWidgetAdapter, dispose, doGetValue, doSetMode, doSetValue, doValidate, getAriaRole, getAriaRoleFixedType, getId, getIndexOfStyle, getMode, getModeFixed, getParent, getPrimaryStyle, getSize, getStyles, getTooltip, getVisibleFlag, getWidgetAdapter, getWidgetAdapter, hasStyle, hasWidgetAdapter, isDisposed, isEnabled, isModifiedRecursive, isVisible, isVisibleRecursive, removeChangeHandler, removeFromParent, removeStyle, setAriaRole, setEnabled, setFocused, setId, setIdPrefix, setMode, setMode, setModeFixed, setParent, setPrimaryStyle, setStyles, setTooltip, setVisible, setVisible, toString, visibilityChanged
addEventHandler, addValidator, clearMessagesLocal, clearValidationFailure, convertValueToString, fireEvent, fireValueChange, getBasicUtil, getContext, getDataBinding, getDataBinding, getDataBindingForWidget, getEventSender, getFactory, getLogger, getObserverSource, getOriginalValue, getRecentValue, getValueClass, getValueDirect, getValueOrException, getWidgetAdapter, hasEventSender, isMandatory, isModified, removeEventHandler, removeFromParent, removeValidator, setMandatory, setModified, setParent, setValue
addValidatorMandatory, createValidationFailure, getValue, getValueAndValidate, handleGetValueError, resetValue, setValue, setValueForUser, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChild, getChildCount, setChild
getChild, getChild
getChildIndex
getContext, getParent, getSize
clearMessages
addEventHandler, removeEventHandler
setMode
getMode
setModeFixed
getModeFixed
setId
getId
setTooltip
getTooltip
getVisibleFlag, isVisible, setVisible, setVisible
isVisibleRecursive
setEnabled
isEnabled
addStyle, removeStyle
hasStyle
setStyles
getStyles
setPrimaryStyle
getPrimaryStyle
dispose
isDisposed
isModified
getAriaRole
validate
resetValue, setValue, setValueForUser
getValue
private String label
getLabel()
private UiWidgetImage image
getImage()
public AbstractUiWidgetTab(UiContext context, ADAPTER widgetAdapter)
context
- is the context
.widgetAdapter
- is the widget adapter
. Typically null
for
lazy initialization.protected void initializeWidgetAdapter(ADAPTER adapter)
AbstractUiWidgetNative.getWidgetAdapter()
to initialize the UiWidgetAdapter
. All
attributes of this widget need to be set in the UiWidgetAdapter
.initializeWidgetAdapter
in class AbstractUiWidgetSingleComposite<ADAPTER extends UiWidgetAdapterTab,UiWidgetRegular>
adapter
- is the UiWidgetAdapter
to initialize.public String getLabel()
getLabel
in interface AttributeReadLabel
public void setLabel(String label)
label
of this object.setLabel
in interface AttributeWriteLabel
label
- is the new label
to set.public UiWidgetImage getImage()
image
of this object. If the image is attached to an
object with arbitrary other features and has a smaller size, it is typically called icon.getImage
in interface AttributeReadImage<UiWidgetImage>
null
if no image is defined.public void setImage(UiWidgetImage image)
image
of this object. A previously set image will be replaced.setImage
in interface AttributeWriteImage<UiWidgetImage>
image
- is the new image
or null
to remove the image.public String getSource()
getSource
in class AbstractUiWidget<Void>
String
representation of this object that qualifies as source description that might be
displayed to end-users (unlike AbstractUiWidget.toString()
what is for debugging only).Copyright © 2001–2016 mmm-Team. All rights reserved.