|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.AbstractAction | +--com.japisoft.xmlpad.action.XMLAction
Abstract class for XML action
Field Summary | |
static int |
IMAGE_SIZE
|
Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
Constructor Summary | |
XMLAction()
|
|
XMLAction(java.lang.String actionReference)
Reference for action for retreiving a same icon |
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
|
java.lang.String |
getName()
Return the name of the action. |
boolean |
hasFeature(java.lang.String feature)
|
boolean |
isPopable()
|
abstract boolean |
notifyAction()
Notify action must be done. |
void |
setActionIcon(java.lang.String actionIcon)
This is useful when replacing an action byanother one for retreiving the same icon |
void |
setFeature(java.lang.String feature,
boolean enabled)
Set a feature for the action |
void |
setPopable(boolean popable)
Decide to include this action in a popup menu |
void |
setXMLContainer(XMLContainer container)
Set the current XMLEditor for action |
void |
setXMLEditor(XMLEditor editor)
Set the current XMLEditor for action |
Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static int IMAGE_SIZE
Constructor Detail |
public XMLAction()
public XMLAction(java.lang.String actionReference)
Method Detail |
public void setPopable(boolean popable)
public boolean isPopable()
true
if this action can be integrated in a popup menupublic void setActionIcon(java.lang.String actionIcon)
public void setXMLEditor(XMLEditor editor)
public void setXMLContainer(XMLContainer container)
public void actionPerformed(java.awt.event.ActionEvent e)
public abstract boolean notifyAction()
public java.lang.String getName()
public void setFeature(java.lang.String feature, boolean enabled)
public boolean hasFeature(java.lang.String feature)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |