public class CollapseExpandButton extends com.google.gwt.user.client.ui.Button implements AttributeWriteCollapsed
CollapseExpandButton
is a Button
used to collapse and
expand
a section that is typically located below it.Modifier and Type | Class and Description |
---|---|
static interface |
CollapseExpandButton.CollapseHandler
Interface for a handler that gets notified about
collapsing and
expanding . |
Modifier and Type | Field and Description |
---|---|
private boolean |
collapsed |
private CollapseExpandButton.CollapseHandler |
collapseHandler
The
CollapseExpandButton.CollapseHandler given at construction time. |
Constructor and Description |
---|
CollapseExpandButton(CollapseExpandButton.CollapseHandler collapseHandler)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
private NlsBundleClientUiRoot |
getBundle() |
boolean |
isCollapsed()
This method determines if this object is collapsed.
|
void |
setCollapsed(boolean collapsed)
This method sets the
collapsed status of this object. |
void |
setCollapsed(boolean newCollapsed,
boolean programmatic) |
getHTML, getText, setHTML, setHTML, setText
addBlurHandler, addClickHandler, addClickListener, addDoubleClickHandler, addDragEndHandler, addDragEnterHandler, addDragHandler, addDragLeaveHandler, addDragOverHandler, addDragStartHandler, addDropHandler, addFocusHandler, addFocusListener, addGestureChangeHandler, addGestureEndHandler, addGestureStartHandler, addKeyboardListener, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, addMouseDownHandler, addMouseListener, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseUpHandler, addMouseWheelHandler, addMouseWheelListener, addTouchCancelHandler, addTouchEndHandler, addTouchMoveHandler, addTouchStartHandler, getFocusImpl, getTabIndex, isEnabled, onAttach, removeClickListener, removeFocusListener, removeKeyboardListener, removeMouseListener, removeMouseWheelListener, setAccessKey, setEnabled, setFocus, setTabIndex
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
private final CollapseExpandButton.CollapseHandler collapseHandler
CollapseExpandButton.CollapseHandler
given at construction time.private boolean collapsed
isCollapsed()
public CollapseExpandButton(CollapseExpandButton.CollapseHandler collapseHandler)
collapseHandler
- is the CollapseExpandButton.CollapseHandler
notified about collapsing and expanding.private NlsBundleClientUiRoot getBundle()
NlsBundleClientUiRoot
.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 newCollapsed, boolean programmatic)
newCollapsed
- - see setCollapsed(boolean)
.programmatic
- - see UiEvent.isProgrammatic()
.public boolean isCollapsed()
isCollapsed
in interface AttributeReadCollapsed
true
if this object is collapsed, false
if expanded.Copyright © 2001–2016 mmm-Team. All rights reserved.