public class GenerateOptionsController
extends java.lang.Object
implements javax.swing.event.ChangeListener, java.awt.event.ActionListener, javax.swing.event.DocumentListener, java.awt.event.ItemListener, com.lf.commons.gui.panel.TemplateListener
GenerateOptionsWindow
class.
Modifier and Type | Field and Description |
---|---|
protected GenerateOptionsWindow |
parent
Parental reference.
|
Constructor and Description |
---|
GenerateOptionsController()
Constructor method for i18n purposes only.
|
GenerateOptionsController(GenerateOptionsWindow window)
Constructor for the component.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
Called whenever the one of the components was activated.
|
void |
changedUpdate(javax.swing.event.DocumentEvent e)
Gives notification that an attribute or set of attributes changed.
|
protected void |
changeTemplate()
Convenience to change the current template.
|
void |
insertUpdate(javax.swing.event.DocumentEvent e)
Gives notification that there was an insert into the document.
|
void |
itemStateChanged(java.awt.event.ItemEvent event)
Reacts on combo box selection changes.
|
void |
removeUpdate(javax.swing.event.DocumentEvent e)
Gives notification that a portion of the document has been removed.
|
void |
stateChanged(javax.swing.event.ChangeEvent event)
Called whenever the state of the options window is altered.
|
void |
templatesChanged(com.lf.commons.gui.panel.TemplatePanel comp,
int type,
java.lang.String id,
java.lang.String otherid)
Automatically called if the set of templates changed.
|
protected GenerateOptionsWindow parent
public GenerateOptionsController() throws java.lang.InstantiationException
I18NExtractor
).
java.lang.InstantiationException
- Error indicationpublic GenerateOptionsController(GenerateOptionsWindow window)
window
- The options window (required)java.lang.IllegalArgumentException
- If window is invalidpublic void stateChanged(javax.swing.event.ChangeEvent event)
stateChanged
in interface javax.swing.event.ChangeListener
event
- The state change eventpublic void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
event
- The event objectpublic void changedUpdate(javax.swing.event.DocumentEvent e)
changedUpdate
in interface javax.swing.event.DocumentListener
e
- Event object referencepublic void insertUpdate(javax.swing.event.DocumentEvent e)
insertUpdate
in interface javax.swing.event.DocumentListener
e
- Event object referencepublic void removeUpdate(javax.swing.event.DocumentEvent e)
removeUpdate
in interface javax.swing.event.DocumentListener
e
- Event object referencepublic void itemStateChanged(java.awt.event.ItemEvent event)
itemStateChanged
in interface java.awt.event.ItemListener
event
- The eventpublic void templatesChanged(com.lf.commons.gui.panel.TemplatePanel comp, int type, java.lang.String id, java.lang.String otherid)
templatesChanged
in interface com.lf.commons.gui.panel.TemplateListener
comp
- The template paneltype
- The change type TYPE_ADDED
, ...id
- The manipulated template identifierotherid
- For TYPE_ADDED
= base template id, for TYPE_RENAMED
= new idprotected void changeTemplate()
Copyright © 2005-2015 Leisenfels UG. All rights reserved.