|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectUndoableAction
org.argouml.uml.diagram.ui.ActionCompartmentDisplay
public class ActionCompartmentDisplay
A class to implement the actions involved in hiding and showing compartments on interfaces, classes and use cases.
This implementation may easily be extended for other compartments of other figs.
The class declares a number of static instances, each with an actionPerformed method that performs the required action.
| Constructor Summary | |
|---|---|
protected |
ActionCompartmentDisplay(boolean d,
java.lang.String c,
int type)
Constructor for a new instance. |
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent ae)
Action method invoked when an event triggers this action. |
static java.util.Collection<javax.swing.Action> |
getActions()
Return the compartment show and/or hide actions needed for the selected Figs. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ActionCompartmentDisplay(boolean d,
java.lang.String c,
int type)
d - true if the compartment is to be shown,
false if it is to be hiddenc - the text to be displayed for this actiontype - the type of compartment. See definition at cType| Method Detail |
|---|
public static java.util.Collection<javax.swing.Action> getActions()
public void actionPerformed(java.awt.event.ActionEvent ae)
The cType instance variable defines the action to
take, and the display instance variable whether it should
set visibility or not.
ae - The event that triggered us.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| ArgoUML © 1996-2006 | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |