|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjecteTextReader.componentFactory.BaseComponentFactory
eTextReader.componentFactory.DefaultComponentFactory
public class DefaultComponentFactory
This class is an implementation of the ComponentFactory interface that automatically adds one or more event listeners to each component that it generates.
The getInstance() method is used to get an instance of the factory. By default, it creates an instance of this class. The property etext.ComponentFactoryClass can be set to the name of a class implementing the ComponentFactory interface if a different component factory is desired.
Field Summary | |
---|---|
protected java.util.List<java.awt.event.ActionListener> |
actionListeners
|
static java.lang.String |
FACTORY_CLASS_PROPERTY_KEY
|
protected static ComponentFactory |
instance
|
protected java.util.List<java.awt.event.ItemListener> |
itemListeners
|
protected java.util.List<javax.swing.event.ListSelectionListener> |
listSelectionListeners
|
Constructor Summary | |
---|---|
protected |
DefaultComponentFactory()
|
Method Summary | |
---|---|
void |
addActionListener(java.awt.event.ActionListener listener)
Add an action listener that will be called whenever a component that generates ActionEvents is created. |
void |
addItemListener(java.awt.event.ItemListener listener)
Add an item listener that will be called whenever a component that generates ItemEvents is created. |
void |
addListSelectionListener(javax.swing.event.ListSelectionListener listener)
Add a list selection listener that will be called whenever a component that generates ListSelectionEvents is created. |
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.String Object,
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.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)
|
static ComponentFactory |
getInstance()
|
void |
removeActionListener(java.awt.event.ActionListener listener)
Removes an action listener from the set of listeners that will be added to components that generate ActionEvents. |
void |
removeItemListener(java.awt.event.ItemListener listener)
Removes an item listener from the set of listeners that will be added to components that generate ItemEvents. |
void |
removeListSelectionListener(javax.swing.event.ListSelectionListener listener)
Removes a list selection listener from the set of listeners that will be added to components that generate ListSelectionEvents. |
private void |
setupListener(java.lang.Object listener,
javax.swing.JComponent component,
java.lang.String methodName,
java.lang.Class parameterClass)
|
private void |
setupListeners(javax.swing.JComponent component)
Adds the appropriate listeners to the specified component. |
Methods inherited from class eTextReader.componentFactory.BaseComponentFactory |
---|
createJButton, createJMenu, createJMenu, createJMenu, createJMenu |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String FACTORY_CLASS_PROPERTY_KEY
protected static ComponentFactory instance
protected java.util.List<java.awt.event.ActionListener> actionListeners
protected java.util.List<java.awt.event.ItemListener> itemListeners
protected java.util.List<javax.swing.event.ListSelectionListener> listSelectionListeners
Constructor Detail |
---|
protected DefaultComponentFactory()
Method Detail |
---|
public static ComponentFactory getInstance()
public void removeActionListener(java.awt.event.ActionListener listener)
listener
- the listener to removepublic void addActionListener(java.awt.event.ActionListener listener)
addActionListener
in class BaseComponentFactory
listener
- the listener to addpublic void addItemListener(java.awt.event.ItemListener listener)
listener
- the listener to addpublic void removeItemListener(java.awt.event.ItemListener listener)
listener
- the listener to removepublic void addListSelectionListener(javax.swing.event.ListSelectionListener listener)
listener
- the listener to addpublic void removeListSelectionListener(javax.swing.event.ListSelectionListener listener)
listener
- the listener to removepublic ActionButton createActionButton(javax.swing.Action action)
createActionButton
in interface ComponentFactory
createActionButton
in class BaseComponentFactory
public javax.swing.JButton createJButton(java.lang.Object name)
createJButton
in interface ComponentFactory
createJButton
in class BaseComponentFactory
public javax.swing.JButton createJButton(java.lang.Object name, javax.swing.Action action)
createJButton
in interface ComponentFactory
createJButton
in class BaseComponentFactory
public javax.swing.JButton createJButton(java.lang.Object name, javax.swing.Icon icon)
createJButton
in interface ComponentFactory
createJButton
in class BaseComponentFactory
public javax.swing.JButton createJButton(java.lang.Object name, java.lang.String text)
createJButton
in interface ComponentFactory
createJButton
in class BaseComponentFactory
public javax.swing.JButton createJButton(java.lang.String Object, java.lang.String text, javax.swing.Icon icon)
public javax.swing.JCheckBox createJCheckBox()
createJCheckBox
in interface ComponentFactory
createJCheckBox
in class BaseComponentFactory
public javax.swing.JCheckBox createJCheckBox(javax.swing.Action action)
createJCheckBox
in interface ComponentFactory
createJCheckBox
in class BaseComponentFactory
public javax.swing.JCheckBox createJCheckBox(javax.swing.Icon icon)
createJCheckBox
in interface ComponentFactory
createJCheckBox
in class BaseComponentFactory
public javax.swing.JCheckBox createJCheckBox(javax.swing.Icon icon, boolean selected)
createJCheckBox
in interface ComponentFactory
createJCheckBox
in class BaseComponentFactory
public javax.swing.JCheckBox createJCheckBox(java.lang.String text)
createJCheckBox
in interface ComponentFactory
createJCheckBox
in class BaseComponentFactory
public javax.swing.JCheckBox createJCheckBox(java.lang.String text, boolean selected)
createJCheckBox
in interface ComponentFactory
createJCheckBox
in class BaseComponentFactory
public javax.swing.JCheckBox createJCheckBox(java.lang.String text, javax.swing.Icon icon)
createJCheckBox
in interface ComponentFactory
createJCheckBox
in class BaseComponentFactory
public javax.swing.JCheckBox createJCheckBox(java.lang.String text, javax.swing.Icon icon, boolean selected)
createJCheckBox
in interface ComponentFactory
createJCheckBox
in class BaseComponentFactory
public javax.swing.JCheckBoxMenuItem createJCheckBoxMenuItem()
createJCheckBoxMenuItem
in interface ComponentFactory
createJCheckBoxMenuItem
in class BaseComponentFactory
public javax.swing.JCheckBoxMenuItem createJCheckBoxMenuItem(javax.swing.Action action)
createJCheckBoxMenuItem
in interface ComponentFactory
createJCheckBoxMenuItem
in class BaseComponentFactory
public javax.swing.JCheckBoxMenuItem createJCheckBoxMenuItem(javax.swing.Icon icon)
createJCheckBoxMenuItem
in interface ComponentFactory
createJCheckBoxMenuItem
in class BaseComponentFactory
public javax.swing.JCheckBoxMenuItem createJCheckBoxMenuItem(javax.swing.Icon icon, boolean selected)
createJCheckBoxMenuItem
in interface ComponentFactory
createJCheckBoxMenuItem
in class BaseComponentFactory
public javax.swing.JCheckBoxMenuItem createJCheckBoxMenuItem(java.lang.String text)
createJCheckBoxMenuItem
in interface ComponentFactory
createJCheckBoxMenuItem
in class BaseComponentFactory
public javax.swing.JCheckBoxMenuItem createJCheckBoxMenuItem(java.lang.String text, boolean selected)
createJCheckBoxMenuItem
in interface ComponentFactory
createJCheckBoxMenuItem
in class BaseComponentFactory
public javax.swing.JCheckBoxMenuItem createJCheckBoxMenuItem(java.lang.String text, javax.swing.Icon icon)
createJCheckBoxMenuItem
in interface ComponentFactory
createJCheckBoxMenuItem
in class BaseComponentFactory
public javax.swing.JCheckBoxMenuItem createJCheckBoxMenuItem(java.lang.String text, javax.swing.Icon icon, boolean selected)
createJCheckBoxMenuItem
in interface ComponentFactory
createJCheckBoxMenuItem
in class BaseComponentFactory
public javax.swing.JComboBox createJComboBox(java.lang.Object name)
createJComboBox
in interface ComponentFactory
createJComboBox
in class BaseComponentFactory
public javax.swing.JComboBox createJComboBox(java.lang.Object name, javax.swing.ComboBoxModel model)
createJComboBox
in interface ComponentFactory
createJComboBox
in class BaseComponentFactory
public javax.swing.JComboBox createJComboBox(java.lang.Object name, java.lang.Object[] items)
createJComboBox
in interface ComponentFactory
createJComboBox
in class BaseComponentFactory
public javax.swing.JComboBox createJComboBox(java.lang.Object name, java.util.Vector<?> items)
createJComboBox
in interface ComponentFactory
createJComboBox
in class BaseComponentFactory
public javax.swing.JComboBox createJComboBox(java.lang.Object name, java.util.Collection<?> items)
createJComboBox
in interface ComponentFactory
createJComboBox
in class BaseComponentFactory
public javax.swing.JList createJList()
createJList
in interface ComponentFactory
createJList
in class BaseComponentFactory
public javax.swing.JTextField createJTextField(java.lang.Object name, javax.swing.text.Document document, java.lang.String text, int columns)
createJTextField
in interface ComponentFactory
createJTextField
in class BaseComponentFactory
public javax.swing.JTextField createJTextField(java.lang.Object name, int columns)
createJTextField
in interface ComponentFactory
createJTextField
in class BaseComponentFactory
public javax.swing.JTextField createJTextField(java.lang.Object name, java.lang.String text, int columns)
createJTextField
in interface ComponentFactory
createJTextField
in class BaseComponentFactory
public javax.swing.JTextField createJTextField(java.lang.Object name, java.lang.String text)
createJTextField
in interface ComponentFactory
createJTextField
in class BaseComponentFactory
public javax.swing.JTextField createJTextField(java.lang.Object name)
createJTextField
in interface ComponentFactory
createJTextField
in class BaseComponentFactory
public javax.swing.JList createJList(javax.swing.ListModel model)
createJList
in interface ComponentFactory
createJList
in class BaseComponentFactory
public javax.swing.JList createJList(java.lang.Object[] items)
createJList
in interface ComponentFactory
createJList
in class BaseComponentFactory
public javax.swing.JList createJList(java.util.Vector<?> items)
createJList
in interface ComponentFactory
createJList
in class BaseComponentFactory
public javax.swing.JList createJList(java.util.Collection<?> items)
createJList
in interface ComponentFactory
createJList
in class BaseComponentFactory
public javax.swing.JMenuItem createJMenuItem(java.lang.Object name)
createJMenuItem
in interface ComponentFactory
createJMenuItem
in class BaseComponentFactory
public javax.swing.JMenuItem createJMenuItem(java.lang.Object name, javax.swing.Action action)
createJMenuItem
in interface ComponentFactory
createJMenuItem
in class BaseComponentFactory
public javax.swing.JMenuItem createJMenuItem(java.lang.Object name, javax.swing.Icon icon)
createJMenuItem
in interface ComponentFactory
createJMenuItem
in class BaseComponentFactory
public javax.swing.JMenuItem createJMenuItem(java.lang.Object name, java.lang.String text)
createJMenuItem
in interface ComponentFactory
createJMenuItem
in class BaseComponentFactory
public javax.swing.JMenuItem createJMenuItem(java.lang.Object name, java.lang.String text, javax.swing.Icon icon)
createJMenuItem
in interface ComponentFactory
createJMenuItem
in class BaseComponentFactory
public javax.swing.JMenuItem createJMenuItem(java.lang.Object name, java.lang.String text, int mnemonic)
createJMenuItem
in interface ComponentFactory
createJMenuItem
in class BaseComponentFactory
public javax.swing.JProgressBar createJProgressBar()
createJProgressBar
in interface ComponentFactory
createJProgressBar
in class BaseComponentFactory
public javax.swing.JProgressBar createJProgressBar(javax.swing.BoundedRangeModel model)
createJProgressBar
in interface ComponentFactory
createJProgressBar
in class BaseComponentFactory
public javax.swing.JProgressBar createJProgressBar(int orientation)
createJProgressBar
in interface ComponentFactory
createJProgressBar
in class BaseComponentFactory
public javax.swing.JProgressBar createJProgressBar(int min, int max)
createJProgressBar
in interface ComponentFactory
createJProgressBar
in class BaseComponentFactory
public javax.swing.JProgressBar createJProgressBar(int orientation, int min, int max)
createJProgressBar
in interface ComponentFactory
createJProgressBar
in class BaseComponentFactory
public javax.swing.JRadioButton createJRadioButton()
createJRadioButton
in interface ComponentFactory
createJRadioButton
in class BaseComponentFactory
public javax.swing.JRadioButton createJRadioButton(javax.swing.Action action)
createJRadioButton
in interface ComponentFactory
createJRadioButton
in class BaseComponentFactory
public javax.swing.JRadioButton createJRadioButton(javax.swing.Icon icon)
createJRadioButton
in interface ComponentFactory
createJRadioButton
in class BaseComponentFactory
public javax.swing.JRadioButton createJRadioButton(javax.swing.Icon icon, boolean selected)
createJRadioButton
in interface ComponentFactory
createJRadioButton
in class BaseComponentFactory
public javax.swing.JRadioButton createJRadioButton(java.lang.String text)
createJRadioButton
in interface ComponentFactory
createJRadioButton
in class BaseComponentFactory
public javax.swing.JRadioButton createJRadioButton(java.lang.String text, boolean selected)
createJRadioButton
in interface ComponentFactory
createJRadioButton
in class BaseComponentFactory
public javax.swing.JRadioButton createJRadioButton(java.lang.String text, javax.swing.Icon icon)
createJRadioButton
in interface ComponentFactory
createJRadioButton
in class BaseComponentFactory
public javax.swing.JRadioButton createJRadioButton(java.lang.String text, javax.swing.Icon icon, boolean selected)
createJRadioButton
in interface ComponentFactory
createJRadioButton
in class BaseComponentFactory
public javax.swing.JRadioButtonMenuItem createJRadioButtonMenuItem()
createJRadioButtonMenuItem
in interface ComponentFactory
createJRadioButtonMenuItem
in class BaseComponentFactory
public javax.swing.JRadioButtonMenuItem createJRadioButtonMenuItem(javax.swing.Action action)
createJRadioButtonMenuItem
in interface ComponentFactory
createJRadioButtonMenuItem
in class BaseComponentFactory
public javax.swing.JRadioButtonMenuItem createJRadioButtonMenuItem(javax.swing.Icon icon)
createJRadioButtonMenuItem
in interface ComponentFactory
createJRadioButtonMenuItem
in class BaseComponentFactory
public javax.swing.JRadioButtonMenuItem createJRadioButtonMenuItem(javax.swing.Icon icon, boolean selected)
createJRadioButtonMenuItem
in interface ComponentFactory
createJRadioButtonMenuItem
in class BaseComponentFactory
public javax.swing.JRadioButtonMenuItem createJRadioButtonMenuItem(java.lang.String text)
createJRadioButtonMenuItem
in interface ComponentFactory
createJRadioButtonMenuItem
in class BaseComponentFactory
public javax.swing.JRadioButtonMenuItem createJRadioButtonMenuItem(java.lang.String text, boolean selected)
createJRadioButtonMenuItem
in interface ComponentFactory
createJRadioButtonMenuItem
in class BaseComponentFactory
public javax.swing.JRadioButtonMenuItem createJRadioButtonMenuItem(java.lang.String text, javax.swing.Icon icon)
createJRadioButtonMenuItem
in interface ComponentFactory
createJRadioButtonMenuItem
in class BaseComponentFactory
public javax.swing.JRadioButtonMenuItem createJRadioButtonMenuItem(java.lang.String text, javax.swing.Icon icon, boolean selected)
createJRadioButtonMenuItem
in interface ComponentFactory
createJRadioButtonMenuItem
in class BaseComponentFactory
public javax.swing.JToggleButton createJToggleButton()
createJToggleButton
in interface ComponentFactory
createJToggleButton
in class BaseComponentFactory
public javax.swing.JToggleButton createJToggleButton(javax.swing.Action action)
createJToggleButton
in interface ComponentFactory
createJToggleButton
in class BaseComponentFactory
public javax.swing.JToggleButton createJToggleButton(javax.swing.Icon icon)
createJToggleButton
in interface ComponentFactory
createJToggleButton
in class BaseComponentFactory
public javax.swing.JToggleButton createJToggleButton(javax.swing.Icon icon, boolean selected)
createJToggleButton
in interface ComponentFactory
createJToggleButton
in class BaseComponentFactory
public javax.swing.JToggleButton createJToggleButton(java.lang.String text)
createJToggleButton
in interface ComponentFactory
createJToggleButton
in class BaseComponentFactory
public javax.swing.JToggleButton createJToggleButton(java.lang.String text, boolean selected)
createJToggleButton
in interface ComponentFactory
createJToggleButton
in class BaseComponentFactory
public javax.swing.JToggleButton createJToggleButton(java.lang.String text, javax.swing.Icon icon)
createJToggleButton
in interface ComponentFactory
createJToggleButton
in class BaseComponentFactory
public javax.swing.JToggleButton createJToggleButton(java.lang.String text, javax.swing.Icon icon, boolean selected)
createJToggleButton
in interface ComponentFactory
createJToggleButton
in class BaseComponentFactory
private void setupListeners(javax.swing.JComponent component)
component
- the component to configureprivate void setupListener(java.lang.Object listener, javax.swing.JComponent component, java.lang.String methodName, java.lang.Class parameterClass)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |