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 Classes
    Modifier and Type
    Class
    Description
    static interface 
     

    Nested classes/interfaces inherited from interface ClientConnector

    ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener

    Nested classes/interfaces inherited from interface Component

    Component.ErrorEvent, Component.Event, Component.Focusable, Component.Listener

    Nested classes/interfaces inherited from interface HasComponents

    HasComponents.ComponentAttachDetachNotifier, HasComponents.ComponentAttachEvent, HasComponents.ComponentAttachListener, HasComponents.ComponentDetachEvent, HasComponents.ComponentDetachListener

    Nested classes/interfaces inherited from interface Sizeable

    Sizeable.Unit
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected FormLayout
     
    protected Map<String,String>
     
    protected Map<String,Field<?>>
     
     
    protected final Item
     
    protected CssLayout
     

    Fields inherited from class AbstractComponent

    DESIGN_ATTR_PLAIN_TEXT

    Fields 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
    Constructor
    Description
    AbstractBasePropertiesComponent(Item itemDataSource)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected PopupButton
     
    protected PopupButton
    addPopupButton(String itemCaption, String buttonCaption, Component component)
     
    protected void
    addPropertyEditor(Integer layoutId, String caption, Field<?> field, String propertyName)
     
    protected void
    addPropertyEditor(String caption, Field<?> field, String propertyName)
     
    protected void
    addPropertyEditorCustomComponent(Integer layoutId, String caption, Component uiElement)
     
    protected void
    addPropertyEditorCustomComponent(String caption, Component uiElement)
     
     
    addSeparator(String caption, boolean borderTop, boolean borderBottom)
     
    protected ComboBox
     
    protected ComboBox
    createComboBox(Container container, String propertyId, boolean filterable, boolean allowNullSelection)
     
    protected ComboBox
     
    protected ComboBox
    createComboBox(Map<?,String> values, boolean filterable, boolean allowNullSelection)
     
    protected Button
     
    protected Button
    createDetailsButton(String caption, Resource icon)
     
    protected TextField
    createRegularDecimalField(Validator... validators)
     
    protected TextField
    createRegularDecimalField(String format, Validator... validators)
     
    protected NumericField
    createRegularNumericField(Validator... validators)
     
    protected TextArea
    createRegularTextArea(Validator... validators)
     
    protected TextField
    createRegularTextField(Validator... validators)
     
    protected void
     
    protected Field<?>
    getField(String propertyId)
     
    Item
     
    boolean
     
    void
     
    void
    setSeparatorVisible(Integer id, boolean visible)
     
    protected void
    styleTextField(TextField field)
     
     

    Methods inherited from class CustomComponent

    getComponentCount, getCompositionRoot, getState, getState, iterator, setCompositionRoot

    Methods 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, writeDesign

    Methods 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, updateDiffstate

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface ClientConnector

    addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler

    Methods 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, writeDesign

    Methods inherited from interface Connector

    getConnectorId

    Methods inherited from interface Iterable

    forEach, spliterator

    Methods 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

      protected Map<String,Field<?>> fields
    • fieldCaptions

      protected Map<String,String> fieldCaptions
    • hasValidators

      protected Collection<HasValidator> hasValidators
  • Constructor Details

    • AbstractBasePropertiesComponent

      public AbstractBasePropertiesComponent(Item itemDataSource)
  • Method Details

    • getItemDataSource

      public Item getItemDataSource()
    • draw

      protected void draw()
    • addSeparator

      public Integer addSeparator(String caption)
    • addSeparator

      public Integer addSeparator(String caption, boolean borderTop, boolean borderBottom)
    • setSeparatorVisible

      public void setSeparatorVisible(Integer id, boolean visible)
    • isSeparatorVisible

      public boolean isSeparatorVisible(Integer id)
    • removeSeparator

      public void removeSeparator(Integer id)
    • createComboBox

      protected ComboBox createComboBox()
    • createComboBox

      protected ComboBox createComboBox(Container container, String propertyId, boolean filterable, boolean allowNullSelection)
    • createComboBox

      protected ComboBox createComboBox(Map<?,String> values, boolean filterable, boolean allowNullSelection)
    • createComboBox

      protected ComboBox createComboBox(Map<?,String> values)
    • createRegularTextField

      protected TextField createRegularTextField(Validator... validators)
    • createRegularTextArea

      protected TextArea createRegularTextArea(Validator... validators)
    • createRegularDecimalField

      protected TextField createRegularDecimalField(Validator... validators)
    • createRegularDecimalField

      protected TextField createRegularDecimalField(String format, Validator... validators)
    • createRegularNumericField

      protected NumericField createRegularNumericField(Validator... validators)
    • styleTextField

      protected void styleTextField(TextField field)
    • addPropertyEditorCustomComponent

      protected void addPropertyEditorCustomComponent(String caption, Component uiElement)
    • addPropertyEditorCustomComponent

      protected void addPropertyEditorCustomComponent(Integer layoutId, String caption, Component uiElement)
    • addPropertyEditor

      protected void addPropertyEditor(String caption, Field<?> field, String propertyName)
    • addPropertyEditor

      protected void addPropertyEditor(Integer layoutId, String caption, Field<?> field, String propertyName)
    • createDetailsButton

      protected Button createDetailsButton()
    • createDetailsButton

      protected Button createDetailsButton(String caption, Resource icon)
    • addPopupButton

      protected PopupButton addPopupButton(String itemCaption, String buttonCaption, AbstractBasePropertiesComponent.PopupButtonContentGenerator generator)
    • addPopupButton

      protected PopupButton addPopupButton(String itemCaption, String buttonCaption, Component component)
    • validate

      public HasValidator.ValidationResult validate()
      Specified by:
      validate in interface HasValidator
    • getField

      protected Field<?> getField(String propertyId)