public class SyncWindow
extends javax.swing.JPanel
implements com.lf.commons.docking.DockingWindow, com.lf.commons.model.ConfigurableUnit, com.lf.commons.gui.ActionDelegate
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
protected javax.swing.JButton |
buttonAddTarget_I18N |
protected javax.swing.JButton |
buttonAnt_I18N |
protected javax.swing.JButton |
buttonCLIArgs_I18N |
protected javax.swing.JButton |
buttonDownTarget_I18N |
protected javax.swing.JButton |
buttonHelp |
protected javax.swing.JButton |
buttonHelp2 |
protected javax.swing.JButton |
buttonRenameTarget_I18N |
protected javax.swing.JButton |
buttonSync_I18N |
protected java.awt.event.FocusListener |
buttonUpdater
Cares for the update of the shared actions for the tables.
|
protected javax.swing.JButton |
buttonUpTarget_I18N |
protected javax.swing.JCheckBox |
checkBoxBSDDir_I18N |
protected javax.swing.JCheckBox |
checkBoxBSDTarget_I18N |
protected javax.swing.JCheckBox |
checkBoxDigests_I18N |
protected javax.swing.JCheckBox |
checkBoxEntrySizeXML_I18N |
protected javax.swing.JCheckBox |
checkBoxEntryTimestampXML_I18N |
protected javax.swing.JCheckBox |
checkBoxFileSizes_I18N |
protected javax.swing.JCheckBox |
checkBoxGNUDir_I18N |
protected javax.swing.JCheckBox |
checkBoxGNUTarget_I18N |
protected javax.swing.JCheckBox |
checkBoxIntermediates_I18N |
protected javax.swing.JCheckBox |
checkBoxMD2_I18N |
protected javax.swing.JCheckBox |
checkBoxMD4_I18N |
protected javax.swing.JCheckBox |
checkBoxMD5_I18N |
protected javax.swing.JCheckBox |
checkBoxOverwrite_I18N |
protected javax.swing.JCheckBox |
checkBoxPGPTarget_I18N |
protected javax.swing.JCheckBox |
checkBoxRIPEMD128_I18N |
protected javax.swing.JCheckBox |
checkBoxRIPEMD160_I18N |
protected javax.swing.JCheckBox |
checkBoxRIPEMD256_I18N |
protected javax.swing.JCheckBox |
checkBoxRIPEMD320_I18N |
protected javax.swing.JCheckBox |
checkBoxSHA1_I18N |
protected javax.swing.JCheckBox |
checkBoxSHA224_I18N |
protected javax.swing.JCheckBox |
checkBoxSHA256_I18N |
protected javax.swing.JCheckBox |
checkBoxSHA384_I18N |
protected javax.swing.JCheckBox |
checkBoxSHA512_I18N |
protected javax.swing.JCheckBox |
checkBoxSignatures_I18N |
protected javax.swing.JCheckBox |
checkBoxTiger_I18N |
protected javax.swing.JCheckBox |
checkBoxTimestampGNUBSD_I18N |
protected javax.swing.JCheckBox |
checkBoxTimestampPGP_I18N |
protected javax.swing.JCheckBox |
checkBoxTimestamps_I18N |
protected javax.swing.JCheckBox |
checkBoxTimestampXML_I18N |
protected javax.swing.JCheckBox |
checkBoxWhirlpool_I18N |
protected javax.swing.JCheckBox |
checkBoxXMLDir_I18N |
protected javax.swing.JCheckBox |
checkBoxXMLFileSizes_I18N |
protected javax.swing.JCheckBox |
checkBoxXMLTarget_I18N |
protected javax.swing.JCheckBox |
checkBoxXMLTimestamps_I18N |
protected com.lf.commons.config.Configuration |
config
The configuration.
|
protected java.lang.String |
configID
The unique identifier for the instance.
|
protected SyncWindowController |
controller
The MVC controller, handles GUI callbacks.
|
protected java.util.Vector<java.awt.Component> |
extensionCheckBoxes
The set of format check boxes.
|
protected GenerateOptionsWindow |
generateWindow
The window providing the generate/refresh templates.
|
protected java.lang.String |
helpID
Identifier to call the help system (optional).
|
protected SyncWindowModel |
model
The MVC model, handles the templates.
|
protected SourceTargetPanel |
panelSources |
protected com.lf.commons.gui.panel.CollapsiblePane |
panelTargets |
protected com.lf.commons.gui.panel.TemplatePanel |
templatePanel |
protected javax.swing.JToggleButton |
toggleSyncDown_I18N |
protected javax.swing.JToggleButton |
toggleSyncUp_I18N |
protected com.lf.commons.docking.WindowParamDef |
windowParams
Data holder for the docking window parameters.
|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
SyncWindow()
Constructor for the GUI component.
|
Modifier and Type | Method and Description |
---|---|
protected com.lf.commons.gui.panel.CollapsiblePanel |
addTargetPanel(java.lang.String title,
boolean expand)
Adds a new target set.
|
void |
addTemplate(java.lang.String id,
com.lf.commons.config.Configuration config)
Sets new values for the given template from outside this docking window.
|
protected boolean |
checkEntryMapping()
Checks if the current entries are OK to be synchronized.
|
static java.lang.Object[] |
checkSet(java.lang.Object[] set)
Checks the given mapping for inconsistencies (might not be executed due to errors).
|
static boolean |
checkSourceTargetSets(java.lang.Object[] sourceentries,
java.lang.String[] targetsets,
java.util.Hashtable<java.lang.String,java.lang.Object[]> targetentries,
SourceTargetPanel sourcepanel,
SourceTargetPanel[] targetpanels)
Checks the parameters for inconsistencies (might not be executed due to errors).
|
void |
configureUnit(java.lang.String id,
com.lf.commons.config.Configuration config)
Restores values from persistent data stores.
|
protected void |
finalize()
Clean-up method to help the gc.
|
protected void |
flipTargetAndSource(SourceTargetPanel target)
Makes the given target set the source set and vice versa (flip).
|
com.lf.commons.gui.ActionDelegate |
getActionDelegate()
Provides the optional action delegate responsible for shared buttons and menu items.
|
SourceTargetPanel |
getActiveTargetPanel()
Provides the currently active target panel.
|
java.lang.String |
getActiveTargetPanelName()
Provides the name of the currently active target panel.
|
com.lf.commons.gui.panel.CollapsiblePanel |
getCollapsiblePanel(com.lf.commons.gui.panel.GradientPanel header)
Provides the associated
CollapsiblePanel for the given header panel. |
com.lf.commons.gui.panel.CollapsiblePanel |
getCollapsiblePanel(SourceTargetPanel panel)
Provides the associated
CollapsiblePanel for the given target panel. |
java.awt.Component |
getComponent()
Provides the component to be displayed in the center of the docking manager.
|
com.lf.commons.docking.DockingManager |
getDockingManager()
Provides the docking manager specified when
windowAdded() was called. |
boolean |
getDropEnabled()
Getter for the drop gesture supported by this window (default:
false ). |
com.lf.commons.lang.OrderedHashtable<java.lang.Object,java.lang.Object[]> |
getEntryMapping(boolean fileobject)
Prepares the current entries for the synchronization.
|
SourceTargetPanel |
getFirstBestTargetPanel()
Provides the first-best target panel.
|
javax.swing.ImageIcon |
getIcon()
Provides the graphical icon of the window used for display.
|
java.lang.String |
getID()
Provides the identifier for the window.
|
int |
getIndexTargetPanel(SourceTargetPanel panel)
Provides the index of the given target panel.
|
int |
getMode()
Provides the mode the the window is presented.
|
java.lang.String[] |
getNamesTargetPanel()
Provides the names of the managed target panels.
|
java.lang.String |
getNameTargetPanel(com.lf.commons.gui.panel.CollapsiblePanel collapsible)
Provides the name of the given target panel.
|
java.lang.String |
getNameTargetPanel(SourceTargetPanel panel)
Provides the name of the given target panel.
|
int |
getPreferredHeight()
Provides the preferred height of the component for TOP and BOTTOM locations.
|
int |
getPreferredWidth()
Provides the preferred width of the component for LEFT and RIGHT locations.
|
java.lang.String[] |
getSupportedActions()
Provides the supported shared actions for this delegate.
|
SourceTargetPanel |
getTargetPanel(java.lang.String targetsetname)
Provides the panel for the given target set name.
|
java.lang.String |
getTargetPanelName(SourceTargetPanel targetpanel)
Provides the name for the given target set panel.
|
SourceTargetPanel[] |
getTargetPanels()
Provides the managed target panels.
|
java.lang.String[] |
getTargetSetNames()
Provides the names of the target sets.
|
com.lf.commons.config.Configuration |
getTemplate()
Provides the current template settings.
|
com.lf.commons.config.Configuration |
getTemplate(java.lang.String id,
boolean clone)
Provides the generate options from the internal cache.
|
java.lang.String |
getTemplateName()
Provides the name of the current template.
|
java.util.Hashtable<java.lang.String,com.lf.commons.config.Configuration> |
getTemplates()
Provides the template configurations (copies, feel free to alter :-).
|
java.lang.String |
getTitle()
Provides the title of the window used for display.
|
java.lang.String |
getToolTip()
Provides the tooltip of the window used for display.
|
int |
getWindowHeight()
Provides the height when in window mode.
|
int |
getWindowLocation()
Provides the last location of the window passed to the
windowxxx() methods. |
int |
getWindowLocationX()
Provides the location on the x-axis when in window mode.
|
int |
getWindowLocationY()
Provides the location on the y-axis when in window mode.
|
int |
getWindowState()
Provides the state (iconified etc.) when in window mode.
|
int |
getWindowWidth()
Provides the width when in window mode.
|
boolean |
isAutomatic()
Provides if the window may be controlled externally.
|
boolean |
isButtonPressed()
Provides the info whether the window is showing or not (hidden).
|
boolean |
isButtonVisible()
Provides the info whether the control button is visible or not.
|
boolean |
isGrowing()
Provides if the window fills the location completely.
|
boolean |
isWindowMode()
Provides the info whether the window is being displayed as separate window.
|
boolean |
isWindowVisible()
Provides if the window is currently being shown.
|
com.lf.commons.config.Configuration |
mapToSyncOptions(com.lf.commons.config.Configuration genconfig,
java.lang.String gentemplate,
boolean refresh,
java.lang.Object[] sources,
java.lang.Object[] targets,
java.lang.String targetname)
Derives appropriate sync options from the given generate options.
|
protected void |
overrideTableCut(SourceTargetPanel panel)
Override the default source/target table input action.
|
void |
processAction(com.lf.commons.gui.SharedAction action)
Indicates that the given action was initiated and must be processed.
|
void |
refresh()
Updates the contents of the docking window.
|
protected void |
removeTargetPanel(com.lf.commons.gui.panel.CollapsiblePanel collapsible)
Removes an existing target set.
|
void |
renameTargetPanel(SourceTargetPanel panel,
java.lang.String newtitle)
Renames a certain target panel.
|
void |
setAutomatic(boolean enable)
Sets if the window may be controlled externally.
|
void |
setButtonPressed(boolean pressed)
Sets the info whether the window is showing or not (hidden).
|
void |
setButtonVisible(boolean visible)
Sets the info whether the control button is visible or not.
|
void |
setDropEnabled(boolean enable)
Setter for the drop gesture supported by this window (default:
false ). |
void |
setGenerateWindow(GenerateOptionsWindow genwindow)
Setter for the options docking window.
|
void |
setGrowing(boolean enable)
Sets if the window fills the location completely.
|
void |
setID(java.lang.String id)
Sets the identifier for the window.
|
void |
setMode(int mode)
Sets the mode the the window is presented.
|
void |
setPreferredHeight(int height)
Sets the preferred height of the component for TOP and BOTTOM locations.
|
void |
setPreferredWidth(int width)
Sets the preferred width of the component for LEFT and RIGHT locations.
|
void |
setSelectedTemplate(java.lang.String id)
Sets the template identifier to be selected.
|
void |
setTemplate(com.lf.commons.config.Configuration config)
Sets the current template settings.
|
void |
setWindowHeight(int height)
Sets the height when in window mode.
|
void |
setWindowLocationX(int locx)
Sets the location on the x-axis when in window mode.
|
void |
setWindowLocationY(int locy)
Sets the location on the y-axis when in window mode.
|
void |
setWindowMode(boolean enable)
Sets the info whether the window is being displayed as separate window.
|
void |
setWindowState(int state)
Sets the state (iconified etc.) when in window mode.
|
void |
setWindowVisible(boolean visible)
Sets the state if the window is currently being shown.
|
void |
setWindowWidth(int width)
Sets the width when in window mode.
|
void |
startControl(com.lf.commons.gui.SharedAction[] actions)
Provides the info that the given shared actions must now be controlled.
|
void |
stopControl()
Provides the info that the control of the given shared actions must be stopped.
|
void |
storeUnit(java.lang.String id,
com.lf.commons.config.Configuration config)
Stores the current configuration values persistently.
|
void |
unitRegistered(com.lf.commons.model.ApplicationModel model,
java.lang.String id)
Informs the configurable unit that it was registered with a model.
|
void |
unitUnregistered(com.lf.commons.model.ApplicationModel model,
java.lang.String id)
Informs the configurable unit that it was unregistered with a model.
|
protected void |
updateComps()
Updates the component states (enabled/disabled).
|
protected void |
updateGenerateTemplates()
Updates the templates as configured by
GenerateOptionsWindow . |
protected void |
updateSharedActions()
Updates the states of the shared actions provided by the docking manager (e.g. table delete).
|
protected void |
updateTemplate(java.lang.String id)
Convenience to store the current settings into the template.
|
void |
updateTemplate(java.lang.String id,
com.lf.commons.config.Configuration config)
Sets new values for the given template from outside this docking window.
|
void |
windowAdded(com.lf.commons.docking.DockingManager manager,
int location)
Informs the docking window that it was added by the manager.
|
void |
windowBecomesHidden(int location)
Informs the docking window that it will be made invisible by the manager.
|
void |
windowBecomesShown(int location)
Informs the docking window that it will be made visible by the manager.
|
void |
windowClosed(int location)
Informs the docking window that it was closed (not in the dock or window any more).
|
void |
windowIsActive(int location)
Informs the docking window that it is now the active window.
|
void |
windowIsHiding(int location)
Informs the docking window that it was made invisible by the manager.
|
void |
windowIsInactive(int location)
Informs the docking window that it is not the active window any longer.
|
void |
windowIsShowing(int location)
Informs the docking window that it was made visible by the manager.
|
void |
windowRemoved(com.lf.commons.docking.DockingManager manager,
int location)
Informs the docking window that it was removed by the manager.
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected com.lf.commons.docking.WindowParamDef windowParams
protected java.lang.String configID
protected com.lf.commons.config.Configuration config
protected java.awt.event.FocusListener buttonUpdater
protected GenerateOptionsWindow generateWindow
protected SyncWindowModel model
protected SyncWindowController controller
protected java.util.Vector<java.awt.Component> extensionCheckBoxes
protected java.lang.String helpID
protected com.lf.commons.gui.panel.TemplatePanel templatePanel
protected SourceTargetPanel panelSources
protected javax.swing.JButton buttonAddTarget_I18N
protected javax.swing.JButton buttonRenameTarget_I18N
protected javax.swing.JButton buttonUpTarget_I18N
protected javax.swing.JButton buttonDownTarget_I18N
protected javax.swing.JToggleButton toggleSyncDown_I18N
protected javax.swing.JToggleButton toggleSyncUp_I18N
protected com.lf.commons.gui.panel.CollapsiblePane panelTargets
protected javax.swing.JCheckBox checkBoxGNUTarget_I18N
protected javax.swing.JCheckBox checkBoxGNUDir_I18N
protected javax.swing.JCheckBox checkBoxBSDTarget_I18N
protected javax.swing.JCheckBox checkBoxBSDDir_I18N
protected javax.swing.JCheckBox checkBoxPGPTarget_I18N
protected javax.swing.JCheckBox checkBoxXMLTarget_I18N
protected javax.swing.JCheckBox checkBoxXMLDir_I18N
protected javax.swing.JCheckBox checkBoxMD2_I18N
protected javax.swing.JCheckBox checkBoxSHA1_I18N
protected javax.swing.JCheckBox checkBoxMD4_I18N
protected javax.swing.JCheckBox checkBoxSHA224_I18N
protected javax.swing.JCheckBox checkBoxMD5_I18N
protected javax.swing.JCheckBox checkBoxSHA256_I18N
protected javax.swing.JCheckBox checkBoxRIPEMD128_I18N
protected javax.swing.JCheckBox checkBoxSHA384_I18N
protected javax.swing.JCheckBox checkBoxRIPEMD160_I18N
protected javax.swing.JCheckBox checkBoxSHA512_I18N
protected javax.swing.JCheckBox checkBoxRIPEMD256_I18N
protected javax.swing.JCheckBox checkBoxTiger_I18N
protected javax.swing.JCheckBox checkBoxRIPEMD320_I18N
protected javax.swing.JCheckBox checkBoxWhirlpool_I18N
protected javax.swing.JCheckBox checkBoxDigests_I18N
protected javax.swing.JCheckBox checkBoxSignatures_I18N
protected javax.swing.JCheckBox checkBoxIntermediates_I18N
protected javax.swing.JCheckBox checkBoxXMLFileSizes_I18N
protected javax.swing.JCheckBox checkBoxXMLTimestamps_I18N
protected javax.swing.JCheckBox checkBoxFileSizes_I18N
protected javax.swing.JCheckBox checkBoxTimestamps_I18N
protected javax.swing.JCheckBox checkBoxOverwrite_I18N
protected javax.swing.JCheckBox checkBoxTimestampGNUBSD_I18N
protected javax.swing.JCheckBox checkBoxTimestampPGP_I18N
protected javax.swing.JCheckBox checkBoxTimestampXML_I18N
protected javax.swing.JCheckBox checkBoxEntrySizeXML_I18N
protected javax.swing.JCheckBox checkBoxEntryTimestampXML_I18N
protected javax.swing.JButton buttonHelp
protected javax.swing.JButton buttonHelp2
protected javax.swing.JButton buttonSync_I18N
protected javax.swing.JButton buttonCLIArgs_I18N
protected javax.swing.JButton buttonAnt_I18N
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void setGenerateWindow(GenerateOptionsWindow genwindow)
genwindow
- The window providing the generate/refresh templatesjava.lang.NullPointerException
- If a parameter is null
public com.lf.commons.config.Configuration mapToSyncOptions(com.lf.commons.config.Configuration genconfig, java.lang.String gentemplate, boolean refresh, java.lang.Object[] sources, java.lang.Object[] targets, java.lang.String targetname)
genconfig
- The generate optionsgentemplate
- The generate template to userefresh
- Refresh mode?sources
- The array of FileObject
or File
targets
- The array of FileObject
or File
targetname
- The name of the only target set (no brackets/HTML!)public java.lang.String getID()
getID
in interface com.lf.commons.docking.DockingWindow
public void setID(java.lang.String id)
id
- The window identifierpublic java.lang.String getTitle()
getTitle
in interface com.lf.commons.docking.DockingWindow
public java.lang.String getToolTip()
getToolTip
in interface com.lf.commons.docking.DockingWindow
public javax.swing.ImageIcon getIcon()
getIcon
in interface com.lf.commons.docking.DockingWindow
public java.awt.Component getComponent()
getComponent
in interface com.lf.commons.docking.DockingWindow
public int getPreferredWidth()
getPreferredWidth
in interface com.lf.commons.docking.DockingWindow
public void setPreferredWidth(int width)
setPreferredWidth
in interface com.lf.commons.docking.DockingWindow
width
- The preferred widthpublic int getPreferredHeight()
getPreferredHeight
in interface com.lf.commons.docking.DockingWindow
public void setPreferredHeight(int height)
setPreferredHeight
in interface com.lf.commons.docking.DockingWindow
height
- The preferred heightpublic int getMode()
getMode
in interface com.lf.commons.docking.DockingWindow
public void setMode(int mode)
setMode
in interface com.lf.commons.docking.DockingWindow
mode
- The mode (MODE_DOCKING_PINNED, MODE_DOCKING_UNPINNED, ...)public boolean isAutomatic()
isAutomatic
in interface com.lf.commons.docking.DockingWindow
public void setAutomatic(boolean enable)
setAutomatic
in interface com.lf.commons.docking.DockingWindow
enable
- The automatic modepublic boolean isGrowing()
isGrowing
in interface com.lf.commons.docking.DockingWindow
public void setGrowing(boolean enable)
setGrowing
in interface com.lf.commons.docking.DockingWindow
enable
- The growing modepublic boolean isButtonVisible()
isVisible()
.
isButtonVisible
in interface com.lf.commons.docking.DockingWindow
public void setButtonVisible(boolean visible)
isVisible()
.
setButtonVisible
in interface com.lf.commons.docking.DockingWindow
visible
- The visibility flagpublic boolean isButtonPressed()
isButtonPressed
in interface com.lf.commons.docking.DockingWindow
public void setButtonPressed(boolean pressed)
setButtonPressed
in interface com.lf.commons.docking.DockingWindow
pressed
- The pressed flagpublic boolean isWindowMode()
isWindowMode
in interface com.lf.commons.docking.DockingWindow
public void setWindowMode(boolean enable)
setWindowMode
in interface com.lf.commons.docking.DockingWindow
enable
- The flagpublic boolean isWindowVisible()
isWindowVisible
in interface com.lf.commons.docking.DockingWindow
public void setWindowVisible(boolean visible)
setWindowVisible
in interface com.lf.commons.docking.DockingWindow
visible
- The statepublic int getWindowLocationX()
getWindowLocationX
in interface com.lf.commons.docking.DockingWindow
public void setWindowLocationX(int locx)
setWindowLocationX
in interface com.lf.commons.docking.DockingWindow
locx
- The x-axis locationpublic int getWindowLocationY()
getWindowLocationY
in interface com.lf.commons.docking.DockingWindow
public void setWindowLocationY(int locy)
setWindowLocationY
in interface com.lf.commons.docking.DockingWindow
locy
- The y-axis locationpublic int getWindowWidth()
getWindowWidth
in interface com.lf.commons.docking.DockingWindow
public void setWindowWidth(int width)
setWindowWidth
in interface com.lf.commons.docking.DockingWindow
width
- The widthpublic int getWindowHeight()
getWindowHeight
in interface com.lf.commons.docking.DockingWindow
public void setWindowHeight(int height)
setWindowHeight
in interface com.lf.commons.docking.DockingWindow
height
- The heightpublic int getWindowState()
getWindowState
in interface com.lf.commons.docking.DockingWindow
public void setWindowState(int state)
setWindowState
in interface com.lf.commons.docking.DockingWindow
state
- The statepublic void windowAdded(com.lf.commons.docking.DockingManager manager, int location)
windowRemoved()
are called.
windowAdded
in interface com.lf.commons.docking.DockingWindow
manager
- The docking managerlocation
- The location (TOP, BOTTOM, LEFT, RIGHT
)public void windowRemoved(com.lf.commons.docking.DockingManager manager, int location)
windowAdded()
are called.
windowRemoved
in interface com.lf.commons.docking.DockingWindow
manager
- The docking managerlocation
- The location (TOP, BOTTOM, LEFT, RIGHT
)public void windowClosed(int location)
windowClosed
in interface com.lf.commons.docking.DockingWindow
location
- The location (TOP, BOTTOM, LEFT, RIGHT
)public void windowBecomesShown(int location)
windowBecomesShown
in interface com.lf.commons.docking.DockingWindow
location
- The location (TOP, BOTTOM, LEFT, RIGHT
)public void windowBecomesHidden(int location)
windowBecomesHidden
in interface com.lf.commons.docking.DockingWindow
location
- The location (TOP, BOTTOM, LEFT, RIGHT
)public void windowIsShowing(int location)
windowIsShowing
in interface com.lf.commons.docking.DockingWindow
location
- The location (TOP, BOTTOM, LEFT, RIGHT
)public void windowIsHiding(int location)
windowIsHiding
in interface com.lf.commons.docking.DockingWindow
location
- The location (TOP, BOTTOM, LEFT, RIGHT
)public void windowIsActive(int location)
windowIsActive
in interface com.lf.commons.docking.DockingWindow
location
- The location (TOP, BOTTOM, LEFT, RIGHT
)public void windowIsInactive(int location)
windowIsInactive
in interface com.lf.commons.docking.DockingWindow
location
- The location (TOP, BOTTOM, LEFT, RIGHT
)public com.lf.commons.docking.DockingManager getDockingManager()
windowAdded()
was called.
getDockingManager
in interface com.lf.commons.docking.DockingWindow
null
if not availablepublic void refresh()
refresh
in interface com.lf.commons.docking.DockingWindow
public com.lf.commons.gui.ActionDelegate getActionDelegate()
getActionDelegate
in interface com.lf.commons.docking.DockingWindow
null
if not availablepublic int getWindowLocation()
windowxxx()
methods.
getWindowLocation
in interface com.lf.commons.docking.DockingWindow
TOP, BOTTOM, LEFT, RIGHT
) or -1public java.lang.String[] getSupportedActions()
getSupportedActions
in interface com.lf.commons.gui.ActionDelegate
public void startControl(com.lf.commons.gui.SharedAction[] actions)
startControl
in interface com.lf.commons.gui.ActionDelegate
actions
- The actions to care forpublic void stopControl()
stopControl
in interface com.lf.commons.gui.ActionDelegate
public void processAction(com.lf.commons.gui.SharedAction action)
processAction
in interface com.lf.commons.gui.ActionDelegate
action
- The action to be processedprotected void updateComps()
public static boolean checkSourceTargetSets(java.lang.Object[] sourceentries, java.lang.String[] targetsets, java.util.Hashtable<java.lang.String,java.lang.Object[]> targetentries, SourceTargetPanel sourcepanel, SourceTargetPanel[] targetpanels)
sourceentries
- The sourcestargetentries
- The targets by identifiertargetsets
- The names of the target setssourcepanel
- The component with sources (optional)targetpanels
- The components with targets (optional)public static java.lang.Object[] checkSet(java.lang.Object[] set)
set
- The sources or targets to checknull
if OKprotected void updateSharedActions()
protected void updateTemplate(java.lang.String id)
id
- The template IDpublic void updateTemplate(java.lang.String id, com.lf.commons.config.Configuration config)
id
- The template IDconfig
- The template valuespublic void addTemplate(java.lang.String id, com.lf.commons.config.Configuration config)
id
- The template IDconfig
- The template valuespublic void setSelectedTemplate(java.lang.String id)
id
- The template identifierjava.lang.NullPointerException
- If a parameter is null
java.lang.IllegalArgumentException
- If a parameter is invalidpublic java.lang.String getTemplateName()
public com.lf.commons.config.Configuration getTemplate()
public com.lf.commons.config.Configuration getTemplate(java.lang.String id, boolean clone)
id
- The template identifierclone
- Create a copy?null
if not availablepublic java.util.Hashtable<java.lang.String,com.lf.commons.config.Configuration> getTemplates()
public void setTemplate(com.lf.commons.config.Configuration config)
config
- The configurationpublic void configureUnit(java.lang.String id, com.lf.commons.config.Configuration config)
configureUnit
in interface com.lf.commons.model.ConfigurableUnit
id
- The unique identifier for the instanceconfig
- The configurationpublic void storeUnit(java.lang.String id, com.lf.commons.config.Configuration config)
storeUnit
in interface com.lf.commons.model.ConfigurableUnit
id
- The unique identifier for the instanceconfig
- The configurationpublic void unitRegistered(com.lf.commons.model.ApplicationModel model, java.lang.String id)
unitRegistered
in interface com.lf.commons.model.ConfigurableUnit
model
- The application modelid
- The unique identifier for the instancepublic void unitUnregistered(com.lf.commons.model.ApplicationModel model, java.lang.String id)
unitUnregistered
in interface com.lf.commons.model.ConfigurableUnit
model
- The application modelid
- The unique identifier for the instanceprotected com.lf.commons.gui.panel.CollapsiblePanel addTargetPanel(java.lang.String title, boolean expand)
title
- The header titleexpand
- Expand the new panel?java.lang.IllegalArgumentException
- If parameters are invalidprotected void removeTargetPanel(com.lf.commons.gui.panel.CollapsiblePanel collapsible)
collapsible
- The panelpublic void setDropEnabled(boolean enable)
false
).
enable
- Enable dropping?public boolean getDropEnabled()
false
).
public SourceTargetPanel getActiveTargetPanel()
null
otherwisepublic java.lang.String getActiveTargetPanelName()
null
otherwisepublic SourceTargetPanel getFirstBestTargetPanel()
null
otherwisepublic int getIndexTargetPanel(SourceTargetPanel panel)
panel
- The panel to get the indexpublic java.lang.String getNameTargetPanel(SourceTargetPanel panel)
panel
- The panel to get the namenull
otherwisepublic java.lang.String getNameTargetPanel(com.lf.commons.gui.panel.CollapsiblePanel collapsible)
collapsible
- The panel to get the namenull
otherwisepublic com.lf.commons.gui.panel.CollapsiblePanel getCollapsiblePanel(SourceTargetPanel panel)
CollapsiblePanel
for the given target panel.
panel
- The panel to get the namenull
otherwisepublic com.lf.commons.gui.panel.CollapsiblePanel getCollapsiblePanel(com.lf.commons.gui.panel.GradientPanel header)
CollapsiblePanel
for the given header panel.
header
- The header panelnull
otherwisepublic java.lang.String[] getNamesTargetPanel()
public SourceTargetPanel[] getTargetPanels()
public void renameTargetPanel(SourceTargetPanel panel, java.lang.String newtitle)
panel
- The panel to get the namenewtitle
- The new namepublic com.lf.commons.lang.OrderedHashtable<java.lang.Object,java.lang.Object[]> getEntryMapping(boolean fileobject)
null
is returned. All values in the container
have the same array length. Remember that this method checks the toggle button state
for the transfer direction (up/down), so the sources and (active) targets may be switched!
fileobject
- Return FileObject
instead of VFSURI
null
if invalidpublic SourceTargetPanel getTargetPanel(java.lang.String targetsetname)
targetsetname
- The desired target setnull
otherwisepublic java.lang.String[] getTargetSetNames()
protected boolean checkEntryMapping()
public java.lang.String getTargetPanelName(SourceTargetPanel targetpanel)
targetpanel
- The desired target panelnull
otherwiseprotected void overrideTableCut(SourceTargetPanel panel)
panel
- The panelprotected void updateGenerateTemplates()
GenerateOptionsWindow
.
protected void flipTargetAndSource(SourceTargetPanel target)
target
- The target to become sourceCopyright © 2005-2015 Leisenfels UG. All rights reserved.