Class DefinedButton

All Implemented Interfaces:
Drawable

public class DefinedButton extends Composite
The clear-button.
Author:
Christopher Mindus
  • Constructor Details Link icon

  • Method Details Link icon

    • getNode Link icon

      public PropertyEditor.Node getNode()
      Gets the node.
    • setLabelBackground Link icon

      public void setLabelBackground(Color c)
      Sets the label background.
    • setListener Link icon

      public void setListener(IPropertyDefined l)
      Sets a listener, can only be done once.
    • registerPropLabel Link icon

      public void registerPropLabel(IPropertyEditorController controller, PropLabel label, PropertyEditor.Node node)
      Registers a property and label. The property is tracked for definition, and updates the label color accordingly.
    • getLabel Link icon

      public PropLabel getLabel()
      Gets the label attached, perhaps null.
    • refreshExtended Link icon

      public void refreshExtended()
      Refreshes the extended state.
    • isExtended Link icon

      public boolean isExtended()
      Checks if extended.
    • setUndefined Link icon

      public void setUndefined(int errorLevel)
      Sets the state of the button: undefined with potential severity.
      Parameters:
      errorLevel - The error level, -1 or 0 for OK, 1=warning, 2=error.
    • setDefinedOK Link icon

      public void setDefinedOK()
      Sets the state of the button: defined and no error.
    • setDefinedError Link icon

      public void setDefinedError()
      Sets the state of the button: defined and error.
    • setDefined Link icon

      public void setDefined(int errorLevel)
      Sets the state of the button: defined and error level.
      Parameters:
      errorLevel - 0=OK, 1=warning, 2=error.
    • isDefined Link icon

      public boolean isDefined()
      Gets the defined state.
    • getErrorLevel Link icon

      public int getErrorLevel()
      Gets the error level.
    • computeSize Link icon

      public Point computeSize(int wHint, int hHint, boolean changed)
      Size is always 18x16 for others.
      Overrides:
      computeSize in class Composite
    • isMainMultiPropExpanded Link icon

      public boolean isMainMultiPropExpanded()
      Checks if the main multi-prop item is expanded.
    • onExpand Link icon

      public void onExpand(boolean isExpanded)
      Called when main multi-prop item is expanded or collapsed.