chemaxon.alchemist.configbuilder
Class ConfigBuilderPanel

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by chemaxon.alchemist.configbuilder.ConfigBuilderPanel
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible

public class ConfigBuilderPanel
extends javax.swing.JPanel

Configuration Builder Panel for list based configuration editing

Version:
5.4.2
Author:
Istvan Rabel, Attila Szabo
See Also:
Serialized Form

Nested Class Summary
protected  class ConfigBuilderPanel.LeftListModel
          Is a SynchronizedAbstractFilterListModel implementation.
 
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
protected  javax.swing.AbstractAction ADD_ACTION
          An Action implementation which performs config element add
protected  javax.swing.AbstractAction MOVE_DOWN_ACTION
          An Action implementation which performs config element move down
protected  javax.swing.AbstractAction MOVE_UP_ACTION
          An Action implementation which performs config element move up
protected  javax.swing.Action openFileAction
          open file handler action
static java.lang.String PROPERTY_KEY_CONFIGURATION_VALID
          property key for configuration validity
static java.lang.String PROPERTY_KEY_ELEMENT_LIST
          property key for element added or removed
static java.lang.String PROPERTY_KEY_ELEMENT_ORDER
          property key for element order changed
protected  javax.swing.AbstractAction REMOVE_ACTION
          An Action implementation which performs config element remove
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
ConfigBuilderPanel(chemaxon.alchemist.configbuilder.configuration.marshalling.Configuration configuration)
          Constructs a config builder panel with default options.
ConfigBuilderPanel(chemaxon.alchemist.configbuilder.configuration.marshalling.Configuration configuration, javax.swing.Action openFileAction, javax.swing.Action saveFileAction)
          Constructs a config builder panel with default options.
ConfigBuilderPanel(chemaxon.alchemist.configbuilder.configuration.marshalling.Configuration configuration, chemaxon.alchemist.AlchemistProfile profile)
          Constructs a config builder panel with specified configuration and profile
ConfigBuilderPanel(chemaxon.alchemist.configbuilder.configuration.marshalling.Configuration configuration, chemaxon.alchemist.AlchemistProfile profile, javax.swing.Action openFileAction, javax.swing.Action saveFileAction)
          Constructs a config builder panel with specified configuration and profile with file load and save support.
ConfigBuilderPanel(java.lang.String configPath)
          Constructs a config builder panel with default options.
ConfigBuilderPanel(java.lang.String configPath, javax.swing.Action openFileAction, javax.swing.Action saveFileAction)
          Constructs a config builder panel with default options.
ConfigBuilderPanel(java.lang.String configPath, chemaxon.alchemist.AlchemistProfile profile)
          Constructs a config builder panel with default options.
ConfigBuilderPanel(java.lang.String configPath, chemaxon.alchemist.AlchemistProfile profile, javax.swing.Action openFileAction, javax.swing.Action saveFileAction)
          Constructs a config builder panel with default options.
 
Method Summary
 void addConfigElement(ConfigElement element, java.lang.String elementEditorClassName)
          Adds a config element to the left list
protected  void addElement(ConfigElement element)
          Adds the clone of the element to the right list
 void addElementPropertyChangeListener(java.beans.PropertyChangeListener listener)
          Adds a PropertyChangeListener for element property changes
 void addElementPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
          Adds a PropertyChangeListener for a specific element property change
 void clear()
          Removes all the elements form the right list
 ConfigElement[] getConfiguration()
          Returns the current configuration elements
protected  java.awt.CardLayout getControlLayout()
          Returns the controlLayout
protected  javax.swing.JPanel getControlPanel()
          Initializes and returns control panel (south section)
 java.lang.String getDefaultHelpText()
          Returns the default help text
protected  javax.swing.event.SwingPropertyChangeSupport getElementPropertyChangeSupport()
          Returns the elementPropertyChangeSupport
