org.pietschy.command
Interface ButtonFactory

All Known Subinterfaces:
ToolbarFactory
All Known Implementing Classes:
DefaultButtonFactory, DefaultToolbarFactory

public interface ButtonFactory

This interface defines factory methods that all commands use when creating buttons.

See Also:
MenuFactory, ToolbarFactory, DefaultButtonFactory, CommandManager.setButtonFactory(org.pietschy.command.ButtonFactory)

Method Summary
 javax.swing.JButton createButton()
          ? * A factory method for JButtons.
 javax.swing.JCheckBox createCheckBox()
          A factory method for JCheckBoxs.
 javax.swing.JRadioButton createRadioButton()
          A factory method for JRadioButtons.
 javax.swing.AbstractButton createToggleButton()
          A factory method for ToggleButtons.
 

Method Detail

createButton

javax.swing.JButton createButton()
? * A factory method for JButtons.

Returns:
A new JButton.

createToggleButton

javax.swing.AbstractButton createToggleButton()
A factory method for ToggleButtons. The DefaultButtonFactory creates instances of JToggleButtons. Other factories may create non-standard implementations but are constrained to ensure that ItemListener notifications is consistent with that of JToggleButtons.

Returns:
A new JToggleButton.

createCheckBox

javax.swing.JCheckBox createCheckBox()
A factory method for JCheckBoxs.

Returns:
A new JCheckBox.

createRadioButton

javax.swing.JRadioButton createRadioButton()
A factory method for JRadioButtons.

Returns:
A new JRadioButton.