psdi.webclient.components

Class DefaultValue

  • All Implemented Interfaces:
    java.lang.Cloneable, DataBeanListener


    public class DefaultValue
    extends BoundComponentInstance
    Component defaultvalue properties are all defined in the component registry, but they are not transferred - so always go to the control to get them
    property-list
  • designonly - true by default
  • datasrc
  • dataattribute
  • value
  • fromdatasrc
  • fromattribute
  • defaulttype
    • Constructor Detail

      • DefaultValue

        public DefaultValue()
    • Method Detail

      • hasChanged

        public boolean hasChanged()
        Description copied from class: BoundComponentInstance
        Returns true if there has been a change to the component's data, readonly, or required states. To find out what specifically has changed use the hasDataChanged(), hasReadonlyChanged(), hasRequiredChanged() methods. NOTE: This method will update the cached data, readonly, and required values to the new values.
        Overrides:
        hasChanged in class BoundComponentInstance
        See Also:
        BoundComponentInstance.hasChanged()
      • hasDataChanged

        public boolean hasDataChanged()
        Description copied from class: BoundComponentInstance
        Returns the value of the datachanged flag that was set by the a call to hasChanged(). Returns true if the component's data has changed. Also resets the datachanged flag to false.
        Overrides:
        hasDataChanged in class BoundComponentInstance
      • hasLongDescChanged

        public boolean hasLongDescChanged()
        Description copied from class: BoundComponentInstance
        Returns the value of the longDescChanged flag that was set by the a call to hasChanged(). Returns true if the component's long desc state has changed. Also resets the longDescChanged flag to false.
        Overrides:
        hasLongDescChanged in class BoundComponentInstance
      • hasReadonlyChanged

        public boolean hasReadonlyChanged()
        Description copied from class: BoundComponentInstance
        Returns the value of the readonlychanged flag that was set by the a call to hasChanged(). Returns true if the component's readonlyness has changed. Also resets the readonlychanged flag to false.
        Overrides:
        hasReadonlyChanged in class BoundComponentInstance
      • hasRequiredChanged

        public boolean hasRequiredChanged()
        Description copied from class: BoundComponentInstance
        Returns the value of the requiredchanged flag that was set by the a call to hasChanged(). Returns true if the component's requiredness has changed. Also resets the requiredchanged flag to false.
        Overrides:
        hasRequiredChanged in class BoundComponentInstance
      • isDataValid

        public boolean isDataValid()
        Deprecated. 
        Overrides:
        isDataValid in class BoundComponentInstance
        Returns:
        true when the data in the bound component is the same as the data on the bean`
      • getString

        public java.lang.String getString()
        We know what the default value on the bean is: we have set it, no need to ask again
        Overrides:
        getString in class BoundComponentInstance
      • isReadOnly

        public boolean isReadOnly()
        Description copied from class: BoundComponentInstance
        Returns true if this component (or linked component) is defined as readonly in the mbo, or if the inputmode is readonly in the presentation xml.
        Overrides:
        isReadOnly in class BoundComponentInstance
      • isRequired

        public boolean isRequired()
        Description copied from class: BoundComponentInstance
        Returns true if this component is defined as required in the mbo, or if the inputmode is required in the presentation xml.
        Overrides:
        isRequired in class BoundComponentInstance
      • hasLongDescription

        public boolean hasLongDescription()
        Description copied from class: BoundComponentInstance
        Returns true if the component actually has a non-empty long description value.

        Note: this is different from the HAS_LONG_DESCRIPTION property which only indicates whether the component IS ALLOWED to have a long description.

        Overrides:
        hasLongDescription in class BoundComponentInstance