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 JButton
s.
createCheckBox
public JCheckBox createCheckBox()
A factory method for JCheckBox
s.
createRadioButton
public JRadioButton createRadioButton()
A factory method for JRadioButton
s.
createToggleButton
public AbstractButton createToggleButton()
A factory method for ToggleButtons. The
DefaultButtonFactory
creates instances of
JToggleButton
s. 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.JToggleButton
s.