ModuleType
- Type of module supported by this panel builderpublic class DefaultModulePanel<ModuleType extends IModule<? extends ModuleConfig>> extends com.vaadin.ui.VerticalLayout implements IModuleAdminPanel<ModuleType>, UIConstants, IEventListener
Default implementation of module panel letting the user edit the module configuration through a generic auto-generated form.
com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListener
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener
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
SIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS
ADD_ICON, APPLY_ICON, DEL_ICON, EDIT_ICON, ERROR_ICON, HELP_ICON, INFO_ICON, LINK_ICON, MSG_REQUIRED_FIELD, PROP_AUTOSTART, PROP_ID, PROP_MODULECLASS, PROP_NAME, PROP_SEP, REFRESH_ICON, STYLE_COLORED, STYLE_H1, STYLE_H2, STYLE_H3, STYLE_LINK, STYLE_PRESSED, STYLE_QUIET, STYLE_SECTION_BUTTONS, STYLE_SMALL
Constructor and Description |
---|
DefaultModulePanel() |
Modifier and Type | Method and Description |
---|---|
void |
attach() |
void |
build(MyBeanItem<ModuleConfig> beanItem,
ModuleType module)
Builds the whole panel allowing interaction with a module
|
void |
detach() |
protected IModuleConfigForm |
getConfigForm(MyBeanItem<ModuleConfig> beanItem,
ModuleType module) |
void |
handleEvent(Event<?> e) |
protected void |
refreshErrorMessage() |
protected void |
refreshStatusMessage() |
addComponent, addComponent, addComponentAsFirst, addLayoutClickListener, addListener, getComponent, getComponentAlignment, getComponentCount, getComponentIndex, getCustomAttributes, getDefaultComponentAlignment, getExpandRatio, getMargin, getState, getState, isSpacing, iterator, readDesign, removeComponent, removeLayoutClickListener, removeListener, replaceComponent, setComponentAlignment, setDefaultComponentAlignment, setExpandRatio, setMargin, setMargin, setSpacing, writeDesign
addComponentAttachListener, addComponentDetachListener, addComponents, addListener, addListener, fireComponentAttachEvent, fireComponentDetachEvent, getComponentIterator, moveComponentsFrom, removeAllComponents, removeComponentAttachListener, removeComponentDetachListener, removeListener, removeListener, setHeight, setWidth
addListener, addShortcutListener, addStyleName, beforeClientResponse, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isImmediate, isOrHasAncestor, isReadOnly, isVisible, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setEnabled, setHeight, setHeightUndefined, setIcon, setId, setImmediate, setLocale, setParent, setPrimaryStyleName, setReadOnly, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidthUndefined
addAttachListener, 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, setResource
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addComponent, addComponents, addListener, addListener, getComponentCount, getComponentIterator, moveComponentsFrom, removeAllComponents, removeComponent, removeListener, removeListener, replaceComponent
addListener, addStyleName, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isReadOnly, isVisible, readDesign, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setReadOnly, setStyleName, setVisible, writeDesign
addAttachListener, addDetachListener, beforeClientResponse, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
public void build(MyBeanItem<ModuleConfig> beanItem, ModuleType module)
IModuleAdminPanel
build
in interface IModuleAdminPanel<ModuleType extends IModule<? extends ModuleConfig>>
beanItem
- bean item associated to the configuration propertiesmodule
- module instance or null if module hasn't been loadedprotected void refreshStatusMessage()
protected void refreshErrorMessage()
protected IModuleConfigForm getConfigForm(MyBeanItem<ModuleConfig> beanItem, ModuleType module)
public void attach()
attach
in interface com.vaadin.server.ClientConnector
attach
in interface com.vaadin.ui.Component
attach
in class com.vaadin.ui.AbstractComponent
public void detach()
detach
in interface com.vaadin.server.ClientConnector
detach
in class com.vaadin.ui.AbstractComponent
public void handleEvent(Event<?> e)
handleEvent
in interface IEventListener
Copyright © 2016 Sensia Software LLC. All rights reserved.