public class CmsMaxHeightExtension extends com.vaadin.server.AbstractExtension implements I_CmsMaxHeightServerRpc
| Modifier and Type | Class and Description |
|---|---|
static interface |
CmsMaxHeightExtension.I_HeightChangeHandler
Callback interfaces for height change notifications.
|
com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener| Constructor and Description |
|---|
CmsMaxHeightExtension(com.vaadin.ui.AbstractComponent component,
int maxHeight)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addHeightChangeHandler(CmsMaxHeightExtension.I_HeightChangeHandler action)
Adds an action to execute when the height is changed.
|
void |
fixHeight(int height)
Called in case the widget content exceeds the max height.
|
protected CmsMaxHeightState |
getState() |
void |
removeHeightChangeHandler(java.lang.Runnable action)
Removes a height change handler.
|
void |
updateMaxHeight(int maxHeight)
Updates the maximum height.
|
extend, getParent, getSupportedParentType, remove, setParentaddAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, attach, beforeClientResponse, createState, detach, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getState, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isConnectorEnabled, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource, updateDiffstateclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddAttachListener, addDetachListener, attach, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, getUI, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlerpublic CmsMaxHeightExtension(com.vaadin.ui.AbstractComponent component, int maxHeight)
component - the component to extendmaxHeight - the max heightpublic void addHeightChangeHandler(CmsMaxHeightExtension.I_HeightChangeHandler action)
action - the actionpublic void fixHeight(int height)
I_CmsMaxHeightServerRpcfixHeight in interface I_CmsMaxHeightServerRpcheight - the height to setI_CmsMaxHeightServerRpc.fixHeight(int)public void removeHeightChangeHandler(java.lang.Runnable action)
action - the handler to removepublic void updateMaxHeight(int maxHeight)
maxHeight - the new value for the maximum heightprotected CmsMaxHeightState getState()
getState in class com.vaadin.server.AbstractClientConnectorAbstractClientConnector.getState()