|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.alchemist.configbuilder.ConfigElement
chemaxon.alchemist.configbuilder.AbstractSketchConfigElement
public abstract class AbstractSketchConfigElement
This is an abstract ConfigElement using MSketchPane as an external editor
by implementing ExternalEditorSupport interface.
| Field Summary | |
|---|---|
static java.lang.String |
PROPERTY_KEY_MOLECULE
the molecule property key |
| 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 |
| Fields inherited from interface chemaxon.alchemist.configbuilder.ExternalEditorSupport |
|---|
PROPERTY_KEY_EDITORMODE, PROPERTY_VALUE_DEFAULT, PROPERTY_VALUE_EXTERNAL |
| Constructor Summary | |
|---|---|
AbstractSketchConfigElement()
|
|
| Method Summary | |
|---|---|
protected void |
accepted(Molecule molecule)
This method is called after 'accept' button pressed on external sketch editor. |
protected void |
canceled()
This method is called after 'cancel' button pressed on external sketch editor. |
protected void |
copyAttributes(ConfigElement source)
Copies the default attributes from source |
protected int |
getDefaultDispOpts()
Returns the default disp opts for this element. |
java.lang.String |
getEditorMode()
Returns the current editor mode |
ConfigElementEditor |
getExternalEditor()
Returns the external editor instance, or null if no editor set |
java.lang.String |
getExternalEditorClassName()
Returns the class name of external editor |
Molecule |
getMolecule()
|
void |
setEditorMode(java.lang.String editorMode)
Switches to the given editor mode. |
void |
setExternalEditor(ConfigElementEditor externalEditor)
Sets the external editor |
void |
setMolecule(Molecule molecule)
|
| Methods inherited from class chemaxon.alchemist.configbuilder.ConfigElement |
|---|
addGroup, addPropertyChangeListener, addPropertyChangeListener, clone, cloneElement, getDefaultIcon, getGroups, getHelpText, getIcon, getId, getLicenseName, getName, getTooltip, getTransferData, getTransferDataFlavors, hasGroup, hasGroups, isDataFlavorSupported, isDefault, isEditable, isLicensed, isValid, removePropertyChangeListener, removePropertyChangeListener, setDefaultIcon, setEditable, setHelpText, setId, setLicensed, setLicenseName, setName, setTooltip, setValid, store, store, validate |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String PROPERTY_KEY_MOLECULE
| Constructor Detail |
|---|
public AbstractSketchConfigElement()
| Method Detail |
|---|
public java.lang.String getEditorMode()
ExternalEditorSupport
getEditorMode in interface ExternalEditorSupportpublic ConfigElementEditor getExternalEditor()
ExternalEditorSupport
getExternalEditor in interface ExternalEditorSupportpublic void setEditorMode(java.lang.String editorMode)
ExternalEditorSupportPROPERTY_KEY_EDITORMODE key to listeners, and calls for validate()InvalidArgumentException may be thrown when called with invalid parameters
setEditorMode in interface ExternalEditorSupporteditorMode - is the new editor mode. Valid values are PROPERTY_VALUE_DEFAULT and PROPERTY_VALUE_EXTERNALpublic void setExternalEditor(ConfigElementEditor externalEditor)
ExternalEditorSupport
setExternalEditor in interface ExternalEditorSupportexternalEditor - is the editor instancepublic void setMolecule(Molecule molecule)
public Molecule getMolecule()
protected void copyAttributes(ConfigElement source)
ConfigElementsource
copyAttributes in class ConfigElementsource - is the ConfigElement copy attributes frompublic java.lang.String getExternalEditorClassName()
ExternalEditorSupport
getExternalEditorClassName in interface ExternalEditorSupportprotected void accepted(Molecule molecule)
mDocument and editorMode
protected void canceled()
mDocument as is, and sets editorMode
protected int getDefaultDispOpts()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||