public class GenerateOptionsWindow
extends javax.swing.JPanel
implements com.lf.commons.docking.DockingWindow, 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 com.lf.commons.gui.button.ComboButton |
buttonAnt_I18N |
protected com.lf.commons.gui.button.ComboButton |
buttonCLIArgs_I18N |
protected javax.swing.JButton |
buttonGenerate_I18N |
protected javax.swing.JButton |
buttonHelp |
protected javax.swing.JButton |
buttonHelp2 |
protected javax.swing.JButton |
buttonRefresh_I18N |
protected javax.swing.JCheckBox |
checkBoxBSDDir_I18N |
protected javax.swing.JCheckBox |
checkBoxBSDTarget_I18N |
protected javax.swing.JCheckBox |
checkBoxGNUDir_I18N |
protected javax.swing.JCheckBox |
checkBoxGNUTarget_I18N |
protected javax.swing.JCheckBox |
checkBoxOverwrite_I18N |
protected javax.swing.JCheckBox |
checkBoxPGPTarget_I18N |
protected javax.swing.JCheckBox |
checkBoxRefreshRemoveArtifacts_I18N |
protected javax.swing.JCheckBox |
checkBoxRefreshRemoveOther_I18N |
protected javax.swing.JCheckBox |
checkBoxURL_I18N |
protected GenerateOptionsController |
controller
The MVC controller, handles GUI callbacks.
|
static java.lang.String |
DIGEST_FORMAT_BASE64
Represents the Base64 digest format.
|
static java.lang.String |
DIGEST_FORMAT_HEX
Represents the hexadecimal digest format.
|
protected java.util.Vector<java.awt.Component> |
extensionCheckBoxes
The set of format 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).
|
static java.lang.String |
HEX_CASE_LOWER
Represents the hexadecimal digest format in lower-case.
|
static java.lang.String |
HEX_CASE_UPPER
Represents the Base64 digest format in upper-case.
|
protected GenerateOptionsModel |
model
The MVC model, handles the templates.
|
protected PGPKeyPanel |
panelKeys |
protected com.lf.commons.gui.panel.TemplatePanel |
templatePanel |
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 |
---|
GenerateOptionsWindow()
Constructor for the GUI component.
|
Modifier and Type | Method and Description |
---|---|
void |
addTemplate(java.lang.String id,
com.lf.commons.config.Configuration config)
Sets new values for the given template from outside this docking window.
|
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.
|
java.awt.Component |
getComponent()
Provides the component to be displayed in the center of the docking manager.
|
static java.lang.String |
getDefaultComment()
Provides the default comment used for this application
|
com.lf.commons.config.Configuration |
getDefaultSyncTemplate()
Provides the default generate options reasonable for sync ops.
|
com.lf.commons.config.Configuration |
getDigestMenuOptions(java.lang.String algorithm,
java.lang.String format)
Configures the options so that the context menu item can be executed (checksum).
|
com.lf.commons.docking.DockingManager |
getDockingManager()
Provides the docking manager specified when
windowAdded() was called. |
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.
|
java.util.Hashtable<java.lang.String,java.lang.String> |
getPGPKeyURLs()
Provides the cache holding the network addresses to download the public keys.
|
com.lf.commons.config.Configuration |
getPGPMenuOptions(com.didisoft.pgp.KeyPairInformation signkey,
java.lang.String format)
Configures the options so that the context menu item can be executed (PGP signature).
|
java.lang.String |
getPlainFormatSuffix(java.lang.String algorithm,
java.lang.String format)
Provides the current suffix for XML/GNU/BSD files without leading dot.
|
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.
|
com.lf.commons.config.Configuration |
getTemplate()
Provides the current generate options as a whole.
|
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 identifier of the current generate template.
|
com.lf.commons.gui.panel.TemplatePanel |
getTemplatePanel()
Provides the template panel to add listeners etc.
|
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.
|
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 |
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 |
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 button and combo box states (enabled/disabled).
|
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
public static final java.lang.String DIGEST_FORMAT_HEX
public static final java.lang.String DIGEST_FORMAT_BASE64
public static final java.lang.String HEX_CASE_LOWER
public static final java.lang.String HEX_CASE_UPPER
protected com.lf.commons.docking.WindowParamDef windowParams
protected java.util.Vector<java.awt.Component> extensionCheckBoxes
protected java.util.Vector<java.awt.Component> extensionTextFields
protected GenerateOptionsModel model
protected GenerateOptionsController controller
protected java.lang.String helpID
protected com.lf.commons.gui.panel.TemplatePanel templatePanel
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 checkBoxOverwrite_I18N
protected javax.swing.JButton buttonHelp
protected javax.swing.JButton buttonHelp2
protected PGPKeyPanel panelKeys
protected javax.swing.JCheckBox checkBoxURL_I18N
protected javax.swing.JCheckBox checkBoxRefreshRemoveOther_I18N
protected javax.swing.JCheckBox checkBoxRefreshRemoveArtifacts_I18N
protected javax.swing.JButton buttonGenerate_I18N
protected javax.swing.JButton buttonRefresh_I18N
protected com.lf.commons.gui.button.ComboButton buttonCLIArgs_I18N
protected com.lf.commons.gui.button.ComboButton buttonAnt_I18N
public GenerateOptionsWindow()
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 getDigestMenuOptions(java.lang.String algorithm, java.lang.String format)
GenerateHandler
class since the options
may change in future versions of this class. If an option is missing then the
DigestGenerator
will complain.
algorithm
- The algorithm to be usedformat
- (GNU|BSD|XML|Calc)java.lang.NullPointerException
- If parameters are null
public com.lf.commons.config.Configuration getPGPMenuOptions(com.didisoft.pgp.KeyPairInformation signkey, java.lang.String format)
GenerateHandler
class since the options
may change in future versions of this class. If an option is missing then the
DigestGenerator
will complain.
signkey
- The PGP keys to be used (private key required)format
- (ASCII|Binary|XML|Calc)java.lang.NullPointerException
- If parameters are null
public java.lang.String getPlainFormatSuffix(java.lang.String algorithm, java.lang.String format)
algorithm
- The algorithm to be used "MD5" etc.format
- (GNU|BSD|XML)null
java.lang.NullPointerException
- If parameters are null
public java.lang.String getTemplateName()
public com.lf.commons.config.Configuration getTemplate()
public com.lf.commons.config.Configuration getDefaultSyncTemplate()
public com.lf.commons.config.Configuration getTemplate(java.lang.String id, boolean clone)
id
- The template identifierclone
- Create a copy?null
if not availableprotected 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 void setTemplate(com.lf.commons.config.Configuration config)
config
- The configurationpublic com.lf.commons.gui.panel.TemplatePanel getTemplatePanel()
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 static java.lang.String getDefaultComment()
public java.util.Hashtable<java.lang.String,com.lf.commons.config.Configuration> getTemplates()
public java.util.Hashtable<java.lang.String,java.lang.String> getPGPKeyURLs()
Copyright © 2005-2015 Leisenfels UG. All rights reserved.