Class StringCheckBoxWrapper

Object
AbstractClientConnector
AbstractComponent
AbstractLegacyComponent
AbstractField<String>
CustomField<String>
StringCheckBoxWrapper
All Implemented Interfaces:
Action.ShortcutNotifier, ContextClickEvent.ContextClickNotifier, MethodEventSource, SerializableEventListener, ClientConnector, Sizeable, Connector, Component, Component.Focusable, HasComponents, Buffered, BufferedValidatable, Property<String>, Property.Editor, Property.ReadOnlyStatusChangeListener, Property.ReadOnlyStatusChangeNotifier, Property.ValueChangeListener, Property.ValueChangeNotifier, Property.Viewer, Validatable, Field<String>, Serializable, Iterable<Component>, EventListener

public class StringCheckBoxWrapper extends CustomField<String>
Wrapper de checkbox para tipos convertidos em Strings
Author:
eduardo
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class AbstractField

    AbstractField.FocusShortcut, AbstractField.ReadOnlyStatusChangeEvent

    Nested classes/interfaces inherited from interface Buffered

    Buffered.SourceException

    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 Field

    Field.ValueChangeEvent

    Nested classes/interfaces inherited from interface HasComponents

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

    Nested classes/interfaces inherited from interface Property

    Property.Editor, Property.ReadOnlyException, Property.ReadOnlyStatusChangeListener, Property.ReadOnlyStatusChangeNotifier, Property.Transactional<T>, Property.ValueChangeListener, Property.ValueChangeNotifier, Property.Viewer

    Nested classes/interfaces inherited from interface Sizeable

    Sizeable.Unit
  • Field Summary

    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
    StringCheckBoxWrapper(String forTrue, String forFalse)
     
    StringCheckBoxWrapper(String forTrue, String forFalse, boolean initialValue)
     
    StringCheckBoxWrapper(String forTrue, String forFalse, String caption, boolean initialValue)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     
     
     
     
    Class<? extends String>
     
    protected Component
     
    void
     
    void
    setCaption(String caption)
     
    void
    setCaptionAsHtml(boolean captionAsHtml)
     
    void
    setDescription(String description)
     
    void
    setImmediate(boolean immediate)
     
    protected void
    setInternalValue(String newFieldValue)
     
    void
     

    Methods inherited from class CustomField

    attach, focus, getContent, getTabIndex, iterator, setFocusDelegate, setHeight, setTabIndex, setWidth

    Methods inherited from class AbstractField

    addListener, addListener, addReadOnlyStatusChangeListener, addValidator, addValueChangeListener, beforeClientResponse, clear, commit, detach, discard, fireReadOnlyStatusChange, fireValueChange, getConversionError, getConversionError, getConvertedValue, getConverter, getCurrentBufferedSourceException, getCustomAttributes, getErrorMessage, getInternalValue, getModelType, getPropertyDataSource, getRequiredError, getState, getState, getValidators, getValue, isBuffered, isEmpty, isInvalidAllowed, isInvalidCommitted, isModified, isReadOnly, isRequired, isValid, isValidationVisible, readDesign, readOnlyStatusChange, removeAllValidators, removeListener, removeListener, removeReadOnlyStatusChangeListener, removeValidator, removeValueChangeListener, setBuffered, setConversionError, setConvertedValue, setConverter, setConverter, setCurrentBufferedSourceException, setInvalidAllowed, setInvalidCommitted, setLocale, setPropertyDataSource, setReadOnly, setRequired, setRequiredError, setValidationVisible, setValue, setValue, setValue, shouldHideErrors, validate, validate, valueChange, writeDesign

    Methods inherited from class AbstractLegacyComponent

    getExplicitImmediateValue, isImmediate

    Methods inherited from class AbstractComponent

    addContextClickListener, addListener, addShortcutListener, findAncestor, fireComponentErrorEvent, fireComponentEvent, getActionManager, getComponentError, getData, getDebugId, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isOrHasAncestor, isRequiredIndicatorVisible, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, setComponentError, setData, setDebugId, setDescription, setEnabled, setHeight, setHeightFull, setHeightUndefined, setIcon, setId, setParent, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidthFull, setWidthUndefined

    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 Action.ShortcutNotifier

    addShortcutListener, removeShortcutListener

    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, addStyleNames, getIcon, getId, getLocale, getParent, getUI, isEnabled, isVisible, readDesign, removeListener, removeStyleNames, setEnabled, setIcon, setId, setParent, 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, setHeightFull, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidthFull, setWidthUndefined
  • Constructor Details

    • StringCheckBoxWrapper

      public StringCheckBoxWrapper(String forTrue, String forFalse, String caption, boolean initialValue)
    • StringCheckBoxWrapper

      public StringCheckBoxWrapper(String forTrue, String forFalse, boolean initialValue)
    • StringCheckBoxWrapper

      public StringCheckBoxWrapper(String forTrue, String forFalse)
  • Method Details

    • initContent

      protected Component initContent()
      Specified by:
      initContent in class CustomField<String>
    • getType

      public Class<? extends String> getType()
      Specified by:
      getType in interface Property<String>
      Specified by:
      getType in class AbstractField<String>
    • getCaption

      public String getCaption()
      Specified by:
      getCaption in interface Component
      Overrides:
      getCaption in class AbstractComponent
    • setCaption

      public void setCaption(String caption)
      Specified by:
      setCaption in interface Component
      Overrides:
      setCaption in class AbstractComponent
    • setCaptionAsHtml

      public void setCaptionAsHtml(boolean captionAsHtml)
      Overrides:
      setCaptionAsHtml in class AbstractComponent
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface Component
      Overrides:
      getDescription in class AbstractComponent
    • setDescription

      public void setDescription(String description)
      Overrides:
      setDescription in class AbstractComponent
    • setInternalValue

      protected void setInternalValue(String newFieldValue)
      Overrides:
      setInternalValue in class AbstractField<String>
    • getStyleName

      public String getStyleName()
      Specified by:
      getStyleName in interface Component
      Overrides:
      getStyleName in class AbstractComponent
    • setPrimaryStyleName

      public void setPrimaryStyleName(String style)
      Specified by:
      setPrimaryStyleName in interface Component
      Overrides:
      setPrimaryStyleName in class AbstractComponent
    • getPrimaryStyleName

      public String getPrimaryStyleName()
      Specified by:
      getPrimaryStyleName in interface Component
      Overrides:
      getPrimaryStyleName in class AbstractComponent
    • addStyleName

      public void addStyleName(String style)
      Specified by:
      addStyleName in interface Component
      Overrides:
      addStyleName in class AbstractComponent
    • removeStyleName

      public void removeStyleName(String style)
      Specified by:
      removeStyleName in interface Component
      Overrides:
      removeStyleName in class AbstractComponent
    • setImmediate

      public void setImmediate(boolean immediate)
      Overrides:
      setImmediate in class AbstractLegacyComponent