|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JList
org.argouml.uml.ui.UMLList2
org.argouml.uml.ui.UMLLinkedList
org.argouml.uml.ui.UMLMutableLinkedList
This class is the GUI front for a mutable linked list. The user can add, delete or create modelelements to the model. He can do that via a popup menu.
The developer using this class can turn on and off the actions the user can do via various configuration switches. To turn on/off the add option for example, he can call the method setAddOption. Default the options for delete and add are on. The option for new is off, since this is much less used.
The implementation of the three actions, are delegated to several other ActionClasses. ActionRemoveFromModel for the delete, the other actionclasses need to be provided when constructing this object.
Since december 14th, an option is added to configure the popupmenu that should be shown.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JList |
JList.AccessibleJList |
| Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
| Fields inherited from class javax.swing.JList |
HORIZONTAL_WRAP, VERTICAL, VERTICAL_WRAP |
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
protected |
UMLMutableLinkedList(UMLModelElementListModel2 dataModel)
The constructor. |
|
UMLMutableLinkedList(UMLModelElementListModel2 dataModel,
AbstractActionAddModelElement theAddAction)
The constructor. |
|
UMLMutableLinkedList(UMLModelElementListModel2 dataModel,
AbstractActionAddModelElement theAddAction,
AbstractActionNewModelElement theNewAction)
The constructor. |
|
UMLMutableLinkedList(UMLModelElementListModel2 dataModel,
AbstractActionAddModelElement theAddAction,
AbstractActionNewModelElement theNewAction,
AbstractActionRemoveElement theDeleteAction,
boolean showIcon)
Constructor that should be used if the developer wishes the popupmenu to be constructed via the actions (as described in the javadoc of this class itself). |
|
UMLMutableLinkedList(UMLModelElementListModel2 dataModel,
AbstractActionNewModelElement theNewAction)
The constructor. |
|
UMLMutableLinkedList(UMLModelElementListModel2 dataModel,
JPopupMenu popup)
Constructor that should be used if the developer wishes a customized popupmenu, without icons. |
|
UMLMutableLinkedList(UMLModelElementListModel2 dataModel,
JPopupMenu popup,
boolean showIcon)
Constructor that should be used if the developer wishes a customized popupmenu. |
| Method Summary | |
AbstractActionAddModelElement |
getAddAction()
Returns the addAction. |
AbstractActionRemoveElement |
getDeleteAction()
Returns the deleteAction. |
AbstractActionNewModelElement |
getNewAction()
Returns the newAction. |
JPopupMenu |
getPopupMenu()
Returns the popupMenu. |
boolean |
isAdd()
Returns the add. |
boolean |
isDelete()
Returns the delete. |
boolean |
isNew()
Returns the new. |
void |
mouseClicked(MouseEvent e)
|
void |
mouseEntered(MouseEvent e)
|
void |
mouseExited(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
void |
setAddAction(AbstractActionAddModelElement action)
Sets the addAction. |
void |
setDelete(boolean delete)
Sets the delete. |
void |
setDeleteAction(AbstractActionRemoveElement action)
Sets the deleteAction. |
void |
setNewAction(AbstractActionNewModelElement action)
Sets the newAction. |
void |
setPopupMenu(JPopupMenu menu)
Sets the popupMenu. |
| Methods inherited from class org.argouml.uml.ui.UMLList2 |
getTarget, getTargettableModel |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public UMLMutableLinkedList(UMLModelElementListModel2 dataModel,
AbstractActionAddModelElement theAddAction,
AbstractActionNewModelElement theNewAction,
AbstractActionRemoveElement theDeleteAction,
boolean showIcon)
dataModel - the data modeltheAddAction - the action for addingtheNewAction - the action for newtheDeleteAction - the action for deletingshowIcon - true if an icon should be shown
public UMLMutableLinkedList(UMLModelElementListModel2 dataModel,
AbstractActionAddModelElement theAddAction,
AbstractActionNewModelElement theNewAction)
dataModel - the data modeltheAddAction - the action for addingtheNewAction - the action for new
public UMLMutableLinkedList(UMLModelElementListModel2 dataModel,
AbstractActionAddModelElement theAddAction)
dataModel - the data modeltheAddAction - the action for adding
public UMLMutableLinkedList(UMLModelElementListModel2 dataModel,
AbstractActionNewModelElement theNewAction)
dataModel - the data modeltheNewAction - the action for newprotected UMLMutableLinkedList(UMLModelElementListModel2 dataModel)
dataModel - the data model
public UMLMutableLinkedList(UMLModelElementListModel2 dataModel,
JPopupMenu popup,
boolean showIcon)
dataModel - the data modelpopup - the popup menushowIcon - true if an icon should be shown
public UMLMutableLinkedList(UMLModelElementListModel2 dataModel,
JPopupMenu popup)
dataModel - the data modelpopup - the popup menu| Method Detail |
public boolean isAdd()
public boolean isDelete()
public boolean isNew()
public void setDelete(boolean delete)
delete - The delete to setpublic AbstractActionAddModelElement getAddAction()
public AbstractActionNewModelElement getNewAction()
public void setAddAction(AbstractActionAddModelElement action)
action - The addAction to setpublic void setNewAction(AbstractActionNewModelElement action)
action - The newAction to setpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenermouseReleased in class UMLList2MouseListener.mouseReleased(
java.awt.event.MouseEvent)public void mousePressed(MouseEvent e)
mousePressed in interface MouseListenermousePressed in class UMLList2MouseListener.mousePressed(java.awt.event.MouseEvent)public JPopupMenu getPopupMenu()
public void setPopupMenu(JPopupMenu menu)
menu - The popupMenu to setpublic AbstractActionRemoveElement getDeleteAction()
public void setDeleteAction(AbstractActionRemoveElement action)
action - The deleteAction to setpublic void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenermouseClicked in class UMLList2MouseListener.mouseClicked(java.awt.event.MouseEvent)public void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenermouseEntered in class UMLList2MouseListener.mouseEntered(java.awt.event.MouseEvent)public void mouseExited(MouseEvent e)
mouseExited in interface MouseListenermouseExited in class UMLList2MouseListener.mouseExited(java.awt.event.MouseEvent)
|
|||||||||||
| 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 |