Interface PropertyEditorBean

All Known Implementing Classes:
DefaultPropertyEditorBean, DefaultZKPropertyEditorBean

public interface PropertyEditorBean
The backing bean for a specific property editor view component. It allows to read and write the actual value and marking is editable and invalid. Created by its PropertyEditorDescriptor.
  • Method Summary

    Modifier and Type
    Method
    Description
    The descriptor which this beans belong to.
    Returns the current value.
    void
    Initializes the editor bean by specifying the start value.
    boolean
    Tells whether the editor allows changes.
    boolean
    Tells whether this editor shows invalid state.
    boolean
    Tells whether this bean contains a modified value compared to the start value.
    void
    Resets the editor to the initial value.
    void
    setEditable(boolean editable)
    Switches editing on and off.
    void
    setInvalid(boolean invalid)
    Switches invalid state of this editor bean.
    void
    Changes the current value.
  • Method Details

    • getDescriptor

      PropertyEditorDescriptor getDescriptor()
      The descriptor which this beans belong to.
    • initialize

      void initialize(Object value)
      Initializes the editor bean by specifying the start value. This will reset all previous changes. Therefore the editor bean wont be modified any longer!
      Parameters:
      value - the start value
    • reset

      void reset()
      Resets the editor to the initial value. Also clears invalid flag. Editable flag remains untouched!
    • setValue

      void setValue(Object value)
      Changes the current value. If the value is different from the start value the bean is marked modified.
      Parameters:
      value -
    • getValue

      Object getValue()
      Returns the current value.
    • isModified

      boolean isModified()
      Tells whether this bean contains a modified value compared to the start value.
      See Also:
    • setEditable

      void setEditable(boolean editable)
      Switches editing on and off. This will not change the modification state!
      Parameters:
      editable - true if the component should be allow changes
    • isEditable

      boolean isEditable()
      Tells whether the editor allows changes.
    • setInvalid

      void setInvalid(boolean invalid)
      Switches invalid state of this editor bean.
      Parameters:
      invalid - true if the editor should show invalid state
    • isInvalid

      boolean isInvalid()
      Tells whether this editor shows invalid state.