org.nakedobjects.viewer.classic.view
Class CollectionViewer
java.lang.Object
org.nakedobjects.viewer.classic.view.ObjectViewer
org.nakedobjects.viewer.classic.view.CollectionViewer
- All Implemented Interfaces:
- java.util.Observer
- public class CollectionViewer
- extends ObjectViewer
| Methods inherited from class org.nakedobjects.viewer.classic.view.ObjectViewer |
addOption, addView, addViewActionListener, checkClass, copy, createDropObject, debugDetails, developerPopup, flipView, getBorderInsets, getDisplay, getDisplayState, getMinimumSize, getView, idString, isResizable, minimize, newInstance, notifyActionView, open, popup, removeViewActionListener, results, setActive, setDisplay, setObject, setResizable, updateDisplayState, useView, vacantDrop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CollectionViewer
public CollectionViewer(NakedObject forObject,
OneToManyAssociation attribute,
View defaultView)
CollectionViewer
public CollectionViewer(NakedObject forObject,
OneToManyAssociation attribute,
View defaultView,
View alternativeView)
CollectionViewer
public CollectionViewer(NakedObject forObject,
OneToManyAssociation attribute,
View defaultView,
View alternativeView,
boolean switchToAlternative)
canDrag
public boolean canDrag()
- Specified by:
canDrag in class ObjectViewer
canDrop
public boolean canDrop(DragDropEvent event)
- Determines if this collection can be dropped on. A collection can have an object dropped
on it providing both the following are true:
1. the object is of the type is set up (during initialisation) to hold
2. the collection does not already contain the object
- Specified by:
canDrop in class ObjectViewer
contentName
public java.lang.String contentName()
debugData
protected void debugData(java.lang.StringBuffer text)
- Specified by:
debugData in class ObjectViewer
dispose
public void dispose()
- Specified by:
dispose in class ObjectViewer
drop
public void drop(DragDropEvent event)
- Specified by:
drop in class ObjectViewer
getAssociation
public Association getAssociation()
getBorderSize
public java.awt.Dimension getBorderSize()
- Overrides:
getBorderSize in class ObjectViewer
getElements
public java.util.Enumeration getElements()
getObject
public NakedObject getObject()
- Specified by:
getObject in class ObjectViewer
init
public void init()
- Overrides:
init in class ObjectViewer
menuOptions
public void menuOptions(MenuOptionSet menuOptionSet)
- Overrides:
menuOptions in class ObjectViewer
move
public void move(DragDropEvent event)
- Specified by:
move in class ObjectViewer
refresh
public void refresh()
remove
public void remove(NakedObject object)
toString
public java.lang.String toString()
- Overrides:
toString in class ObjectViewer
typeName
public java.lang.String typeName()
- Overrides:
typeName in class ObjectViewer
- Returns:
- java.lang.String
update
public void update(java.util.Observable o,
java.lang.Object arg)