org.pietschy.command
Interface ButtonFactory
- ToolbarFactory
- DefaultButtonFactory, DefaultToolbarFactory
public interface ButtonFactory
This interface defines factory methods that all commands use when creating buttons.
createButton
public JButton createButton()
? * A factory method for JButtons.
createCheckBox
public JCheckBox createCheckBox()
A factory method for JCheckBoxs.
createRadioButton
public JRadioButton createRadioButton()
A factory method for JRadioButtons.
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.