|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.plugins.dnd.viewer.content.AbstractContent
org.nakedobjects.plugins.dnd.viewer.content.AbstractCollectionContent
org.nakedobjects.plugins.dnd.viewer.content.OneToManyFieldImpl
public class OneToManyFieldImpl
| Constructor Summary | |
|---|---|
OneToManyFieldImpl(NakedObject parent,
NakedObject object,
OneToManyAssociation association)
|
|
| Method Summary | |
|---|---|
Consent |
canClear()
|
Consent |
canDrop(Content sourceContent)
Determines if the specified content can be drop on this content. |
Consent |
canSet(NakedObject dragSource)
|
void |
clear()
|
void |
contentMenuOptions(UserActionSet options)
Allows this content to add menu options to the set of menu options the user will see for this content. |
void |
debugDetails(DebugString debug)
|
NakedObject |
drop(Content sourceContent)
Implements the response to the dropping of the specified content onto this content. |
NakedObject |
getCollection()
|
java.lang.String |
getDescription()
|
NakedObjectAssociation |
getField()
|
java.lang.String |
getFieldName()
|
java.lang.String |
getHelp()
|
java.lang.String |
getIconName()
The name of the icon to use to respresent the object represented by this content. |
Image |
getIconPicture(int iconHeight)
The icon to use to respresent the object represented by this content. |
java.lang.String |
getId()
|
NakedObject |
getNaked()
The object represented by this content. |
OneToManyAssociation |
getOneToManyAssociation()
|
NakedObject |
getParent()
|
NakedObjectSpecification |
getSpecification()
The specification of the object represented by this content. |
boolean |
isCollection()
Returns true if this content represents a NakedCollection. |
Consent |
isEditable()
|
boolean |
isMandatory()
|
boolean |
isTransient()
Returns true if the object represented by this content is transient; has not been persisted yet. |
void |
setObject(NakedObject object)
|
java.lang.String |
title()
|
java.lang.String |
toString()
|
java.lang.String |
windowTitle()
|
| Methods inherited from class org.nakedobjects.plugins.dnd.viewer.content.AbstractCollectionContent |
|---|
allElements, elements, getElementSpecification, getFieldSortOrder, getOptions, getOrderByElement, getReverseSortOrder, isOptionEnabled, parseTextEntry, setOrder, setOrderByElement, setOrderByField, viewMenuOptions |
| Methods inherited from class org.nakedobjects.plugins.dnd.viewer.content.AbstractContent |
|---|
isObject, isPersistable, isTextParseable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.nakedobjects.plugins.dnd.Content |
|---|
getOptions, isObject, isOptionEnabled, isPersistable, isTextParseable, parseTextEntry, viewMenuOptions |
| Methods inherited from interface org.nakedobjects.plugins.dnd.CollectionContent |
|---|
allElements, elements, getElementSpecification, getFieldSortOrder, getOptions, getOrderByElement, getReverseSortOrder, isOptionEnabled, parseTextEntry, setOrder, setOrderByElement, setOrderByField, viewMenuOptions |
| Constructor Detail |
|---|
public OneToManyFieldImpl(NakedObject parent,
NakedObject object,
OneToManyAssociation association)
| Method Detail |
|---|
public Consent canClear()
public Consent canDrop(Content sourceContent)
Content
canDrop in interface Contentpublic Consent canSet(NakedObject dragSource)
public void clear()
public void contentMenuOptions(UserActionSet options)
Content
contentMenuOptions in interface CollectionContentcontentMenuOptions in interface ContentcontentMenuOptions in class AbstractCollectionContentContent.viewMenuOptions(UserActionSet)public void debugDetails(DebugString debug)
debugDetails in interface CollectionContentdebugDetails in interface ContentdebugDetails in class AbstractCollectionContentpublic NakedObject drop(Content sourceContent)
Content
drop in interface Contentpublic NakedObject getCollection()
getCollection in interface CollectionContentgetCollection in class AbstractCollectionContentpublic java.lang.String getDescription()
getDescription in interface ContentgetDescription in class AbstractCollectionContentpublic NakedObjectAssociation getField()
getField in interface FieldContentpublic java.lang.String getFieldName()
getFieldName in interface FieldContentpublic java.lang.String getHelp()
getHelp in interface Contentpublic java.lang.String getIconName()
Content
getIconName in interface Contentpublic Image getIconPicture(int iconHeight)
Content
getIconPicture in interface CollectionContentgetIconPicture in interface ContentgetIconPicture in class AbstractCollectionContentpublic java.lang.String getId()
getId in interface Contentpublic NakedObject getNaked()
Content
getNaked in interface Contentpublic OneToManyAssociation getOneToManyAssociation()
getOneToManyAssociation in interface OneToManyFieldpublic NakedObject getParent()
getParent in interface FieldContentpublic NakedObjectSpecification getSpecification()
Content
getSpecification in interface Contentpublic boolean isCollection()
Content
isCollection in interface ContentisCollection in class AbstractContentpublic Consent isEditable()
isEditable in interface FieldContentpublic boolean isMandatory()
isMandatory in interface FieldContentpublic boolean isTransient()
Content
isTransient in interface Contentpublic void setObject(NakedObject object)
public final java.lang.String title()
title in interface Contentpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String windowTitle()
windowTitle in interface ContentwindowTitle in class AbstractContent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||