ADAPTER - is the generic type of AbstractUiWidgetNative.getWidgetAdapter().public abstract class AbstractUiWidgetCollapsableBorderPanel<ADAPTER extends UiWidgetAdapterCollapsableBorderPanel> extends AbstractUiWidgetAbstractBorderPanel<ADAPTER> implements UiWidgetCollapsableBorderPanel
UiWidgetCollapsableBorderPanel.AbstractUiWidgetNative.SizeImplAbstractUiWidget.AccessHelper, AbstractUiWidget.EventSender, AbstractUiWidget.HandlerContainer| Modifier and Type | Field and Description |
|---|---|
private boolean |
collapsed |
STYLE_BORDER_PANELPROPERTY_STYLES, STYLE_PATTERN_MULTIPLE, STYLE_PATTERN_SINGLEPROPERTY_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, setLabelsetChilddoSetChild, getChild, getChild, getChildCount, getChildIndexgetChildaddChangeHandler, 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, visibilityChangedaddEventHandler, 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, setValueaddValidatorMandatory, createValidationFailure, getValue, getValueAndValidate, handleGetValueError, resetValue, setValue, setValueForUser, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsetChildgetChild, getChildCountgetChild, getChildgetChildIndexgetStylesgetPrimaryStylesetLabelgetLabelresetValue, setValue, setValueForUsergetValueprivate 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 AttributeReadCollapsedtrue if this object is collapsed, false if expanded.public void setCollapsed(boolean collapsed)
collapsed status of this object.setCollapsed in interface AttributeWriteCollapsedcollapsed - - 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 UiFeatureCollapsehandler - is the UiHandlerEventCollapse to add.public boolean removeCollapseHandle(UiHandlerEventCollapse handler)
UiHandlerEventCollapse from this object.removeCollapseHandle in interface UiFeatureCollapsehandler - 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.