ADAPTER
- is the generic type of AbstractUiWidgetNative.getWidgetAdapter()
.public abstract class AbstractUiWidgetCollapsableBorderPanel<ADAPTER extends UiWidgetAdapterCollapsableBorderPanel> extends AbstractUiWidgetAbstractBorderPanel<ADAPTER> implements UiWidgetCollapsableBorderPanel
UiWidgetCollapsableBorderPanel
.AbstractUiWidgetNative.SizeImpl
AbstractUiWidget.AccessHelper, AbstractUiWidget.EventSender, AbstractUiWidget.HandlerContainer
Modifier and Type | Field and Description |
---|---|
private boolean |
collapsed |
STYLE_BORDER_PANEL
PROPERTY_STYLES, STYLE_PATTERN_MULTIPLE, STYLE_PATTERN_SINGLE
PROPERTY_LABEL
Constructor and Description |
---|
AbstractUiWidgetCollapsableBorderPanel(UiContext context,
ADAPTER widgetAdapter)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addCollapseHandler(UiHandlerEventCollapse handler)
This method adds the given
UiHandlerEventCollapse to this object. |
protected void |
initializeWidgetAdapter(ADAPTER adapter)
This method is called from
AbstractUiWidgetNative.getWidgetAdapter() to initialize the UiWidgetAdapter . |
boolean |
isCollapsed()
This method determines if this object is collapsed.
|
protected void |
onChildRemoved(UiWidgetRegular oldChild) |
protected void |
onChildSet(UiWidgetRegular newChild) |
boolean |
removeCollapseHandle(UiHandlerEventCollapse handler)
This method removes the given
UiHandlerEventCollapse from this object. |
void |
setCollapsed(boolean collapsed)
This method sets the
collapsed status of this object. |
void |
setCollapsed(boolean collapsedFlag,
boolean programmatic,
boolean fromAdapter) |
getLabel, setLabel
setChild
doSetChild, getChild, getChild, getChildCount, getChildIndex
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, getSource, 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
setChild
getChild, getChildCount
getChild, getChild
getChildIndex
getStyles
getPrimaryStyle
setLabel
getLabel
resetValue, setValue, setValueForUser
getValue
private boolean collapsed
isCollapsed()
public AbstractUiWidgetCollapsableBorderPanel(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 AbstractUiWidgetAbstractBorderPanel<ADAPTER extends UiWidgetAdapterCollapsableBorderPanel>
adapter
- is the UiWidgetAdapter
to initialize.public boolean isCollapsed()
isCollapsed
in interface AttributeReadCollapsed
true
if this object is collapsed, false
if expanded.public void setCollapsed(boolean collapsed)
collapsed
status of this object.setCollapsed
in interface AttributeWriteCollapsed
collapsed
- - if true
the object will be collapsed, else it will be expanded.public void setCollapsed(boolean collapsedFlag, boolean programmatic, boolean fromAdapter)
collapsedFlag
- - see setCollapsed(boolean)
.programmatic
- - see UiEvent.isProgrammatic()
.fromAdapter
- - true
if this method is called from the widget adapter
, false
if called from this
UiWidget
.setCollapsed(boolean)
public void addCollapseHandler(UiHandlerEventCollapse handler)
UiHandlerEventCollapse
to this object.addCollapseHandler
in interface UiFeatureCollapse
handler
- is the UiHandlerEventCollapse
to add.public boolean removeCollapseHandle(UiHandlerEventCollapse handler)
UiHandlerEventCollapse
from this object.removeCollapseHandle
in interface UiFeatureCollapse
handler
- is the UiHandlerEventCollapse
to remove.true
if the handler
has been removed successfully, false
if it was NOT registered
and nothing has
changed.protected void onChildRemoved(UiWidgetRegular oldChild)
onChildRemoved
in class AbstractUiWidgetSingleComposite<ADAPTER extends UiWidgetAdapterCollapsableBorderPanel,UiWidgetRegular>
oldChild
- is the child that has just been removed.protected void onChildSet(UiWidgetRegular newChild)
onChildSet
in class AbstractUiWidgetSingleComposite<ADAPTER extends UiWidgetAdapterCollapsableBorderPanel,UiWidgetRegular>
newChild
- is the child that has just been set.Copyright © 2001–2016 mmm-Team. All rights reserved.