Package hec.script

Class ScriptFlatButton

All Implemented Interfaces:
ImageObserver, ItemSelectable, MenuContainer, Serializable, Accessible, SwingConstants

public class ScriptFlatButton extends FlatPanelButton
See Also:
  • Constructor Details

    • ScriptFlatButton

      public ScriptFlatButton(ScriptIdentifier sid)
      construct a new ScriptJButton with the ScriptIdentifier id
      Parameters:
      sid - the ScriptIdentifier this ScriptJButton represents
  • Method Details

    • getScriptIdentifier

      public ScriptIdentifier getScriptIdentifier()
      get the ScriptIdentifier this button represents
      Returns:
      the ScriptIdentifier for this button
    • getText

      public String getText()
      get the text for this button
      Overrides:
      getText in class AbstractButton
      Returns:
      the button text
    • setIconName

      public void setIconName(String iconName)
    • getIconName

      public String getIconName()
    • getToolTipText

      public String getToolTipText(MouseEvent event)
      Returns the string to be used as the tooltip for event. By default this returns any string set using setToolTipText(). If the control key is pressed returns a more detailed tooltip is returned
      Overrides:
      getToolTipText in class JComponent
      Parameters:
      event - the MouseEvent for the tooltip
      Returns:
      the tooltip