public class GridStackDashboardWidget
extends com.vaadin.ui.CssLayout
com.vaadin.ui.Layout.AlignmentHandler, com.vaadin.ui.Layout.MarginHandler, com.vaadin.ui.Layout.SpacingHandlercom.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListenercom.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listenercom.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener| Modifier and Type | Field and Description |
|---|---|
Serializable |
tag
A serializable representation of the widget definition record.
|
| Constructor and Description |
|---|
GridStackDashboardWidget(com.vaadin.ui.Component c,
GridStackDashboard.DashboardCommunication comm)
Constructor for
GridStackDashboard widget representation,
creates necessary layout for holding widget content. |
| Modifier and Type | Method and Description |
|---|---|
void |
addInternalStateUpdateListener(GridStackDashboardWidgetUpdateListener listener)
Adds a state update listener.
|
String |
getCaption() |
com.vaadin.ui.Component |
getContent()
Gets the widget content.
|
Rectangle |
getPosition()
Gets currently stored position
|
com.vaadin.ui.Component |
getToolbarComponent()
Returns the current toolbar component or
null if there is none. |
boolean |
isClosed() |
boolean |
isMaximized()
Indicates if the widget is maximized.
|
boolean |
isMinimized()
Indicates if the widget is minimized.
|
void |
maximize()
Maximizes widget.
|
void |
minimize()
Minimize widget.
|
void |
restoreMaximized()
Restore if maximized.
|
void |
restoreMinimized()
Restore if minimized.
|
void |
setCaption(String caption) |
void |
setClosed(boolean closed)
Sets the closed state flag to true.
|
void |
setMaximizeWindowTooltip(String maximizeTooltip,
String restoreTooltip)
Tooltip for maximize widget button.
|
void |
setMinimizeWindowTooltip(String minimizeTooltip,
String restoreTooltip)
Tooltip for minimize widget button.
|
void |
setPosition(Rectangle position)
Sets stored position and updates the client.
|
void |
setPositionOnServer(Rectangle position)
Sets stored position, does not update client.
|
void |
setReadOnly(boolean readOnly) |
void |
setToolbar(com.vaadin.ui.Component component)
Sets component to toolbar
|
String |
toString() |
addComponent, addComponent, addComponentAsFirst, addLayoutClickListener, addListener, beforeClientResponse, getComponent, getComponentCount, getComponentIndex, getCss, getState, iterator, readDesign, removeComponent, removeLayoutClickListener, removeListener, replaceComponent, writeDesignaddComponentAttachListener, addComponentDetachListener, addComponents, addListener, addListener, fireComponentAttachEvent, fireComponentDetachEvent, getComponentIterator, moveComponentsFrom, removeAllComponents, removeComponentAttachListener, removeComponentDetachListener, removeListener, removeListener, setHeight, setWidthaddContextClickListener, addListener, addShortcutListener, addStyleName, attach, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getComponentError, getCustomAttributes, getData, getDebugId, getDescription, getErrorMessage, getExplicitImmediateValue, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getState, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isImmediate, isOrHasAncestor, isReadOnly, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setEnabled, setHeight, setHeightUndefined, setIcon, setId, setImmediate, setLocale, setParent, setPrimaryStyleName, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setStyleName, setVisible, setWidth, setWidthUndefinedaddAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResourceclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddComponents, addListener, addListener, getComponentIterator, moveComponentsFrom, removeAllComponents, removeListener, removeListeneraddListener, addStyleName, attach, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setVisibleaddAttachListener, addDetachListener, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlergetHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthUndefinedforEach, spliteratorpublic Serializable tag
public GridStackDashboardWidget(com.vaadin.ui.Component c,
GridStackDashboard.DashboardCommunication comm)
GridStackDashboard widget representation,
creates necessary layout for holding widget content.c - comm - public void setMinimizeWindowTooltip(String minimizeTooltip, String restoreTooltip)
minimizeTooltip - tooltip when the widget has normal sizerestoreTooltip - tooltip when the widget is minimizedpublic void setMaximizeWindowTooltip(String maximizeTooltip, String restoreTooltip)
maximizeTooltip - tooltip when the widget has normal sizerestoreTooltip - tooltip when the widget is maximizedpublic void minimize()
public void restoreMinimized()
public boolean isMinimized()
true if the widget is minimized.public void maximize()
public void restoreMaximized()
public boolean isMaximized()
true if the widget is maximized.public void addInternalStateUpdateListener(GridStackDashboardWidgetUpdateListener listener)
listener - public Rectangle getPosition()
public void setPosition(Rectangle position)
position - public void setPositionOnServer(Rectangle position)
GridStackDashboardWidget setPosition instead.position - public com.vaadin.ui.Component getContent()
public String getCaption()
getCaption in interface com.vaadin.ui.ComponentgetCaption in class com.vaadin.ui.AbstractComponentpublic void setCaption(String caption)
setCaption in interface com.vaadin.ui.ComponentsetCaption in class com.vaadin.ui.AbstractComponentpublic void setToolbar(com.vaadin.ui.Component component)
component - public com.vaadin.ui.Component getToolbarComponent()
null if there is none.public boolean isClosed()
public void setClosed(boolean closed)
closed - public void setReadOnly(boolean readOnly)
setReadOnly in interface com.vaadin.ui.ComponentsetReadOnly in class com.vaadin.ui.AbstractComponentCopyright © 2007-2018 Whitestein Technologies. All Rights Reserved.