public class SyncWindowController
extends java.awt.event.MouseAdapter
implements javax.swing.event.ChangeListener, java.awt.event.ActionListener, java.awt.event.ItemListener, com.lf.commons.gui.panel.TemplateListener, com.lf.commons.gui.panel.CollapsibleListener, javax.swing.event.DocumentListener, javax.swing.event.TableModelListener, javax.swing.event.ListSelectionListener
SyncWindow
.
Modifier and Type | Field and Description |
---|---|
protected javax.swing.JMenuItem |
itemAdd
Context menu item for the collapsible panels.
|
protected javax.swing.JMenuItem |
itemAll
Context menu item for the collapsible panels.
|
protected boolean |
itemEventTemplatesDisabled
Flag to detect manual combo box changes.
|
protected javax.swing.JMenuItem |
itemFlip
Context menu item for the collapsible panels.
|
protected javax.swing.JMenuItem |
itemMoveDown
Context menu item for the collapsible panels.
|
protected javax.swing.JMenuItem |
itemMoveUp
Context menu item for the collapsible panels.
|
protected javax.swing.JMenuItem |
itemRename
Context menu item for the collapsible panels.
|
protected javax.swing.JMenuItem |
itemThis
Context menu item for the collapsible panels.
|
protected SyncWindow |
parent
Parental reference.
|
protected javax.swing.JPopupMenu |
popupMenuCollapsible
Context menu for the collapsible panels.
|
Constructor and Description |
---|
SyncWindowController()
Constructor method for i18n purposes only.
|
SyncWindowController(SyncWindow parent)
Class constructor.
|
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.
|
protected void |
closePanels(com.lf.commons.gui.panel.CollapsiblePanel[] panels)
Closes target set panels.
|
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 |
mousePressed(java.awt.event.MouseEvent e)
MouseListener method. |
void |
mouseReleased(java.awt.event.MouseEvent e)
MouseListener method. |
void |
panelClosed(com.lf.commons.gui.panel.CollapsiblePanel panel)
Informs the listener that the panel has been closed.
|
void |
panelCollapsed(com.lf.commons.gui.panel.CollapsiblePanel panel)
Informs the listener that the panel has been collapsed.
|
void |
panelExpanded(com.lf.commons.gui.panel.CollapsiblePanel panel)
Informs the listener that the panel has been expanded.
|
protected java.lang.String[] |
preselectTargetSets(java.lang.String[] targetsets,
java.lang.String mappingid)
Convenience to let the user pre-select from a set of target sets.
|
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 file system window is altered.
|
void |
tableChanged(javax.swing.event.TableModelEvent e)
Gives notification that a table model has been 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.
|
void |
valueChanged(javax.swing.event.ListSelectionEvent event)
Reacts on table selection changes (sources/target panel tables).
|
protected SyncWindow parent
protected boolean itemEventTemplatesDisabled
protected javax.swing.JPopupMenu popupMenuCollapsible
protected javax.swing.JMenuItem itemAdd
protected javax.swing.JMenuItem itemRename
protected javax.swing.JMenuItem itemMoveUp
protected javax.swing.JMenuItem itemMoveDown
protected javax.swing.JMenuItem itemFlip
protected javax.swing.JMenuItem itemThis
protected javax.swing.JMenuItem itemAll
public SyncWindowController() throws java.lang.InstantiationException
I18NExtractor
).
java.lang.InstantiationException
- Error indicationpublic SyncWindowController(SyncWindow parent)
parent
- Parental windowpublic void stateChanged(javax.swing.event.ChangeEvent event)
stateChanged
in interface javax.swing.event.ChangeListener
event
- The state change eventpublic void valueChanged(javax.swing.event.ListSelectionEvent event)
valueChanged
in interface javax.swing.event.ListSelectionListener
event
- The eventpublic void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
event
- The event objectpublic 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()
public void panelExpanded(com.lf.commons.gui.panel.CollapsiblePanel panel)
panelExpanded
in interface com.lf.commons.gui.panel.CollapsibleListener
panel
- The collapsible panelpublic void panelCollapsed(com.lf.commons.gui.panel.CollapsiblePanel panel)
panelCollapsed
in interface com.lf.commons.gui.panel.CollapsibleListener
panel
- The collapsible panelpublic void panelClosed(com.lf.commons.gui.panel.CollapsiblePanel panel)
panelClosed
in interface com.lf.commons.gui.panel.CollapsibleListener
panel
- The collapsible panelprotected void closePanels(com.lf.commons.gui.panel.CollapsiblePanel[] panels)
panels
- The collapsible panelspublic 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 tableChanged(javax.swing.event.TableModelEvent e)
tableChanged
in interface javax.swing.event.TableModelListener
e
- Event object referenceprotected java.lang.String[] preselectTargetSets(java.lang.String[] targetsets, java.lang.String mappingid)
targetsets
- All available target setsmappingid
- The ID of the current templatenull
= cancelpublic void mousePressed(java.awt.event.MouseEvent e)
MouseListener
method.
mousePressed
in interface java.awt.event.MouseListener
mousePressed
in class java.awt.event.MouseAdapter
e
- Eventpublic void mouseReleased(java.awt.event.MouseEvent e)
MouseListener
method.
mouseReleased
in interface java.awt.event.MouseListener
mouseReleased
in class java.awt.event.MouseAdapter
e
- EventCopyright © 2005-2015 Leisenfels UG. All rights reserved.