org.gvsig.tools.swing.impl.usability.button

Class JStandardizedToolButton

    • Constructor Detail

      • JStandardizedToolButton

        public JStandardizedToolButton()
        Creates a new empty instance of org.gvsig.gui.beans.swing.JButton.
      • JStandardizedToolButton

        public JStandardizedToolButton(Action action)
        Creates a new instance of org.gvsig.gui.beans.swing.JButton from an Action.
      • JStandardizedToolButton

        public JStandardizedToolButton(Icon icon)
        Creates a new instance of org.gvsig.gui.beans.swing.JButton containing an image.
      • JStandardizedToolButton

        public JStandardizedToolButton(String text)
        Creates a new instance of org.gvsig.gui.beans.swing.JButton containing a text.
        Parameters:
        text -
      • JStandardizedToolButton

        public JStandardizedToolButton(String text,
                               Icon icon)
        Creates a new instance of org.gvsig.gui.beans.swing.JButton containing an image and a text.
        Parameters:
        text -
        icon -
    • Method Detail

      • getEnableText

        public String getEnableText()
        Gets the text that appears in the tooltip when the button is disabled.
        Returns:
        String
      • setEnableText

        public void setEnableText(String enableText)
        Sets the text that appears in the tooltip when the button is disabled.
        Parameters:
        enableText - The enableText to set.
      • setToolTip

        public void setToolTip(String text)
        Sets the text that appears in the tooltip when the button is enabled.