Class IPresentationInfo.Default

java.lang.Object
gw.lang.reflect.IPresentationInfo.Default
All Implemented Interfaces:
IPresentationInfo
Enclosing interface:
IPresentationInfo

public static final class IPresentationInfo.Default extends Object implements IPresentationInfo
  • Field Details

  • Constructor Details

    • Default

      private Default()
  • Method Details

    • isPresentable

      public boolean isPresentable()
      Specified by:
      isPresentable in interface IPresentationInfo
      Returns:
      True if the this feature can be presented for editing e.g., in a property editor.
    • isRequired

      public boolean isRequired()
      Specified by:
      isRequired in interface IPresentationInfo
      Returns:
      True if this feature is required, and should be called out as such in a property editor.
    • getCategory

      public FeatureCategory getCategory()
      Specified by:
      getCategory in interface IPresentationInfo
      Returns:
      The id of the category under which this feature belongs. Feature categories facilitate grouping of features for presentation purposes e.g., in a property editor.
    • isMultiEdit

      public boolean isMultiEdit()
      Specified by:
      isMultiEdit in interface IPresentationInfo
      Returns:
      True if this feature can be edited in the company of other objects with this feature. For instance, if this is a font it's likely that it's ok to edit this font's value along with other objects that are selected so as to set all their fonts to the same value with one change. Conversely, if this is a value that probably pertains to just this object, say a chunk of Gosu, it's probably best to return true here so that the feature is not editable while other object are selected.
    • isAutoUpdate

      public boolean isAutoUpdate()
      Specified by:
      isAutoUpdate in interface IPresentationInfo
      Returns:
      True if the feature editor for this feature can auto-update while the user modifies the value. For instance, if this feature is a simple label text value, auto-update means that the value changes automatically as the user types. Otherwise, if auto-update is false, the user must explicitly commit the changes when he is finished typing e.g., via an OK button.
    • isPrimary

      public boolean isPrimary()
      Specified by:
      isPrimary in interface IPresentationInfo
      Returns:
      True if this property is considered the primary property for this object, false otherwise. Editors may use this information to implement editing behavior e.g. supporting jumping to the primary property when editing.
    • getCharacterMask

      public String getCharacterMask()
      Specified by:
      getCharacterMask in interface IPresentationInfo
      Returns:
      A regular expression string specifying which characters are allowed in the value of this property, or null if no such restriction exists.
    • getDefaultValue

      public String getDefaultValue()
      Specified by:
      getDefaultValue in interface IPresentationInfo
    • isMultiLine

      public boolean isMultiLine()
      Specified by:
      isMultiLine in interface IPresentationInfo