public class CheckOptionsWindow
extends javax.swing.JPanel
implements com.lf.commons.docking.DockingWindow, javax.swing.event.ChangeListener, java.awt.event.ActionListener, javax.swing.event.DocumentListener, com.lf.commons.gui.ActionDelegate, com.lf.commons.model.ConfigurableUnit
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
protected javax.swing.JButton |
buttonCheck_I18N |
protected java.util.Vector<java.awt.Component> |
extensionCheckBoxes
The set of file extension check boxes.
|
protected java.util.Vector<java.awt.Component> |
extensionTextFields
The set of file extension input fields.
|
protected java.lang.String |
helpID
Identifier to call the help system (optional).
|
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 |
---|
CheckOptionsWindow()
Constructor for the GUI 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.
|
java.io.File[] |
compensateFileSelection(java.io.File[] files)
Compensates a file selection so that only digest files are part of the array.
|
static java.io.File[] |
compensateFileSelection(java.io.File[] files,
com.lf.commons.config.Configuration config)
Compensates a file selection so that only digest files are part of the array.
|
static org.apache.commons.vfs2.FileObject[] |
compensateURLSelection(com.lf.commons.config.Configuration config,
org.apache.commons.vfs2.FileObject[] urls)
Compensates a URL selection so that candidate digest files are scanned.
|
org.apache.commons.vfs2.FileObject[] |
compensateURLSelection(org.apache.commons.vfs2.FileObject[] urls)
Compensates a URL selection so that candidate digest files are scanned.
|
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.
|
com.lf.commons.gui.ActionDelegate |
getActionDelegate()
Provides the optional action delegate responsible for shared buttons and menu items.
|
static java.lang.String |
getAlgorithm(java.lang.String file,
com.lf.commons.config.Configuration config)
Determine the expected algorithm based on the suffix (not included for GNU files).
|
java.util.Vector<java.lang.String> |
getAllExtensions(boolean onlyactive)
Provides the currently configured extensions for digest files.
|
static java.util.Vector<java.lang.String> |
getAllExtensions(com.lf.commons.config.Configuration config,
boolean onlyactive)
Provides the currently configured extensions for digest files.
|
java.awt.Component |
getComponent()
Provides the component to be displayed in the center of the docking manager.
|
com.lf.commons.config.Configuration |
getConfiguration()
Provides the check options as a whole.
|
static com.lf.commons.config.Configuration |
getConfiguration(java.lang.String id,
com.lf.commons.config.Configuration config,
boolean defaults)
Extracts the window options from the given model configuration (no GUI required).
|
static java.util.Vector<java.io.File> |
getDigestFilesPerTarget(com.lf.commons.config.Configuration config,
java.io.File file,
boolean onlyactive)
Checks the given file if there is at least one per-target digest file in the directory.
|
java.util.Vector<java.io.File> |
getDigestFilesPerTarget(java.io.File file,
boolean onlyactive)
Checks the given file if there is at least one per-target digest file in the directory.
|
static java.util.Vector<org.apache.commons.vfs2.FileObject> |
getDigestURLCandidatesPerTarget(com.lf.commons.config.Configuration config,
org.apache.commons.vfs2.FileObject url,
boolean onlyactive)
Checks the given URL if there is at least one per-target digest file in the directory.
|
java.util.Vector<org.apache.commons.vfs2.FileObject> |
getDigestURLCandidatesPerTarget(org.apache.commons.vfs2.FileObject url,
boolean onlyactive)
Checks the given URL if there is at least one per-target digest file in the directory.
|
com.lf.commons.docking.DockingManager |
getDockingManager()
Provides the docking manager specified when
windowAdded() was called. |
static int |
getFileType(java.lang.String file,
com.lf.commons.config.Configuration config)
Collects all available files in a given local directory (
File variant). |
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 |
getMode()
Provides the mode the the window is presented.
|
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.util.Vector<com.lf.commons.io.SuffixFilter> |
getSuffixFilters(boolean onlyactive)
Provides the extensions defined for the algorithms and the XML format.
|
static java.util.Vector<com.lf.commons.io.SuffixFilter> |
getSuffixFilters(com.lf.commons.config.Configuration options,
boolean onlyactive)
Provides the extensions defined for the algorithms and the XML format.
|
java.lang.String[] |
getSupportedActions()
Provides the supported shared actions for this delegate.
|
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 |
hasDigestFilePerTarget(java.io.File file,
boolean onlyactive)
Checks the given file if there is at least one per-target digest file in the directory.
|
boolean |
hasDigestURLPerTarget(org.apache.commons.vfs2.FileObject url,
boolean onlyactive)
Checks the given URL if there is at least one per-target digest file in the directory.
|
void |
insertUpdate(javax.swing.event.DocumentEvent e)
Gives notification that there was an insert into the document.
|
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 |
isDigesterFile(java.io.File file,
boolean onlyactive)
Checks the given file if the extension is one of the defined digest file suffixes.
|
static boolean |
isDigesterFile(java.lang.String name,
java.util.Vector<java.lang.String> extensions)
Checks if the given filename is a digest file based on the file extensions.
|
static boolean |
isDigesterURL(com.lf.commons.config.Configuration config,
org.apache.commons.vfs2.FileObject url,
boolean onlyactive)
Checks the given resource if the extension is one of the defined digest file suffixes.
|
boolean |
isDigesterURL(org.apache.commons.vfs2.FileObject url,
boolean onlyactive)
Checks the given resource if the extension is one of the defined digest file suffixes.
|
boolean |
isDigesterXMLFile(java.io.File file)
Checks the given file if the extension fits with the configured Digester XML suffix.
|
boolean |
isDigesterXMLURL(org.apache.commons.vfs2.FileObject url)
Checks the given URL if the extension fits with the configured Digester XML suffix.
|
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.
|
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.
|
void |
removeUpdate(javax.swing.event.DocumentEvent e)
Gives notification that a portion of the document has been removed.
|
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 |
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 |
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 |
stateChanged(javax.swing.event.ChangeEvent event)
Called whenever the state of the file system window is altered.
|
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 button and combo box states (enabled/disabled).
|
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.util.Vector<java.awt.Component> extensionCheckBoxes
protected java.util.Vector<java.awt.Component> extensionTextFields
protected java.lang.String helpID
protected javax.swing.JButton buttonCheck_I18N
public CheckOptionsWindow()
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
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 com.lf.commons.config.Configuration getConfiguration()
public static com.lf.commons.config.Configuration getConfiguration(java.lang.String id, com.lf.commons.config.Configuration config, boolean defaults)
id
- The unique identifier for the instanceconfig
- The model configurationdefaults
- Apply default values if not available?public java.util.Vector<com.lf.commons.io.SuffixFilter> getSuffixFilters(boolean onlyactive)
onlyactive
- Check only the selected extensionspublic static java.util.Vector<com.lf.commons.io.SuffixFilter> getSuffixFilters(com.lf.commons.config.Configuration options, boolean onlyactive)
options
- The check options from CheckOptionsWindow
onlyactive
- Check only the selected extensionspublic boolean isDigesterFile(java.io.File file, boolean onlyactive)
file
- The file to be checkedonlyactive
- Check only the selected extensionsjava.lang.NullPointerException
- If file is invalidpublic boolean isDigesterXMLFile(java.io.File file)
file
- The file to be checkedjava.lang.NullPointerException
- If file is invalidpublic boolean isDigesterURL(org.apache.commons.vfs2.FileObject url, boolean onlyactive)
url
- The URL to be checkedonlyactive
- Check only the selected extensionsjava.lang.NullPointerException
- If url is invalidpublic boolean isDigesterXMLURL(org.apache.commons.vfs2.FileObject url)
url
- The URL to be checkedjava.lang.NullPointerException
- If URL is invalidpublic static boolean isDigesterURL(com.lf.commons.config.Configuration config, org.apache.commons.vfs2.FileObject url, boolean onlyactive)
config
- The options for this windowurl
- The URL to be checkedonlyactive
- Check only the selected extensionsjava.lang.NullPointerException
- If url is invalidpublic boolean hasDigestFilePerTarget(java.io.File file, boolean onlyactive)
file
- The file to be checkedonlyactive
- Check only the selected extensionsjava.lang.NullPointerException
- If file is invalidpublic java.util.Vector<java.io.File> getDigestFilesPerTarget(java.io.File file, boolean onlyactive)
file
- The file to be checkedonlyactive
- Check only the selected extensionsjava.lang.NullPointerException
- If file is invalidpublic static java.util.Vector<java.io.File> getDigestFilesPerTarget(com.lf.commons.config.Configuration config, java.io.File file, boolean onlyactive)
config
- The options for this windowfile
- The file to be checkedonlyactive
- Check only the selected extensionsjava.lang.NullPointerException
- If file is invalidpublic boolean hasDigestURLPerTarget(org.apache.commons.vfs2.FileObject url, boolean onlyactive)
url
- The URL to be checkedonlyactive
- Check only the selected extensionsjava.lang.NullPointerException
- If file is invalidpublic java.util.Vector<org.apache.commons.vfs2.FileObject> getDigestURLCandidatesPerTarget(org.apache.commons.vfs2.FileObject url, boolean onlyactive)
url
- The URL to be checkedonlyactive
- Check only the selected extensionsjava.lang.NullPointerException
- If file is invalidpublic static java.util.Vector<org.apache.commons.vfs2.FileObject> getDigestURLCandidatesPerTarget(com.lf.commons.config.Configuration config, org.apache.commons.vfs2.FileObject url, boolean onlyactive)
DownloadDialog
class.
config
- The options for this windowurl
- The URL to be checkedonlyactive
- Check only the selected extensionsjava.lang.NullPointerException
- If file is invalidpublic java.io.File[] compensateFileSelection(java.io.File[] files)
files
- Selection possibly including target filespublic static java.io.File[] compensateFileSelection(java.io.File[] files, com.lf.commons.config.Configuration config)
files
- Selection possibly including target filesconfig
- The window optionspublic org.apache.commons.vfs2.FileObject[] compensateURLSelection(org.apache.commons.vfs2.FileObject[] urls)
urls
- Selection possibly including target filespublic static org.apache.commons.vfs2.FileObject[] compensateURLSelection(com.lf.commons.config.Configuration config, org.apache.commons.vfs2.FileObject[] urls)
config
- The options for this windowurls
- Selection possibly including target filespublic java.util.Vector<java.lang.String> getAllExtensions(boolean onlyactive)
onlyactive
- Check only the selected extensionspublic static java.util.Vector<java.lang.String> getAllExtensions(com.lf.commons.config.Configuration config, boolean onlyactive)
config
- The options for this windowonlyactive
- Check only the selected extensionspublic static boolean isDigesterFile(java.lang.String name, java.util.Vector<java.lang.String> extensions)
name
- The file/URL name without pathextensions
- The file extensionsnull
if not availablepublic static java.lang.String getAlgorithm(java.lang.String file, com.lf.commons.config.Configuration config)
file
- The file to be determinedconfig
- The options for this windownull
if not availablepublic static int getFileType(java.lang.String file, com.lf.commons.config.Configuration config)
File
variant).
file
- The file to be determinedconfig
- The options for this windowFILE_TYPE_XML
| ...public 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 instancepublic 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 referenceCopyright © 2005-2015 Leisenfels UG. All rights reserved.