protected  javax.swing.JLabel getHelpPanelLabel()
          Returns the help panel label
protected  javax.swing.JTextArea getHelpTextArea()
          Returns the text area for the help
protected  javax.swing.JList getLeftList()
          initializes left list (source list)
protected  javax.swing.JComboBox getLeftListFilter()
          Returns the filter combo for the left list
 chemaxon.alchemist.configbuilder.LicenseSupport getLicenseSupport()
          Returns the license support
protected  java.awt.CardLayout getMainLayout()
          Returns the mainLayout
protected  javax.swing.JSplitPane getNormalViewSplit()
          Returns the normalViewSplit
 javax.swing.Action getOpenFileAction()
          Returns the Action associated with open file event, or null if no Action
protected  chemaxon.alchemist.configbuilder.ConfigElementPresentationChooser getPresentationChooser()
          Returns the presentationChooser
 chemaxon.alchemist.AlchemistProfile getProfile()
          Returns the current profile
Note, that profile may be out of sync as various editors may use the same profile to store custom properties.
protected  javax.swing.JList getRightList()
          initializes right list (configuration)
 javax.swing.Action getSaveFileAction()
          Returns the Action associated with save file event, or null if no Action
 java.lang.String[] getTags()
          Returns the array of tags
protected  void handleValidityChanges()
          Checks if last valid flag is the same is current validity, fires property change if needed
 boolean isFileSupportEnabled()
          Returns true if file loading support is enabled
protected  boolean isFirstResized()
          Returns the firstResized
 boolean isIgnoreMissingLicense()
          Returns false when panel is set to mark elements without valid license
 boolean isValidConfiguration()
          Returns true if configuration is valid
 void readConfiguration(chemaxon.alchemist.configbuilder.ConfigurationReader reader)
          Reads a configuration provided by reader
 void readConfiguration(chemaxon.alchemist.configbuilder.ConfigurationReader reader, java.lang.String[] groupFilter)
          Reads a configuration provided by reader and filter.
 void refreshLicenses()
          Re-validates the license information of elements
 void removeConfigElement(ConfigElement element)
          Removes the element from the left list (and all occurences from the right list)
 void removeConfigElement(java.lang.String elementId)
          Removes an element from the left list by id (and all occurences from the right list)
 void removeConfigElements(java.lang.String[] elementIds)
          Removes an an array of elements from the left list by id (and all occurences from the right list)
protected  void removeElement(ConfigElement element)
          Removes element from the right list
 void removeElementPropertyChangeListener(java.beans.PropertyChangeListener listener)
          Removes a PropertyChangeListener from element listener list
 void removeElementPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
          Removes a specific PropertyChangeListener from element listener list
protected  void setControlLayout(java.awt.CardLayout controlLayout)
          Sets the controlLayout
 void setDefaultHelpText(java.lang.String text)
          Sets the default help text
 void setDefaultTag(java.lang.String tag)
          Activates the tag with given name if exists
protected  void setElementPropertyChangeSupport(javax.swing.event.SwingPropertyChangeSupport elementPropertyChangeSupport)
          Sets the elementPropertyChangeSupport
 void setFileSupportEnabled(boolean fileSupportEnabled)
          Sets file support enabled or disabled
protected  void setFirstResized(boolean firstResized)
          Sets the firstResized
 void setIgnoreMissingLicense(boolean ignoreMissingLicense)
          Sets that actions without valid license are marked
 void setLicenseSupport(chemaxon.alchemist.configbuilder.LicenseSupport licenseSupport)
          Sets the license support and refreshes licenses
protected  void setMainLayout(java.awt.CardLayout mainLayout)
          Sets the mainLayout
protected  void setNormalViewSplit(javax.swing.JSplitPane normalViewSplit)
          Sets the normalViewSplit
 void setOpenFileAction(javax.swing.Action openFileAction)
          Sets the Action to be invoked at open file event
protected  void setPresentationChooser(chemaxon.alchemist.configbuilder.ConfigElementPresentationChooser presentationChooser)
          Sets the presentationChooser
 void setProfile(chemaxon.alchemist.AlchemistProfile profile)
          Sets the profile to be used.
 void setSaveFileAction(javax.swing.Action saveFileAction)
          Sets the Action to be invoked at save file event
 void updateProfile()
          Updates the current profile by forcing all editors sharing this profile to save changes
 void writeConfiguration(chemaxon.alchemist.configbuilder.ConfigurationWriter writer)
          Writes the current configuration with provider writer
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
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, 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
 
Methods inherited from class java.awt.Container
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, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
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, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROPERTY_KEY_ELEMENT_LIST

public static final java.lang.String PROPERTY_KEY_ELEMENT_LIST
property key for element added or removed

See Also:
Constant Field Values

PROPERTY_KEY_ELEMENT_ORDER

public static final java.lang.String PROPERTY_KEY_ELEMENT_ORDER
property key for element order changed

See Also:
Constant Field Values

PROPERTY_KEY_CONFIGURATION_VALID

public static final java.lang.String PROPERTY_KEY_CONFIGURATION_VALID
property key for configuration validity

See Also:
Constant Field Values

ADD_ACTION

protected final javax.swing.AbstractAction ADD_ACTION
An Action implementation which performs config element add


REMOVE_ACTION

protected final javax.swing.AbstractAction REMOVE_ACTION
An Action implementation which performs config element remove


MOVE_UP_ACTION

protected final javax.swing.AbstractAction MOVE_UP_ACTION
An Action implementation which performs config element move up


MOVE_DOWN_ACTION

protected final javax.swing.AbstractAction MOVE_DOWN_ACTION
An Action implementation which performs config element move down


openFileAction

protected javax.swing.Action openFileAction
open file handler action

Constructor Detail

ConfigBuilderPanel

public ConfigBuilderPanel(java.lang.String configPath)
                   throws org.exolab.castor.xml.MarshalException,
                          org.exolab.castor.xml.ValidationException,
                          java.io.FileNotFoundException
Constructs a config builder panel with default options.

Parameters:
configPath - is the path to configuration XML of available elements
Throws:
java.io.FileNotFoundException - when file was not found during xml unmarshalling
org.exolab.castor.xml.MarshalException - when MarshalException occurred during xml unmarshalling
org.exolab.castor.xml.ValidationException - when ValidationException occurred during xml unmarshalling

ConfigBuilderPanel

public ConfigBuilderPanel(java.lang.String configPath,
                          javax.swing.Action openFileAction,
                          javax.swing.Action saveFileAction)
                   throws org.exolab.castor.xml.MarshalException,
                          org.exolab.castor.xml.ValidationException
Constructs a config builder panel with default options.

Parameters:
configPath - is the path to configuration XML of available elements
openFileAction - will be invoked on load file, if not null
saveFileAction - will be invoked on save file, in not null
Throws:
org.exolab.castor.xml.MarshalException - when MarshalException occurred during xml unmarshalling
org.exolab.castor.xml.ValidationException - when ValidationException occurred during xml unmarshalling

ConfigBuilderPanel

public ConfigBuilderPanel(java.lang.String configPath,
                          chemaxon.alchemist.AlchemistProfile profile)
                   throws org.exolab.castor.xml.MarshalException,
                          org.exolab.castor.xml.ValidationException,
                          java.io.FileNotFoundException
Constructs a config builder panel with default options.

Parameters:
configPath - is the path to configuration XML of available elements
profile - is the profile used
Throws:
java.io.FileNotFoundException - when file was not found during xml unmarshalling
org.exolab.castor.xml.MarshalException - when MarshalException occurred during xml unmarshalling
org.exolab.castor.xml.ValidationException - when ValidationException occurred during xml unmarshalling

ConfigBuilderPanel

