eTextReader.componentFactory
Class BaseComponentFactory
java.lang.Object
eTextReader.componentFactory.BaseComponentFactory
- All Implemented Interfaces:
- ComponentFactory
- Direct Known Subclasses:
- DefaultComponentFactory
public class BaseComponentFactory
- extends java.lang.Object
- implements ComponentFactory
This simple implementation of the ComponentFactory interface simply creates the required Swing components
and returns them, without performing any sort of configuration. In this sense, it is like and "Identity"
component factory.
- Author:
- mcfall
Method Summary |
void |
addActionListener(java.awt.event.ActionListener listener)
|
ActionButton |
createActionButton(javax.swing.Action action)
|
javax.swing.JButton |
createJButton(java.lang.Object name)
|
javax.swing.JButton |
createJButton(java.lang.Object name,
javax.swing.Action action)
|
javax.swing.JButton |
createJButton(java.lang.Object name,
javax.swing.Icon icon)
|
javax.swing.JButton |
createJButton(java.lang.Object name,
java.lang.String text)
|
javax.swing.JButton |
createJButton(java.lang.Object name,
java.lang.String text,
javax.swing.Icon icon)
|
javax.swing.JCheckBox |
createJCheckBox()
|
javax.swing.JCheckBox |
createJCheckBox(javax.swing.Action action)
|
javax.swing.JCheckBox |
createJCheckBox(javax.swing.Icon icon)
|
javax.swing.JCheckBox |
createJCheckBox(javax.swing.Icon icon,
boolean selected)
|
javax.swing.JCheckBox |
createJCheckBox(java.lang.String text)
|
javax.swing.JCheckBox |
createJCheckBox(java.lang.String text,
boolean selected)
|
javax.swing.JCheckBox |
createJCheckBox(java.lang.String text,
javax.swing.Icon icon)
|
javax.swing.JCheckBox |
createJCheckBox(java.lang.String text,
javax.swing.Icon icon,
boolean selected)
|
javax.swing.JCheckBoxMenuItem |
createJCheckBoxMenuItem()
|
javax.swing.JCheckBoxMenuItem |
createJCheckBoxMenuItem(javax.swing.Action action)
|
javax.swing.JCheckBoxMenuItem |
createJCheckBoxMenuItem(javax.swing.Icon icon)
|
javax.swing.JCheckBoxMenuItem |
createJCheckBoxMenuItem(javax.swing.Icon icon,
boolean selected)
|
javax.swing.JCheckBoxMenuItem |
createJCheckBoxMenuItem(java.lang.String text)
|
javax.swing.JCheckBoxMenuItem |
createJCheckBoxMenuItem(java.lang.String text,
boolean selected)
|
javax.swing.JCheckBoxMenuItem |
createJCheckBoxMenuItem(java.lang.String text,
javax.swing.Icon icon)
|
javax.swing.JCheckBoxMenuItem |
createJCheckBoxMenuItem(java.lang.String text,
javax.swing.Icon icon,
boolean selected)
|
javax.swing.JComboBox |
createJComboBox(java.lang.Object name)
|
javax.swing.JComboBox |
createJComboBox(java.lang.Object name,
java.util.Collection<?> items)
|
javax.swing.JComboBox |
createJComboBox(java.lang.Object name,
javax.swing.ComboBoxModel model)
|
javax.swing.JComboBox |
createJComboBox(java.lang.Object name,
java.lang.Object[] items)
|
javax.swing.JComboBox |
createJComboBox(java.lang.Object name,
java.util.Vector<?> items)
|
javax.swing.JList |
createJList()
|
javax.swing.JList |
createJList(java.util.Collection<?> items)
|
javax.swing.JList |
createJList(javax.swing.ListModel model)
|
javax.swing.JList |
createJList(java.lang.Object[] items)
|
javax.swing.JList |
createJList(java.util.Vector<?> items)
|
javax.swing.JMenu |
createJMenu(java.lang.Object name)
|
javax.swing.JMenu |
createJMenu(java.lang.Object name,
javax.swing.Action action)
|
javax.swing.JMenu |
createJMenu(java.lang.Object name,
java.lang.String text)
|
javax.swing.JMenu |
createJMenu(java.lang.Object name,
java.lang.String text,
boolean isTearOff)
|
javax.swing.JMenuItem |
createJMenuItem(java.lang.Object name)
|
javax.swing.JMenuItem |
createJMenuItem(java.lang.Object name,
javax.swing.Action action)
|
javax.swing.JMenuItem |
createJMenuItem(java.lang.Object name,
javax.swing.Icon icon)
|
javax.swing.JMenuItem |
createJMenuItem(java.lang.Object name,
java.lang.String text)
|
javax.swing.JMenuItem |
createJMenuItem(java.lang.Object name,
java.lang.String text,
javax.swing.Icon icon)
|
javax.swing.JMenuItem |
createJMenuItem(java.lang.Object name,
java.lang.String text,
int mnemonic)
|
javax.swing.JProgressBar |
createJProgressBar()
|
javax.swing.JProgressBar |
createJProgressBar(javax.swing.BoundedRangeModel model)
|
javax.swing.JProgressBar |
createJProgressBar(int orientation)
|
javax.swing.JProgressBar |
createJProgressBar(int min,
int max)
|
javax.swing.JProgressBar |
createJProgressBar(int orientation,
int min,
int max)
|
javax.swing.JRadioButton |
createJRadioButton()
|
javax.swing.JRadioButton |
createJRadioButton(javax.swing.Action action)
|
javax.swing.JRadioButton |
createJRadioButton(javax.swing.Icon icon)
|
javax.swing.JRadioButton |
createJRadioButton(javax.swing.Icon icon,
boolean selected)
|
javax.swing.JRadioButton |
createJRadioButton(java.lang.String text)
|
javax.swing.JRadioButton |
createJRadioButton(java.lang.String text,
boolean selected)
|
javax.swing.JRadioButton |
createJRadioButton(java.lang.String text,
javax.swing.Icon icon)
|
javax.swing.JRadioButton |
createJRadioButton(java.lang.String text,
javax.swing.Icon icon,
boolean selected)
|
javax.swing.JRadioButtonMenuItem |
createJRadioButtonMenuItem()
|
javax.swing.JRadioButtonMenuItem |
createJRadioButtonMenuItem(javax.swing.Action action)
|
javax.swing.JRadioButtonMenuItem |
createJRadioButtonMenuItem(javax.swing.Icon icon)
|
javax.swing.JRadioButtonMenuItem |
createJRadioButtonMenuItem(javax.swing.Icon icon,
boolean selected)
|
javax.swing.JRadioButtonMenuItem |
createJRadioButtonMenuItem(java.lang.String text)
|
javax.swing.JRadioButtonMenuItem |
createJRadioButtonMenuItem(java.lang.String text,
boolean selected)
|
javax.swing.JRadioButtonMenuItem |
createJRadioButtonMenuItem(java.lang.String text,
javax.swing.Icon icon)
|
javax.swing.JRadioButtonMenuItem |
createJRadioButtonMenuItem(java.lang.String text,
javax.swing.Icon icon,
boolean selected)
|
javax.swing.JTextField |
createJTextField(java.lang.Object name)
|
javax.swing.JTextField |
createJTextField(java.lang.Object name,
javax.swing.text.Document document,
java.lang.String text,
int columns)
|
javax.swing.JTextField |
createJTextField(java.lang.Object name,
int columns)
|
javax.swing.JTextField |
createJTextField(java.lang.Object name,
java.lang.String text)
|
javax.swing.JTextField |
createJTextField(java.lang.Object name,
java.lang.String text,
int columns)
|
javax.swing.JToggleButton |
createJToggleButton()
|
javax.swing.JToggleButton |
createJToggleButton(javax.swing.Action action)
|
javax.swing.JToggleButton |
createJToggleButton(javax.swing.Icon icon)
|
javax.swing.JToggleButton |
createJToggleButton(javax.swing.Icon icon,
boolean selected)
|
javax.swing.JToggleButton |
createJToggleButton(java.lang.String text)
|
javax.swing.JToggleButton |
createJToggleButton(java.lang.String text,
boolean selected)
|
javax.swing.JToggleButton |
createJToggleButton(java.lang.String text,
javax.swing.Icon icon)
|
javax.swing.JToggleButton |
createJToggleButton(java.lang.String text,
javax.swing.Icon icon,
boolean selected)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseComponentFactory
public BaseComponentFactory()
addActionListener
public void addActionListener(java.awt.event.ActionListener listener)
createActionButton
public ActionButton createActionButton(javax.swing.Action action)
- Specified by:
createActionButton
in interface ComponentFactory
createJButton
public javax.swing.JButton createJButton(java.lang.Object name)
- Specified by:
createJButton
in interface ComponentFactory
createJButton
public javax.swing.JButton createJButton(java.lang.Object name,
javax.swing.Action action)
- Specified by:
createJButton
in interface ComponentFactory
createJButton
public javax.swing.JButton createJButton(java.lang.Object name,
javax.swing.Icon icon)
- Specified by:
createJButton
in interface ComponentFactory
createJButton
public javax.swing.JButton createJButton(java.lang.Object name,
java.lang.String text)
- Specified by:
createJButton
in interface ComponentFactory
createJButton
public javax.swing.JButton createJButton(java.lang.Object name,
java.lang.String text,
javax.swing.Icon icon)
- Specified by:
createJButton
in interface ComponentFactory
createJCheckBox
public javax.swing.JCheckBox createJCheckBox()
- Specified by:
createJCheckBox
in interface ComponentFactory
createJCheckBox
public javax.swing.JCheckBox createJCheckBox(javax.swing.Action action)
- Specified by:
createJCheckBox
in interface ComponentFactory
createJCheckBox
public javax.swing.JCheckBox createJCheckBox(javax.swing.Icon icon)
- Specified by:
createJCheckBox
in interface ComponentFactory
createJCheckBox
public javax.swing.JCheckBox createJCheckBox(javax.swing.Icon icon,
boolean selected)
- Specified by:
createJCheckBox
in interface ComponentFactory
createJCheckBox
public javax.swing.JCheckBox createJCheckBox(java.lang.String text)
- Specified by:
createJCheckBox
in interface ComponentFactory
createJCheckBox
public javax.swing.JCheckBox createJCheckBox(java.lang.String text,
boolean selected)
- Specified by:
createJCheckBox
in interface ComponentFactory
createJCheckBox
public javax.swing.JCheckBox createJCheckBox(java.lang.String text,
javax.swing.Icon icon)
- Specified by:
createJCheckBox
in interface ComponentFactory
createJCheckBox
public javax.swing.JCheckBox createJCheckBox(java.lang.String text,
javax.swing.Icon icon,
boolean selected)
- Specified by:
createJCheckBox
in interface ComponentFactory
createJCheckBoxMenuItem
public javax.swing.JCheckBoxMenuItem createJCheckBoxMenuItem()
- Specified by:
createJCheckBoxMenuItem
in interface ComponentFactory
createJCheckBoxMenuItem
public javax.swing.JCheckBoxMenuItem createJCheckBoxMenuItem(javax.swing.Action action)
- Specified by:
createJCheckBoxMenuItem
in interface ComponentFactory
createJCheckBoxMenuItem
public javax.swing.JCheckBoxMenuItem createJCheckBoxMenuItem(javax.swing.Icon icon)
- Specified by:
createJCheckBoxMenuItem
in interface ComponentFactory
createJCheckBoxMenuItem
public javax.swing.JCheckBoxMenuItem createJCheckBoxMenuItem(javax.swing.Icon icon,
boolean selected)
- Specified by:
createJCheckBoxMenuItem
in interface ComponentFactory
createJCheckBoxMenuItem
public javax.swing.JCheckBoxMenuItem createJCheckBoxMenuItem(java.lang.String text)
- Specified by:
createJCheckBoxMenuItem
in interface ComponentFactory
createJCheckBoxMenuItem
public javax.swing.JCheckBoxMenuItem createJCheckBoxMenuItem(java.lang.String text,
boolean selected)
- Specified by:
createJCheckBoxMenuItem
in interface ComponentFactory
createJCheckBoxMenuItem
public javax.swing.JCheckBoxMenuItem createJCheckBoxMenuItem(java.lang.String text,
javax.swing.Icon icon)
- Specified by:
createJCheckBoxMenuItem
in interface ComponentFactory
createJCheckBoxMenuItem
public javax.swing.JCheckBoxMenuItem createJCheckBoxMenuItem(java.lang.String text,
javax.swing.Icon icon,
boolean selected)
- Specified by:
createJCheckBoxMenuItem
in interface ComponentFactory
createJComboBox
public javax.swing.JComboBox createJComboBox(java.lang.Object name)
- Specified by:
createJComboBox
in interface ComponentFactory
createJComboBox
public javax.swing.JComboBox createJComboBox(java.lang.Object name,
javax.swing.ComboBoxModel model)
- Specified by:
createJComboBox
in interface ComponentFactory
createJComboBox
public javax.swing.JComboBox createJComboBox(java.lang.Object name,
java.lang.Object[] items)
- Specified by:
createJComboBox
in interface ComponentFactory
createJComboBox
public javax.swing.JComboBox createJComboBox(java.lang.Object name,
java.util.Vector<?> items)
- Specified by:
createJComboBox
in interface ComponentFactory
createJComboBox
public javax.swing.JComboBox createJComboBox(java.lang.Object name,
java.util.Collection<?> items)
- Specified by:
createJComboBox
in interface ComponentFactory
createJList
public javax.swing.JList createJList()
- Specified by:
createJList
in interface ComponentFactory
createJList
public javax.swing.JList createJList(javax.swing.ListModel model)
- Specified by:
createJList
in interface ComponentFactory
createJList
public javax.swing.JList createJList(java.lang.Object[] items)
- Specified by:
createJList
in interface ComponentFactory
createJList
public javax.swing.JList createJList(java.util.Vector<?> items)
- Specified by:
createJList
in interface ComponentFactory
createJList
public javax.swing.JList createJList(java.util.Collection<?> items)
- Specified by:
createJList
in interface ComponentFactory
createJMenuItem
public javax.swing.JMenuItem createJMenuItem(java.lang.Object name)
- Specified by:
createJMenuItem
in interface ComponentFactory
createJMenuItem
public javax.swing.JMenuItem createJMenuItem(java.lang.Object name,
javax.swing.Action action)
- Specified by:
createJMenuItem
in interface ComponentFactory
createJMenuItem
public javax.swing.JMenuItem createJMenuItem(java.lang.Object name,
javax.swing.Icon icon)
- Specified by:
createJMenuItem
in interface ComponentFactory
createJMenuItem
public javax.swing.JMenuItem createJMenuItem(java.lang.Object name,
java.lang.String text)
- Specified by:
createJMenuItem
in interface ComponentFactory
createJMenuItem
public javax.swing.JMenuItem createJMenuItem(java.lang.Object name,
java.lang.String text,
javax.swing.Icon icon)
- Specified by:
createJMenuItem
in interface ComponentFactory
createJMenuItem
public javax.swing.JMenuItem createJMenuItem(java.lang.Object name,
java.lang.String text,
int mnemonic)
- Specified by:
createJMenuItem
in interface ComponentFactory
createJProgressBar
public javax.swing.JProgressBar createJProgressBar()
- Specified by:
createJProgressBar
in interface ComponentFactory
createJProgressBar
public javax.swing.JProgressBar createJProgressBar(javax.swing.BoundedRangeModel model)
- Specified by:
createJProgressBar
in interface ComponentFactory
createJProgressBar
public javax.swing.JProgressBar createJProgressBar(int orientation)
- Specified by:
createJProgressBar
in interface ComponentFactory
createJProgressBar
public javax.swing.JProgressBar createJProgressBar(int min,
int max)
- Specified by:
createJProgressBar
in interface ComponentFactory
createJProgressBar
public javax.swing.JProgressBar createJProgressBar(int orientation,
int min,
int max)
- Specified by:
createJProgressBar
in interface ComponentFactory
createJRadioButton
public javax.swing.JRadioButton createJRadioButton()
- Specified by:
createJRadioButton
in interface ComponentFactory
createJRadioButton
public javax.swing.JRadioButton createJRadioButton(javax.swing.Action action)
- Specified by:
createJRadioButton
in interface ComponentFactory
createJRadioButton
public javax.swing.JRadioButton createJRadioButton(javax.swing.Icon icon)
- Specified by:
createJRadioButton
in interface ComponentFactory
createJRadioButton
public javax.swing.JRadioButton createJRadioButton(javax.swing.Icon icon,
boolean selected)
- Specified by:
createJRadioButton
in interface ComponentFactory
createJRadioButton
public javax.swing.JRadioButton createJRadioButton(java.lang.String text)
- Specified by:
createJRadioButton
in interface ComponentFactory
createJRadioButton
public javax.swing.JRadioButton createJRadioButton(java.lang.String text,
boolean selected)
- Specified by:
createJRadioButton
in interface ComponentFactory
createJRadioButton
public javax.swing.JRadioButton createJRadioButton(java.lang.String text,
javax.swing.Icon icon)
- Specified by:
createJRadioButton
in interface ComponentFactory
createJRadioButton
public javax.swing.JRadioButton createJRadioButton(java.lang.String text,
javax.swing.Icon icon,
boolean selected)
- Specified by:
createJRadioButton
in interface ComponentFactory
createJRadioButtonMenuItem
public javax.swing.JRadioButtonMenuItem createJRadioButtonMenuItem()
- Specified by:
createJRadioButtonMenuItem
in interface ComponentFactory
createJRadioButtonMenuItem
public javax.swing.JRadioButtonMenuItem createJRadioButtonMenuItem(javax.swing.Action action)
- Specified by:
createJRadioButtonMenuItem
in interface ComponentFactory
createJRadioButtonMenuItem
public javax.swing.JRadioButtonMenuItem createJRadioButtonMenuItem(javax.swing.Icon icon)
- Specified by:
createJRadioButtonMenuItem
in interface ComponentFactory
createJRadioButtonMenuItem
public javax.swing.JRadioButtonMenuItem createJRadioButtonMenuItem(javax.swing.Icon icon,
boolean selected)
- Specified by:
createJRadioButtonMenuItem
in interface ComponentFactory
createJRadioButtonMenuItem
public javax.swing.JRadioButtonMenuItem createJRadioButtonMenuItem(java.lang.String text)
- Specified by:
createJRadioButtonMenuItem
in interface ComponentFactory
createJRadioButtonMenuItem
public javax.swing.JRadioButtonMenuItem createJRadioButtonMenuItem(java.lang.String text,
boolean selected)
- Specified by:
createJRadioButtonMenuItem
in interface ComponentFactory
createJRadioButtonMenuItem
public javax.swing.JRadioButtonMenuItem createJRadioButtonMenuItem(java.lang.String text,
javax.swing.Icon icon)
- Specified by:
createJRadioButtonMenuItem
in interface ComponentFactory
createJRadioButtonMenuItem
public javax.swing.JRadioButtonMenuItem createJRadioButtonMenuItem(java.lang.String text,
javax.swing.Icon icon,
boolean selected)
- Specified by:
createJRadioButtonMenuItem
in interface ComponentFactory
createJToggleButton
public javax.swing.JToggleButton createJToggleButton()
- Specified by:
createJToggleButton
in interface ComponentFactory
createJToggleButton
public javax.swing.JToggleButton createJToggleButton(javax.swing.Action action)
- Specified by:
createJToggleButton
in interface ComponentFactory
createJToggleButton
public javax.swing.JToggleButton createJToggleButton(javax.swing.Icon icon)
- Specified by:
createJToggleButton
in interface ComponentFactory
createJToggleButton
public javax.swing.JToggleButton createJToggleButton(javax.swing.Icon icon,
boolean selected)
- Specified by:
createJToggleButton
in interface ComponentFactory
createJToggleButton
public javax.swing.JToggleButton createJToggleButton(java.lang.String text)
- Specified by:
createJToggleButton
in interface ComponentFactory
createJToggleButton
public javax.swing.JToggleButton createJToggleButton(java.lang.String text,
boolean selected)
- Specified by:
createJToggleButton
in interface ComponentFactory
createJToggleButton
public javax.swing.JToggleButton createJToggleButton(java.lang.String text,
javax.swing.Icon icon)
- Specified by:
createJToggleButton
in interface ComponentFactory
createJToggleButton
public javax.swing.JToggleButton createJToggleButton(java.lang.String text,
javax.swing.Icon icon,
boolean selected)
- Specified by:
createJToggleButton
in interface ComponentFactory
createJMenu
public javax.swing.JMenu createJMenu(java.lang.Object name)
- Specified by:
createJMenu
in interface ComponentFactory
createJMenu
public javax.swing.JMenu createJMenu(java.lang.Object name,
javax.swing.Action action)
- Specified by:
createJMenu
in interface ComponentFactory
createJMenu
public javax.swing.JMenu createJMenu(java.lang.Object name,
java.lang.String text)
- Specified by:
createJMenu
in interface ComponentFactory
createJMenu
public javax.swing.JMenu createJMenu(java.lang.Object name,
java.lang.String text,
boolean isTearOff)
- Specified by:
createJMenu
in interface ComponentFactory
createJTextField
public javax.swing.JTextField createJTextField(java.lang.Object name)
- Specified by:
createJTextField
in interface ComponentFactory
createJTextField
public javax.swing.JTextField createJTextField(java.lang.Object name,
javax.swing.text.Document document,
java.lang.String text,
int columns)
- Specified by:
createJTextField
in interface ComponentFactory
createJTextField
public javax.swing.JTextField createJTextField(java.lang.Object name,
int columns)
- Specified by:
createJTextField
in interface ComponentFactory
createJTextField
public javax.swing.JTextField createJTextField(java.lang.Object name,
java.lang.String text)
- Specified by:
createJTextField
in interface ComponentFactory
createJTextField
public javax.swing.JTextField createJTextField(java.lang.Object name,
java.lang.String text,
int columns)
- Specified by:
createJTextField
in interface ComponentFactory