public class UiWidgetAdapterGwtCollapsableBorderPanel extends UiWidgetAdapterGwtBorderPanel implements UiWidgetAdapterCollapsableBorderPanel, CollapseExpandButton.CollapseHandler
UiWidgetAdapterCollapsableBorderPanel
using GWT based on
Fieldset
and CollapseExpandButton
.Modifier and Type | Field and Description |
---|---|
private CollapseExpandButton |
collapseExpandButton
The
CollapseExpandButton for user interaction. |
TAB_INDEX_NONE
HTML_ATTRIBUTE_ID, ID_SEPARATOR, PROPERTY_ID
PROPERTY_STYLES, STYLE_PATTERN_MULTIPLE, STYLE_PATTERN_SINGLE
WAI_ARIA
PROPERTY_LABEL
ACCESS_KEY_NONE, HTML_ATTRIBUTE_ACCESS_KEY
ATTRIBUTE_COLSPAN
Constructor and Description |
---|
UiWidgetAdapterGwtCollapsableBorderPanel()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isCollapsed()
This method determines if this object is collapsed.
|
void |
onCollapse(boolean collapse,
boolean programmatic)
This method is called to notify about collapsing and expanding.
|
void |
setAccessKey(char accessKey)
This method sets the
accessKey attribute of this object. |
void |
setCollapsed(boolean collapsed)
This method sets the
collapsed status of this object. |
void |
setEnabled(boolean enabled)
This method sets the
enabled status of this object. |
boolean |
setFocused()
This method sets the
focus to this object. |
createToplevelWidget, setChild, setLabel
dispose, getActiveWidget, removeFromParent
addHandlerRegistration, addStyle, createAbsoluteImageUrl, createEventAdapter, getHeightInPixel, getImage, getImageParentElement, getLength, getSizeElement, getToplevelWidget, getToplevelWidget, getWidthInPixel, isStyleDeltaSupported, removeStyle, setAttribute, setId, setImage, setLength, setPrimaryStyle, setStyles, setTooltip, setVisible
applyEventAdapter, applyEventAdapterForChange, applyEventAdapterForClick, applyEventAdapterForFocus, applyEventAdapterForSelection, getEventAdapter, setEventSender
createLabel, getAccessKey, getAltText, getAttribute, getBundle, getColumnSpan, getContext, getHeightInRows, getId, getLabel, getMaximumTextLength, getPrimaryStyle, getSelectionMode, getStyles, getTitle, getTooltip, getToplevelWidget, getUiWidget, getUiWidgetTyped, getUrl, getValidationFailure, hasStyle, isDisposed, isEnabled, isFocused, isResizable, setMode, setParent, setUiWidget
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setChild
createAbsoluteImageUrl, createLabel, getToplevelWidget, isStyleDeltaSupported, removeFromParent, setEventSender, setMode, setParent, setVisible
setId
getId
setTooltip
getTooltip
isEnabled
addStyle, removeStyle
hasStyle
setStyles
getStyles
setPrimaryStyle
getPrimaryStyle
dispose
isDisposed
setLength
getLength
getHeightInPixel, getWidthInPixel
getAttribute
setAttribute
setLabel
getLabel
isFocused
getAccessKey
private final CollapseExpandButton collapseExpandButton
CollapseExpandButton
for user interaction.public UiWidgetAdapterGwtCollapsableBorderPanel()
public void setEnabled(boolean enabled)
enabled
status of this object. If it is disabled, the user can
not interact with the object.setEnabled
in interface AttributeWriteEnabled
setEnabled
in class UiWidgetAdapterGwtBorderPanel
enabled
- - if true
the object will be enabled, else the object will be disabled.public boolean setFocused()
focus
to this object. setFocused
in interface AttributeWriteOnlyFocused
true
if the focus has been set successfully, false
otherwise.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 setAccessKey(char accessKey)
accessKey
attribute of this object.setAccessKey
in interface AttributeWriteAccessKey
accessKey
- is the new value of AttributeReadAccessKey.getAccessKey()
. Use AttributeReadAccessKey.ACCESS_KEY_NONE
to unset.public void onCollapse(boolean collapse, boolean programmatic)
onCollapse
in interface CollapseExpandButton.CollapseHandler
collapse
- - true
if switched to collapsed state, false
if switched to
expanded state.programmatic
- - see UiEvent.isProgrammatic()
.Copyright © 2001–2016 mmm-Team. All rights reserved.