|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractListModel
org.argouml.uml.ui.UMLModelElementListModel
org.argouml.uml.ui.UMLReflectionListModel
UMLModelElementListModel2
,
this class is part of the 'old'(pre 0.13.*) implementation of proppanels
that used reflection a lot.
This class is an implements a list model using reflection.
Field Summary | |
private java.lang.reflect.Method |
_addMethod
Deprecated. |
private java.lang.reflect.Method |
_deleteMethod
Deprecated. |
private java.lang.reflect.Method |
_getMethod
Deprecated. |
private static java.lang.Object[] |
_noArgs
Deprecated. |
private java.lang.reflect.Method |
_setMethod
Deprecated. |
protected static org.apache.log4j.Logger |
cat
Deprecated. |
Fields inherited from class org.argouml.uml.ui.UMLModelElementListModel |
_upper, NO_LIMIT |
Fields inherited from class javax.swing.AbstractListModel |
listenerList |
Constructor Summary | |
UMLReflectionListModel(UMLUserInterfaceContainer container,
java.lang.String property,
boolean showNone,
java.lang.String getMethod,
java.lang.String setMethod,
java.lang.String addMethod,
java.lang.String deleteMethod)
Deprecated. Creates a new list model |
Method Summary | |
void |
add(int index)
Deprecated. |
boolean |
buildPopup(javax.swing.JPopupMenu popup,
int index)
Deprecated. This method builds a context (pop-up) menu for the list. |
void |
delete(int index)
Deprecated. Standard delete method. |
protected ru.novosoft.uml.foundation.core.MModelElement |
getModelElementAt(int index)
Deprecated. This method returns the model element that corresponds to to the specific index. |
void |
moveDown(int index)
Deprecated. |
void |
moveUp(int index)
Deprecated. |
protected int |
recalcModelElementSize()
Deprecated. This method is called from getModelElementSize when the list size has been marked as invalid. |
Methods inherited from class org.argouml.uml.ui.UMLModelElementListModel |
addAtUtil, elementAtUtil, formatElement, getContainer, getContextNotation, getElementAt, getModelElementSize, getProperty, getSize, getTarget, getUpperBound, listRoleItemSet, moveDownUtil, moveUpUtil, navigateTo, open, propertySet, recovered, removed, resetSize, roleAdded, roleRemoved, setUpperBound, targetChanged, targetReasserted |
Methods inherited from class javax.swing.AbstractListModel |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.apache.log4j.Logger cat
private java.lang.reflect.Method _getMethod
private java.lang.reflect.Method _setMethod
private java.lang.reflect.Method _addMethod
private java.lang.reflect.Method _deleteMethod
private static final java.lang.Object[] _noArgs
Constructor Detail |
public UMLReflectionListModel(UMLUserInterfaceContainer container, java.lang.String property, boolean showNone, java.lang.String getMethod, java.lang.String setMethod, java.lang.String addMethod, java.lang.String deleteMethod)
container
- the container (typically a PropPanelClass or PropPanelInterface)
that provides access to the target classifier.property
- a string that specifies the name of an event that should force a refresh
of the list model. A null value will cause all events to trigger a refresh.showNone
- if true, an element labelled "none" will be shown where there are
no actual entries in the list.Method Detail |
protected int recalcModelElementSize()
recalcModelElementSize
in class UMLModelElementListModel
protected ru.novosoft.uml.foundation.core.MModelElement getModelElementAt(int index)
getModelElementAt
in class UMLModelElementListModel
index
- index of model element (zero based).
public boolean buildPopup(javax.swing.JPopupMenu popup, int index)
buildPopup
in class UMLModelElementListModel
popup
- popup menuindex
- index of selected list item
public void add(int index)
public void moveUp(int index)
public void moveDown(int index)
public void delete(int index)
UMLModelElementListModel
delete
in class UMLModelElementListModel
index
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20040316) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |