public interface WidgetCaptionWrapper
WidgetCaptionEventListener| Modifier and Type | Field and Description |
|---|---|
static int |
CONTROL_CLOSE |
static int |
CONTROL_COLLAPSE |
static int |
CONTROL_MAXIMIZE |
static int |
CONTROL_MINIMIZE |
static String |
ON_CONTROL_STATE_CHANGE |
static String |
ON_WIDGET_CLOSE |
static String |
ON_WIDGET_COLLAPSE |
static String |
ON_WIDGET_FOCUS |
static String |
ON_WIDGET_MAXIMIZE |
static String |
ON_WIDGET_MINIMIZE |
static String |
ON_WIDGET_SIZE |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(String eventName,
WidgetCaptionEventListener eventListener) |
void |
close()
Closes the container (this usually means that the related widget instance is removed).
|
void |
hideContainerControls(int controls)
Call this in your renderer method to hide standard controls from the container, e.g.
|
boolean |
isClosable()
Returns true if the current state of the container allows closing.
|
boolean |
isCollapsed()
Returns true if the caption indicates that the container is collapsed.
|
boolean |
isCollapsible()
Returns true if the current state of the container allows collapsing.
|
boolean |
isFocused()
Returns true if the caption indicates that the container is focused/selected.
|
boolean |
isMaximizable()
Returns true if the current state of the container allows maximizing.
|
boolean |
isMaximized()
Returns true if the caption indicates that the container is maximized.
|
boolean |
isMinimizable()
Returns true if the current state of the container allows minimizing.
|
boolean |
isMinimized()
Returns true if the caption indicates that the container is minimized.
|
void |
setCollapsed(boolean collapsed)
Expands or collapses the container according to the argument.
|
void |
setFocused(boolean focused)
Sets the focus to (or selects) the current widget within it's widgetchildren container.
|
void |
setMaximized(boolean maximized)
Maximizes/unmaximizes the container according to the argument.
|
void |
setMinimized(boolean minimized)
Minimizes/unminimizes the container according to the argument.
|
static final String ON_WIDGET_COLLAPSE
static final String ON_WIDGET_MINIMIZE
static final String ON_WIDGET_MAXIMIZE
static final String ON_WIDGET_SIZE
static final String ON_WIDGET_FOCUS
static final String ON_WIDGET_CLOSE
static final String ON_CONTROL_STATE_CHANGE
static final int CONTROL_CLOSE
static final int CONTROL_COLLAPSE
static final int CONTROL_MINIMIZE
static final int CONTROL_MAXIMIZE
boolean isCollapsed()
void setCollapsed(boolean collapsed)
boolean isMinimized()
void setMinimized(boolean minimized)
boolean isMaximized()
void setMaximized(boolean maximized)
boolean isFocused()
void setFocused(boolean focused)
void close()
boolean isCollapsible()
boolean isMinimizable()
boolean isMaximizable()
boolean isClosable()
void hideContainerControls(int controls)
hideContainerControls(WidgetCaptionWrapper.CONTROL_MINIMIZE | WidgetCaptionWrapper.CONTROL_MAXIMIZE)
void addListener(String eventName, WidgetCaptionEventListener eventListener)
eventListener - a listener to be notified when an operation happensCopyright © 2018. All rights reserved.