Class AbstractBasePropertiesComponent
Object
AbstractClientConnector
AbstractComponent
CustomComponent
AbstractBasePropertiesComponent
- All Implemented Interfaces:
HasValidator,ContextClickEvent.ContextClickNotifier,MethodEventSource,ClientConnector,Sizeable,Connector,Component,HasComponents,Serializable,Iterable<Component>
- Direct Known Subclasses:
AbstractFormElementPropertiesComponent,AbstractFormInstanceProperties
public abstract class AbstractBasePropertiesComponent
extends CustomComponent
implements HasValidator
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceNested classes/interfaces inherited from interface ClientConnector
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListenerNested classes/interfaces inherited from interface Component
Component.ErrorEvent, Component.Event, Component.Focusable, Component.ListenerNested classes/interfaces inherited from interface HasComponents
HasComponents.ComponentAttachDetachNotifier, HasComponents.ComponentAttachEvent, HasComponents.ComponentAttachListener, HasComponents.ComponentDetachEvent, HasComponents.ComponentDetachListenerNested classes/interfaces inherited from interface HasValidator
HasValidator.InvalidStateMessage, HasValidator.StateMessageAction, HasValidator.ValidationResultNested classes/interfaces inherited from interface Sizeable
Sizeable.Unit -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FormLayoutprotected Collection<HasValidator> protected final Itemprotected CssLayoutFields inherited from class AbstractComponent
DESIGN_ATTR_PLAIN_TEXTFields inherited from interface Sizeable
SIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PopupButtonaddPopupButton(String itemCaption, String buttonCaption, AbstractBasePropertiesComponent.PopupButtonContentGenerator generator) protected PopupButtonaddPopupButton(String itemCaption, String buttonCaption, Component component) protected voidaddPropertyEditor(Integer layoutId, String caption, Field<?> field, String propertyName) protected voidaddPropertyEditor(String caption, Field<?> field, String propertyName) protected voidaddPropertyEditorCustomComponent(Integer layoutId, String caption, Component uiElement) protected voidaddPropertyEditorCustomComponent(String caption, Component uiElement) addSeparator(String caption) addSeparator(String caption, boolean borderTop, boolean borderBottom) protected ComboBoxprotected ComboBoxcreateComboBox(Container container, String propertyId, boolean filterable, boolean allowNullSelection) protected ComboBoxcreateComboBox(Map<?, String> values) protected ComboBoxcreateComboBox(Map<?, String> values, boolean filterable, boolean allowNullSelection) protected Buttonprotected ButtoncreateDetailsButton(String caption, Resource icon) protected TextFieldcreateRegularDecimalField(Validator... validators) protected TextFieldcreateRegularDecimalField(String format, Validator... validators) protected NumericFieldcreateRegularNumericField(Validator... validators) protected TextAreacreateRegularTextArea(Validator... validators) protected TextFieldcreateRegularTextField(Validator... validators) protected voiddraw()protected Field<?> ItembooleanvoidvoidsetSeparatorVisible(Integer id, boolean visible) protected voidstyleTextField(TextField field) validate()Methods inherited from class CustomComponent
getComponentCount, getCompositionRoot, getState, getState, iterator, setCompositionRootMethods inherited from class AbstractComponent
addContextClickListener, addListener, addShortcutListener, addStyleName, attach, beforeClientResponse, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getCustomAttributes, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isOrHasAncestor, isReadOnly, isRequiredIndicatorVisible, isResponsive, isVisible, readDesign, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeight, setHeightFull, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setReadOnly, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidth, setWidthFull, setWidthUndefined, writeDesignMethods inherited from class AbstractClientConnector
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, 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, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource, updateDiffstateMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ClientConnector
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlerMethods inherited from interface Component
addListener, addStyleName, addStyleNames, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, readDesign, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisible, writeDesignMethods inherited from interface Connector
getConnectorIdMethods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface Sizeable
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightFull, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull, setWidthUndefined
-
Field Details
-
itemDataSource
protected final Item itemDataSource -
layoutContainer
protected CssLayout layoutContainer -
currentLayout
protected FormLayout currentLayout -
fields
-
fieldCaptions
-
hasValidators
-
-
Constructor Details
-
AbstractBasePropertiesComponent
public AbstractBasePropertiesComponent(Item itemDataSource)
-
-
Method Details
-
getItemDataSource
public Item getItemDataSource() -
draw
protected void draw() -
addSeparator
-
addSeparator
-
setSeparatorVisible
-
isSeparatorVisible
-
removeSeparator
-
createComboBox
protected ComboBox createComboBox() -
createComboBox
protected ComboBox createComboBox(Container container, String propertyId, boolean filterable, boolean allowNullSelection) -
createComboBox
-
createComboBox
-
createRegularTextField
protected TextField createRegularTextField(Validator... validators) -
createRegularTextArea
protected TextArea createRegularTextArea(Validator... validators) -
createRegularDecimalField
protected TextField createRegularDecimalField(Validator... validators) -
createRegularDecimalField
-
createRegularNumericField
protected NumericField createRegularNumericField(Validator... validators) -
styleTextField
protected void styleTextField(TextField field) -
addPropertyEditorCustomComponent
-
addPropertyEditorCustomComponent
-
addPropertyEditor
-
addPropertyEditor
-
createDetailsButton
protected Button createDetailsButton() -
createDetailsButton
-
addPopupButton
protected PopupButton addPopupButton(String itemCaption, String buttonCaption, AbstractBasePropertiesComponent.PopupButtonContentGenerator generator) -
addPopupButton
-
validate
- Specified by:
validatein interfaceHasValidator
-
getField
-