org.pietschy.command

Interface ButtonFactory

Known Subinterfaces:
ToolbarFactory
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(ButtonFactory)

Method Summary

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

Method Details

createButton

public JButton createButton()
? * A factory method for JButtons.
Returns:
A new JButton.

createCheckBox

public JCheckBox createCheckBox()
A factory method for JCheckBoxs.
Returns:
A new JCheckBox.

createRadioButton

public JRadioButton createRadioButton()
A factory method for JRadioButtons.
Returns:
A new JRadioButton.

createToggleButton

public 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 java.awt.event.ItemListener notifications is consistent with that of javax.swing.JToggleButtons.
Returns:
A new JToggleButton.