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

Class JStandardizedButton

    • Constructor Detail

      • JStandardizedButton

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

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

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

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

        public JStandardizedButton(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.