Interface WidgetCaptionWrapper
-
- All Known Implementing Classes:
DefaultWidgetCaptionWrapper
public interface WidgetCaptionWrapperWrapper interface to mediate between caption of a widgetContainer and the contained widget.- See Also:
WidgetCaptionEventListener
-
-
Field Summary
Fields Modifier and Type Field Description static intCONTROL_CLOSEstatic intCONTROL_COLLAPSEstatic intCONTROL_MAXIMIZEstatic intCONTROL_MINIMIZEstatic java.lang.StringON_CONTROL_STATE_CHANGEstatic java.lang.StringON_WIDGET_CLOSEstatic java.lang.StringON_WIDGET_COLLAPSEstatic java.lang.StringON_WIDGET_FOCUSstatic java.lang.StringON_WIDGET_MAXIMIZEstatic java.lang.StringON_WIDGET_MINIMIZEstatic java.lang.StringON_WIDGET_SIZE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddListener(java.lang.String eventName, WidgetCaptionEventListener eventListener)voidclose()Closes the container (this usually means that the related widget instance is removed).voidhideContainerControls(int controls)Call this in your renderer method to hide standard controls from the container, e.g.booleanisClosable()Returns true if the current state of the container allows closing.booleanisCollapsed()Returns true if the caption indicates that the container is collapsed.booleanisCollapsible()Returns true if the current state of the container allows collapsing.booleanisFocused()Returns true if the caption indicates that the container is focused/selected.booleanisMaximizable()Returns true if the current state of the container allows maximizing.booleanisMaximized()Returns true if the caption indicates that the container is maximized.booleanisMinimizable()Returns true if the current state of the container allows minimizing.booleanisMinimized()Returns true if the caption indicates that the container is minimized.voidsetCollapsed(boolean collapsed)Expands or collapses the container according to the argument.voidsetFocused(boolean focused)Sets the focus to (or selects) the current widget within it's widgetchildren container.voidsetMaximized(boolean maximized)Maximizes/unmaximizes the container according to the argument.voidsetMinimized(boolean minimized)Minimizes/unminimizes the container according to the argument.
-
-
-
Field Detail
-
ON_WIDGET_COLLAPSE
static final java.lang.String ON_WIDGET_COLLAPSE
- See Also:
- Constant Field Values
-
ON_WIDGET_MINIMIZE
static final java.lang.String ON_WIDGET_MINIMIZE
- See Also:
- Constant Field Values
-
ON_WIDGET_MAXIMIZE
static final java.lang.String ON_WIDGET_MAXIMIZE
- See Also:
- Constant Field Values
-
ON_WIDGET_SIZE
static final java.lang.String ON_WIDGET_SIZE
- See Also:
- Constant Field Values
-
ON_WIDGET_FOCUS
static final java.lang.String ON_WIDGET_FOCUS
- See Also:
- Constant Field Values
-
ON_WIDGET_CLOSE
static final java.lang.String ON_WIDGET_CLOSE
- See Also:
- Constant Field Values
-
ON_CONTROL_STATE_CHANGE
static final java.lang.String ON_CONTROL_STATE_CHANGE
- See Also:
- Constant Field Values
-
CONTROL_CLOSE
static final int CONTROL_CLOSE
- See Also:
- Constant Field Values
-
CONTROL_COLLAPSE
static final int CONTROL_COLLAPSE
- See Also:
- Constant Field Values
-
CONTROL_MINIMIZE
static final int CONTROL_MINIMIZE
- See Also:
- Constant Field Values
-
CONTROL_MAXIMIZE
static final int CONTROL_MAXIMIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
isCollapsed
boolean isCollapsed()
Returns true if the caption indicates that the container is collapsed.
-
setCollapsed
void setCollapsed(boolean collapsed)
Expands or collapses the container according to the argument.
-
isMinimized
boolean isMinimized()
Returns true if the caption indicates that the container is minimized.
-
setMinimized
void setMinimized(boolean minimized)
Minimizes/unminimizes the container according to the argument.
-
isMaximized
boolean isMaximized()
Returns true if the caption indicates that the container is maximized.
-
setMaximized
void setMaximized(boolean maximized)
Maximizes/unmaximizes the container according to the argument.
-
isFocused
boolean isFocused()
Returns true if the caption indicates that the container is focused/selected.
-
setFocused
void setFocused(boolean focused)
Sets the focus to (or selects) the current widget within it's widgetchildren container.
-
close
void close()
Closes the container (this usually means that the related widget instance is removed).
-
isCollapsible
boolean isCollapsible()
Returns true if the current state of the container allows collapsing.
-
isMinimizable
boolean isMinimizable()
Returns true if the current state of the container allows minimizing.
-
isMaximizable
boolean isMaximizable()
Returns true if the current state of the container allows maximizing.
-
isClosable
boolean isClosable()
Returns true if the current state of the container allows closing.
-
hideContainerControls
void hideContainerControls(int controls)
Call this in your renderer method to hide standard controls from the container, e.g. if you want to render buttons to control minimizing and maximizing of the widget and thus don't need the minimize/maximize buttons of a window/panel/... you could usehideContainerControls(WidgetCaptionWrapper.CONTROL_MINIMIZE | WidgetCaptionWrapper.CONTROL_MAXIMIZE)
-
addListener
void addListener(java.lang.String eventName, WidgetCaptionEventListener eventListener)- Parameters:
eventListener- a listener to be notified when an operation happens
-
-