|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.japisoft.xmlpad.PopupModel
This popup is available inside the XMLContainer. It is responsable to maintain a separate collection of XMLAction. This is useful to alter it when you want to add or remove an XMLAction in a particular editing context,then the popup will be dynamically updated.
If you want to add common action, use the ActionModel not this model
If is adviced to user not to use their own swing Action but rather XMLAction for commodity
XMLAction
,
com.japiosft.xmlpad.action.ActionModel
,
ToolBarModelListener
Constructor Summary | |
PopupModel(XMLContainer container)
|
Method Summary | |
void |
addAction(javax.swing.Action a)
Add a new action. |
void |
addPopupModelListener(PopupModelListener listener)
Add a new listener for the popup update |
void |
addSeparator()
Add a separator |
void |
dispose()
Only when the container is disposed. |
javax.swing.Action |
getActionAt(int location)
|
void |
insertActionAt(javax.swing.Action a,
int location)
Insert an action for the location |
void |
insertSeparatorAt(int location)
Insert a separator at the location |
boolean |
isAction(int location)
|
boolean |
isSeparator(int location)
|
void |
removeAction(javax.swing.Action a)
|
void |
removeAction(javax.swing.Action a,
boolean definitly)
Remove an action or XMLAction. |
void |
removePopupModelListener(PopupModelListener listener)
Remove a listener for the toolbar update |
void |
removeSeparator(int location)
Remove a separator at the location |
static void |
resetPopupModel(PopupModel model)
Reset the popup model to include all action (Popable) from the ActionModel |
static void |
resetTreePopupModel(PopupModel model)
Reset this popup model to include all tree popable action from the ActionModel tree group. |
void |
setEnabledListener(boolean enable)
Enable "real time" notification |
int |
size()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PopupModel(XMLContainer container)
Method Detail |
public void dispose()
public void addPopupModelListener(PopupModelListener listener)
public void removePopupModelListener(PopupModelListener listener)
public void setEnabledListener(boolean enable)
public int size()
public void addAction(javax.swing.Action a)
public void removeAction(javax.swing.Action a, boolean definitly)
dispose
on the XMLAction
a
- Action to be removeddefinitly
- Call the dispose
method on XMLAction if true
public void removeAction(javax.swing.Action a)
public void insertActionAt(javax.swing.Action a, int location)
public javax.swing.Action getActionAt(int location)
public boolean isAction(int location)
public void addSeparator()
public void insertSeparatorAt(int location)
public void removeSeparator(int location)
public boolean isSeparator(int location)
public static void resetPopupModel(PopupModel model)
ActionModel
public static void resetTreePopupModel(PopupModel model)
ActionModel
tree group.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |