chemaxon.alchemist.configbuilder
Class BasicConfigElement

java.lang.Object
  extended by chemaxon.alchemist.configbuilder.ConfigElement
      extended by chemaxon.alchemist.configbuilder.BasicConfigElement
All Implemented Interfaces:
java.awt.datatransfer.Transferable, java.lang.Cloneable

public class BasicConfigElement
extends ConfigElement

This is an implementation of ConfigElement.
This basic implementation can not be configured, always valid, and represented by a simple xml tag:
<elementId id='elementId' />
where elementId is the id property of the object.

Author:
Istvan Cseh
See Also:
ConfigElement.getId(), ConfigElement.setId(String id)

Field Summary
protected  boolean licensed
          checks if element is licensed
 
Fields inherited from class chemaxon.alchemist.configbuilder.ConfigElement
flavor, PROPERTY_KEY_DEFAULTICON, PROPERTY_KEY_EDITABLE, PROPERTY_KEY_HELPTEXT, PROPERTY_KEY_ICON, PROPERTY_KEY_ID, PROPERTY_KEY_NAME, PROPERTY_KEY_TOOLTIP, PROPERTY_KEY_VALID, propertyChangeSupport
 
Constructor Summary
BasicConfigElement()
          Constructs a basic config element
BasicConfigElement(java.lang.String id)
          Constructs a basic config element with the specified id
BasicConfigElement(java.lang.String id, java.lang.String name)
          Constructs a basic config element with the specified name
BasicConfigElement(java.lang.String id, java.lang.String name, javax.swing.ImageIcon icon)
          Constructs a basic config element with the specified name and icon
BasicConfigElement(java.lang.String id, java.lang.String name, javax.swing.ImageIcon icon, java.lang.String tooltip)
          Constructs a basic config element with the specified name, icon and tooltip
BasicConfigElement(java.lang.String id, java.lang.String name, javax.swing.ImageIcon icon, java.lang.String tooltip, java.lang.String helpText)
          Constructs a basic config element with the specified name, icon and tooltip
 
Method Summary
protected  java.lang.Object clone()
           
 boolean isDefault()
          Returns if config element is at default state
protected  void validate()
          This method should be called after modifications occured in model.
 
Methods inherited from class chemaxon.alchemist.configbuilder.ConfigElement
addGroup, addPropertyChangeListener, addPropertyChangeListener, cloneElement, copyAttributes, getDefaultIcon, getGroups, getHelpText, getIcon, getId, getLicenseName, getName, getTooltip, getTransferData, getTransferDataFlavors, hasGroup, hasGroups, isDataFlavorSupported, isEditable, isLicensed, isValid, removePropertyChangeListener, removePropertyChangeListener, setDefaultIcon, setEditable, setHelpText, setId, setLicensed, setLicenseName, setName, setTooltip, setValid, store, store
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

licensed

protected boolean licensed
checks if element is licensed

Constructor Detail

BasicConfigElement

public BasicConfigElement()
Constructs a basic config element


BasicConfigElement

public BasicConfigElement(java.lang.String id)
Constructs a basic config element with the specified id

Parameters:
id - is the element id

BasicConfigElement

public BasicConfigElement(java.lang.String id,
                          java.lang.String name)
Constructs a basic config element with the specified name

Parameters:
id - is the element id
name - is the name of the element

BasicConfigElement

public BasicConfigElement(java.lang.String id,
                          java.lang.String name,
                          javax.swing.ImageIcon icon)
Constructs a basic config element with the specified name and icon

Parameters:
id - is the element id
name - is the name of the element
icon - is the icon of the element

BasicConfigElement

public BasicConfigElement(java.lang.String id,
                          java.lang.String name,
                          javax.swing.ImageIcon icon,
                          java.lang.String tooltip)
Constructs a basic config element with the specified name, icon and tooltip

Parameters:
id - is the element id
name - is the name of the element
icon - is the icon of the element
tooltip - is the tooltip of the element

BasicConfigElement

public BasicConfigElement(java.lang.String id,
                          java.lang.String name,
                          javax.swing.ImageIcon icon,
                          java.lang.String tooltip,
                          java.lang.String helpText)
Constructs a basic config element with the specified name, icon and tooltip

Parameters:
id - is the element id
name - is the name of the element
icon - is the icon of the element
tooltip - is the tooltip of the element
helpText - is the detailed help text of the element
Method Detail

isDefault

public boolean isDefault()
Description copied from class: ConfigElement
Returns if config element is at default state

Specified by:
isDefault in class ConfigElement
Returns:
if config element is at default state

validate

protected void validate()
Description copied from class: ConfigElement
This method should be called after modifications occured in model.
Checks the config element, and calls setValid(boolean)

Specified by:
validate in class ConfigElement

clone

protected java.lang.Object clone()
Specified by:
clone in class ConfigElement