public ConfigBuilderPanel(java.lang.String configPath,
                          chemaxon.alchemist.AlchemistProfile profile,
                          javax.swing.Action openFileAction,
                          javax.swing.Action saveFileAction)
                   throws org.exolab.castor.xml.MarshalException,
                          org.exolab.castor.xml.ValidationException
Constructs a config builder panel with default options.

Parameters:
configPath - is the path to configuration XML of available elements
profile - is the profile used
openFileAction - will be invoked on load file, if not null
saveFileAction - will be invoked on save file, in not null
Throws:
org.exolab.castor.xml.MarshalException - when MarshalException occurred during xml unmarshalling
org.exolab.castor.xml.ValidationException - when ValidationException occurred during xml unmarshalling

ConfigBuilderPanel

public ConfigBuilderPanel(chemaxon.alchemist.configbuilder.configuration.marshalling.Configuration configuration)
Constructs a config builder panel with default options.

Parameters:
configuration - is the XML-based configuration of available elements

ConfigBuilderPanel

public ConfigBuilderPanel(chemaxon.alchemist.configbuilder.configuration.marshalling.Configuration configuration,
                          javax.swing.Action openFileAction,
                          javax.swing.Action saveFileAction)
Constructs a config builder panel with default options.

Parameters:
configuration - is the XML-based configuration of available elements
openFileAction - will be invoked on load file, if not null
saveFileAction - will be invoked on save file, in not null

ConfigBuilderPanel

public ConfigBuilderPanel(chemaxon.alchemist.configbuilder.configuration.marshalling.Configuration configuration,
                          chemaxon.alchemist.AlchemistProfile profile)
Constructs a config builder panel with specified configuration and profile

Parameters:
configuration - is the configuration used for element list
profile - is the profile storing custom user options

ConfigBuilderPanel

public ConfigBuilderPanel(chemaxon.alchemist.configbuilder.configuration.marshalling.Configuration configuration,
                          chemaxon.alchemist.AlchemistProfile profile,
                          javax.swing.Action openFileAction,
                          javax.swing.Action saveFileAction)
Constructs a config builder panel with specified configuration and profile with file load and save support.

Parameters:
configuration - is the configuration used for element list
profile - is the profile storing custom user options
openFileAction - will be invoked on load file, if not null
saveFileAction - will be invoked on save file, in not null
Method Detail

addConfigElement

public void addConfigElement(ConfigElement element,
                             java.lang.String elementEditorClassName)
Adds a config element to the left list

Parameters:
element - is the element to be added
elementEditorClassName - is the class name of the element editor

removeConfigElement

public void removeConfigElement(ConfigElement element)
Removes the element from the left list (and all occurences from the right list)

Parameters:
element - is the element to be removed

removeConfigElement

public void removeConfigElement(java.lang.String elementId)
Removes an element from the left list by id (and all occurences from the right list)

Parameters:
elementId - is the id of the element to be removed

removeConfigElements

public void removeConfigElements(java.lang.String[] elementIds)
Removes an an array of elements from the left list by id (and all occurences from the right list)

Parameters:
elementIds - is the array of element ids to be removed

getLeftListFilter

protected javax.swing.JComboBox getLeftListFilter()
Returns the filter combo for the left list

Returns:
the filter combo for the left list

getControlPanel

protected javax.swing.JPanel getControlPanel()
Initializes and returns control panel (south section)

Returns:
the control panel

getLeftList

protected javax.swing.JList getLeftList()
initializes left list (source list)

Returns:
the list

getRightList

protected javax.swing.JList getRightList()
initializes right list (configuration)

Returns:
the list

getHelpPanelLabel

protected javax.swing.JLabel getHelpPanelLabel()
Returns the help panel label

Returns:
the help panel label

getHelpTextArea

protected javax.swing.JTextArea getHelpTextArea()
Returns the text area for the help

Returns:
the text area for the help

