Package chemaxon.standardizer
Class StandardizerActionDescriptor
java.lang.Object
chemaxon.standardizer.StandardizerActionDescriptor
- All Implemented Interfaces:
Cloneable
Descriptor of
Contains all needed interface informations.
StandardizerAction objects.Contains all needed interface informations.
- Name of the action
- Description of the action
- Help text of the action
- Icon of the action
- XML tags of the action
- Action string tokens of the action
- Since:
- 5.11
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringaction string token of the actionstatic final Stringdescription of actionstatic final Stringeditor class name property of standardizer actionstatic final Stringhelp text for actionstatic final Stringicon path of actionstatic final Stringid property of actionstatic final Stringname property of actionstatic final Stringtags of actionstatic final Stringxml token of the action -
Constructor Summary
ConstructorsConstructorDescriptionStandardizerActionDescriptor(Class<? extends StandardizerAction> standardizerActionClass) Constructs a descriptor based on standardizer action class. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a PropertyChangeListener to the listener list.voidaddPropertyChangeListener(String propertyName, PropertyChangeListener listener) Add a PropertyChangeListener for a specific property.clone()booleanString[]Gets the action string tokens of the actionGets the description of the actionReturns the editorClassNameGets the help text of the actiongetIcon()Returns theIconrelated to iconPath propertyGets the path of icon associated to the actiongetId()Gets the id of the actiongetName()Gets the name of the actionString[]getTags()Gets the tags associated to the actionString[]Gets the XML tokens of the actioninthashCode()booleanReturnstrueif this action can be used in current license environment.voidRemove a PropertyChangeListener from the listener list.voidremovePropertyChangeListener(String propertyName, PropertyChangeListener listener) Remove a PropertyChangeListener for a specific property.voidsetActionStringTokens(String... actionStringTokens) Sets the action string tokens of the actionvoidsetDescription(String description) Sets the description of the actionvoidsetEditorClassName(String editorClassName) Sets the editorClassNamevoidsetHelpText(String helpText) Sets the help text of the actionvoidsetIconPath(String iconPath) Sets the path of icon associated to the actionvoidSets the id of the actionvoidSets the name of the actionvoidSets the tags of the actionvoidsetXMLTokens(String... xmlTokens) Sets the XML tokens of the actiontoString()
-
Field Details
-
ID
id property of action- See Also:
-
NAME
name property of action- See Also:
-
HELP_TEXT
help text for action- See Also:
-
DESCRIPTION
description of action- See Also:
-
ACTIONSTRING_TOKEN
action string token of the action- See Also:
-
XML_TOKEN
xml token of the action- See Also:
-
ICON_PATH
icon path of action- See Also:
-
TAGS
tags of action- See Also:
-
EDITOR_CLASS_NAME
editor class name property of standardizer action- See Also:
-
-
Constructor Details
-
StandardizerActionDescriptor
public StandardizerActionDescriptor(Class<? extends StandardizerAction> standardizerActionClass) throws IllegalArgumentException Constructs a descriptor based on standardizer action class.
The annotationStandardizerActionInfoof the specified class will be used for descriptor generation.- Parameters:
standardizerActionClass- the class used to generate descriptor- Throws:
IllegalArgumentException- if the standardizerActionClass is null
-
-
Method Details
-
getId
Gets the id of the action- Returns:
- the id of the action
-
getName
Gets the name of the action- Returns:
- the name of the action
-
getActionStringTokens
Gets the action string tokens of the action- Returns:
- the action string tokens of the action
-
getXMLTokens
Gets the XML tokens of the action- Returns:
- the XML tokens of the action
-
getDescription
Gets the description of the action- Returns:
- the description of the action
-
getHelpText
Gets the help text of the action- Returns:
- the help text of the action
-
getIconPath
Gets the path of icon associated to the action- Returns:
- the path of icon associated to the action
-
getTags
Gets the tags associated to the action- Returns:
- the tags associated to the action
-
setId
Sets the id of the action- Parameters:
id- the id of the action
-
setName
Sets the name of the action- Parameters:
name- the name of the action
-
setActionStringTokens
Sets the action string tokens of the action- Parameters:
actionStringTokens- the action string tokens of the action
-
setXMLTokens
Sets the XML tokens of the action- Parameters:
xmlTokens- the XML tokens of the action
-
setTags
Sets the tags of the action- Parameters:
tags- the tags of the action
-
setDescription
Sets the description of the action- Parameters:
description- the description of the action
-
setHelpText
Sets the help text of the action- Parameters:
helpText- the help text of the action
-
setIconPath
Sets the path of icon associated to the action- Parameters:
iconPath- the path of icon associated to the action
-
removePropertyChangeListener
Remove a PropertyChangeListener for a specific property. Iflistenerwas added more than once to the same event source for the specified property, it will be notified one less time after being removed. IfpropertyNameis null, no exception is thrown and no action is taken. Iflisteneris null, or was never added for the specified property, no exception is thrown and no action is taken.- Parameters:
propertyName- The name of the property that was listened on.listener- The PropertyChangeListener to be removed- See Also:
-
addPropertyChangeListener
Add a PropertyChangeListener for a specific property. The listener will be invoked only when a call on firePropertyChange names that specific property. The same listener object may be added more than once. For each property, the listener will be invoked the number of times it was added for that property. IfpropertyNameorlisteneris null, no exception is thrown and no action is taken.- Parameters:
propertyName- The name of the property to listen on.listener- The PropertyChangeListener to be added- See Also:
-
removePropertyChangeListener
Remove a PropertyChangeListener from the listener list. This removes a PropertyChangeListener that was registered for all properties. Iflistenerwas added more than once to the same event source, it will be notified one less time after being removed. Iflisteneris null, or was never added, no exception is thrown and no action is taken.- Parameters:
listener- The PropertyChangeListener to be removed- See Also:
-
addPropertyChangeListener
Add a PropertyChangeListener to the listener list. The listener is registered for all properties. The same listener object may be added more than once, and will be called as many times as it is added. Iflisteneris null, no exception is thrown and no action is taken.- Parameters:
listener- The PropertyChangeListener to be added- See Also:
-
hashCode
public int hashCode() -
equals
-
toString
-
getIcon
Returns theIconrelated to iconPath property- Returns:
- the
Iconrelated to iconPath property
-
getEditorClassName
Returns the editorClassName- Returns:
- the editorClassName
-
setEditorClassName
Sets the editorClassName- Parameters:
editorClassName- the editorClassName to set
-
isLicensed
public boolean isLicensed()Returnstrueif this action can be used in current license environment.- Returns:
trueif this action can be used in current license environment- Since:
- 6.0
-
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-