|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.AbstractAction
org.formaria.editor.netbeans.actions.CodeFragmentAction
public class CodeFragmentAction
The action for the code fragments option
Copyright (c) Formaria Ltd., 2001-2006, This software is licensed under the GNU Public License (GPL), please see license.txt for more details. If you make commercial use of this software you must purchase a commercial license from Formaria.
$Revision: 1.8 $
| Field Summary |
|---|
| Fields inherited from class javax.swing.AbstractAction |
|---|
changeSupport, enabled |
| Fields inherited from interface javax.swing.Action |
|---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
| Constructor Summary | |
|---|---|
CodeFragmentAction(EditorProject project,
Page page,
java.lang.String text,
javax.swing.ImageIcon icon,
java.lang.String desc,
java.lang.Integer mnemonic)
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
java.lang.Object |
evaluateAttribute(java.lang.Object instance,
java.lang.String attributeValue)
Get the value of an attribute. |
MethodReference |
getMethodReference(java.lang.Object instance,
java.lang.String attributeValue)
Get the value of an attribute by evaluating a method reference |
MethodReference |
getMethodReference(java.lang.String attributeValue)
Get the method reference for the methods named in the attribute |
java.lang.Object |
getResult()
Explicitly get the result of an evaluation. |
void |
setCurrentProject(Project project)
Set the current project and complete any initialization that depends on the project reference/instance. |
void |
setExceptionHandler(ExceptionHandler eh)
Set an exception handler for processing exceptions |
void |
setResult(java.lang.Object value)
Explicitly set the result of an evaluation. |
| Methods inherited from class javax.swing.AbstractAction |
|---|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CodeFragmentAction(EditorProject project,
Page page,
java.lang.String text,
javax.swing.ImageIcon icon,
java.lang.String desc,
java.lang.Integer mnemonic)
| Method Detail |
|---|
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListener
public java.lang.Object evaluateAttribute(java.lang.Object instance,
java.lang.String attributeValue)
evaluateAttribute in interface AttributeEvaluatorpage - the page being loadedattributeValue - the raw value of the attribute
public void setCurrentProject(Project project)
setCurrentProject in interface AttributeEvaluatorproject - the current or owning projectpublic MethodReference getMethodReference(java.lang.String attributeValue)
getMethodReference in interface AttributeEvaluatorattributeValue - the method name
public MethodReference getMethodReference(java.lang.Object instance,
java.lang.String attributeValue)
getMethodReference in interface AttributeEvaluatorpage - the current pageattributeValue - the method name
public void setResult(java.lang.Object value)
setResult in interface AttributeEvaluatorthe - new result valuepublic java.lang.Object getResult()
getResult in interface AttributeEvaluatorpublic void setExceptionHandler(ExceptionHandler eh)
setExceptionHandler in interface AttributeEvaluatoreh - the exception handler
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||