getDefaultHelpText

public java.lang.String getDefaultHelpText()
Returns the default help text

Returns:
the default help text
Since:
5.4

setDefaultHelpText

public void setDefaultHelpText(java.lang.String text)
Sets the default help text

Parameters:
text - the new help text

refreshLicenses

public void refreshLicenses()
Re-validates the license information of elements


getLicenseSupport

public chemaxon.alchemist.configbuilder.LicenseSupport getLicenseSupport()
Returns the license support

Returns:
the license support

setLicenseSupport

public void setLicenseSupport(chemaxon.alchemist.configbuilder.LicenseSupport licenseSupport)
Sets the license support and refreshes licenses

Parameters:
licenseSupport - is the new license support

handleValidityChanges

protected void handleValidityChanges()
Checks if last valid flag is the same is current validity, fires property change if needed


setProfile

public void setProfile(chemaxon.alchemist.AlchemistProfile profile)
Sets the profile to be used. This method should be called before readConfiguration.

Parameters:
profile - is the profile to be used
See Also:
readConfiguration(ConfigurationReader), readConfiguration(ConfigurationReader, String[]), getProfile(), updateProfile()

updateProfile

public void updateProfile()
Updates the current profile by forcing all editors sharing this profile to save changes


getProfile

public chemaxon.alchemist.AlchemistProfile getProfile()
Returns the current profile
Note, that profile may be out of sync as various editors may use the same profile to store custom properties. Call updateProfile() to perform a profile update

Returns:
the current profile
See Also:
setProfile(AlchemistProfile profile), updateProfile()

addElement

protected void addElement(ConfigElement element)
Adds the clone of the element to the right list

Parameters:
element - is the element to be cloned

removeElement

protected void removeElement(ConfigElement element)
Removes element from the right list

Parameters:
element - is the element to be removed

clear

public void clear()
Removes all the elements form the right list


readConfiguration

public void readConfiguration(chemaxon.alchemist.configbuilder.ConfigurationReader reader)
Reads a configuration provided by reader

Parameters:
reader - is the configuration reader

readConfiguration

public void readConfiguration(chemaxon.alchemist.configbuilder.ConfigurationReader reader,
                              java.lang.String[] groupFilter)
Reads a configuration provided by reader and filter. To read ungrouped items as well, add an empty string ("") into the filter.
Note: if group filtering is not supported by reader, all items will be read.

Parameters:
reader - is the configuration reader
groupFilter - is an array of group names

writeConfiguration

public void writeConfiguration(chemaxon.alchemist.configbuilder.ConfigurationWriter writer)
                        throws java.io.IOException
Writes the current configuration with provider writer

Parameters:
writer - is the configuration writer
Throws:
java.io.IOException - when IOException occurred during the writer's writeConfiguration method

getConfiguration

public ConfigElement[] getConfiguration()
Returns the current configuration elements

Returns:
the current configuration elements

isValidConfiguration

public boolean isValidConfiguration()
Returns true if configuration is valid

Returns:
true if configuration is valid

isIgnoreMissingLicense

public boolean isIgnoreMissingLicense()
Returns false when panel is set to mark elements without valid license

Returns:
false when panel is set to mark elements without valid license

setIgnoreMissingLicense

public void setIgnoreMissingLicense(boolean ignoreMissingLicense)
Sets that actions without valid license are marked

Parameters:
ignoreMissingLicense - when set to false, unlicensed actions will be marked

addElementPropertyChangeListener

public void addElementPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener for element property changes

Parameters:
listener - is the PropertyChangeListener to be added

addElementPropertyChangeListener

public void addElementPropertyChangeListener(java.lang.String propertyName,
                                             java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener for a specific element property change

Parameters:
propertyName - is the name of the property listen on
listener - is the PropertyChangeListener to be added

removeElementPropertyChangeListener

public void removeElementPropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a PropertyChangeListener from element listener list

Parameters:
listener - is the PropertyChangeListener to be removed

removeElementPropertyChangeListener

public void removeElementPropertyChangeListener(java.lang.String propertyName,
                                                java.beans.PropertyChangeListener listener)
Removes a specific PropertyChangeListener from element listener list

Parameters:
propertyName - is the name of the property that was listened on
listener - is the PropertyChangeListener to be removed

isFileSupportEnabled

public boolean isFileSupportEnabled()
Returns true if file loading support is enabled

Returns:
true if file loading support is enabled

setFileSupportEnabled

public void setFileSupportEnabled(boolean fileSupportEnabled)
Sets file support enabled or disabled

Parameters:
fileSupportEnabled - is true when file support should be enabled false otherwise

getOpenFileAction

public javax.swing.Action getOpenFileAction()
Returns the Action associated with open file event, or null if no Action

Returns:
the Action associated with open file event, or null if no Action

setOpenFileAction

public void setOpenFileAction(javax.swing.Action openFileAction)
Sets the Action to be invoked at open file event

Parameters:
openFileAction - is the Action to be invoked at open file

getSaveFileAction

public javax.swing.Action getSaveFileAction()
Returns the Action associated with save file event, or null if no Action

Returns:
the Action associated with save file event, or null if no Action

setSaveFileAction

public void setSaveFileAction(javax.swing.Action saveFileAction)
Sets the Action to be invoked at save file event

Parameters:
saveFileAction - is the Action to be invoked at save file

getTags

public java.lang.String[] getTags()
Returns the array of tags

Returns:
the array of tags
Since:
5.4

setDefaultTag

public void setDefaultTag(java.lang.String tag)
Activates the tag with given name if exists

Parameters:
tag - is the tag
Since:
5.4
See Also:
getTags()

setElementPropertyChangeSupport

protected void setElementPropertyChangeSupport(javax.swing.event.SwingPropertyChangeSupport elementPropertyChangeSupport)
Sets the elementPropertyChangeSupport

Parameters:
elementPropertyChangeSupport - the elementPropertyChangeSupport to set

getElementPropertyChangeSupport

protected javax.swing.event.SwingPropertyChangeSupport getElementPropertyChangeSupport()
Returns the elementPropertyChangeSupport

Returns:
the elementPropertyChangeSupport

setFirstResized

protected void setFirstResized(boolean firstResized)
Sets the firstResized

Parameters:
firstResized - the firstResized to set

isFirstResized

protected boolean isFirstResized()
Returns the firstResized

Returns:
the firstResized

setNormalViewSplit

protected void setNormalViewSplit(javax.swing.JSplitPane normalViewSplit)
Sets the normalViewSplit

Parameters:
normalViewSplit - the normalViewSplit to set

getNormalViewSplit

protected javax.swing.JSplitPane getNormalViewSplit()
Returns the normalViewSplit

Returns:
the normalViewSplit

setMainLayout

protected void setMainLayout(java.awt.CardLayout mainLayout)
Sets the mainLayout

Parameters:
mainLayout - the mainLayout to set

getMainLayout

protected java.awt.CardLayout getMainLayout()
Returns the mainLayout

Returns:
the mainLayout

setPresentationChooser

protected void setPresentationChooser(chemaxon.alchemist.configbuilder.ConfigElementPresentationChooser presentationChooser)
Sets the presentationChooser

Parameters:
presentationChooser - the presentationChooser to set

getPresentationChooser

protected chemaxon.alchemist.configbuilder.ConfigElementPresentationChooser getPresentationChooser()
Returns the presentationChooser

Returns:
the presentationChooser

setControlLayout

protected void setControlLayout(java.awt.CardLayout controlLayout)
Sets the controlLayout

Parameters:
controlLayout - the controlLayout to set

getControlLayout

protected java.awt.CardLayout getControlLayout()
Returns the controlLayout

Returns:
the controlLayout