|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ix.iface.ui.AbstractSetEditor ix.iview.AbstractUISetEditor
public abstract class AbstractUISetEditor
Support for editing sets of named objects (e.g. refinements or object classes). Looks after adding/removing/editing the objects and keeping the set consistent. Handles overwrites, finding objects in the set, working out whether the set has changed.
Field Summary |
---|
Fields inherited from class ix.iface.ui.AbstractSetEditor |
---|
ADD, added, CANCEL, edited, label, lazyOwn, manager, members, NEWNAME, originals, OVERWRITE, removed |
Constructor Summary | |
---|---|
AbstractUISetEditor(DomainObjectManager manager,
java.util.LinkedList objects)
|
Method Summary | |
---|---|
java.lang.Object |
cloneConstruct(java.lang.Object o)
Clones the given construct so as not to overwrite the original. |
java.util.List |
collectConstructChanges()
Collects descriptions of any changes in constructs in the set. |
void |
fireConstructRemoved(java.lang.Object object)
|
Named |
getAnyNamedObject(java.lang.String name)
Finds an object whose name matches the given string. |
IXObject |
getBaseObject(Named object)
|
Domain |
getDomain()
|
java.lang.String |
getName(java.lang.Object object)
Gets a string representation of the object to identify it uniquely |
Named |
getNamedObject(java.lang.String name)
Finds an object whose name matches the given string. |
java.lang.Object |
getOriginal(java.lang.Object uiOb)
Finds the original version of the given object in the originals map |
abstract Named |
getStringOriginal(java.lang.String name)
|
UIDomain |
getUIDomain()
|
boolean |
hasOriginal(Named object)
Checks whether the given object has an original base object |
boolean |
isEmpty(java.lang.Object object)
Checks whether the given object is empty |
boolean |
isUndefined(java.lang.Object object)
Checks whether the given object is undefined |
void |
loadOriginal(java.lang.Object own)
|
void |
rememberClear()
|
void |
removeFromDomain(Domain domain,
java.lang.Object object)
|
void |
saveToDomain(Domain domain)
|
void |
setManager(DomainObjectManager manager,
java.util.LinkedList objects)
|
void |
setName(java.lang.Object object,
java.lang.String name)
Sets a string representation of the object that identifies it uniquely |
void |
setObjects(java.util.LinkedList objects)
|
void |
setOriginal(java.lang.Object own,
java.lang.Object original)
Finds the original version of the given object in the originals map |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractUISetEditor(DomainObjectManager manager, java.util.LinkedList objects)
Method Detail |
---|
public void setManager(DomainObjectManager manager, java.util.LinkedList objects)
public void setObjects(java.util.LinkedList objects)
setObjects
in class AbstractSetEditor
public Domain getDomain()
public UIDomain getUIDomain()
public java.lang.Object getOriginal(java.lang.Object uiOb)
AbstractSetEditor
getOriginal
in class AbstractSetEditor
public void setOriginal(java.lang.Object own, java.lang.Object original)
AbstractSetEditor
setOriginal
in class AbstractSetEditor
public void rememberClear()
public java.lang.String getName(java.lang.Object object)
AbstractSetEditor
getName
in class AbstractSetEditor
public void setName(java.lang.Object object, java.lang.String name)
AbstractSetEditor
setName
in class AbstractSetEditor
public Named getAnyNamedObject(java.lang.String name)
public Named getNamedObject(java.lang.String name)
getNamedObject
in class AbstractSetEditor
public abstract Named getStringOriginal(java.lang.String name)
getStringOriginal
in class AbstractSetEditor
public void loadOriginal(java.lang.Object own)
loadOriginal
in class AbstractSetEditor
public boolean hasOriginal(Named object)
public boolean isEmpty(java.lang.Object object)
isEmpty
in class AbstractSetEditor
public boolean isUndefined(java.lang.Object object)
AbstractSetEditor
isUndefined
in class AbstractSetEditor
public IXObject getBaseObject(Named object)
public java.lang.Object cloneConstruct(java.lang.Object o) throws java.lang.CloneNotSupportedException
AbstractSetEditor
cloneConstruct
in class AbstractSetEditor
java.lang.CloneNotSupportedException
public void saveToDomain(Domain domain)
public void removeFromDomain(Domain domain, java.lang.Object object)
public java.util.List collectConstructChanges()
collectConstructChanges
in class AbstractSetEditor
public void fireConstructRemoved(java.lang.Object object)
fireConstructRemoved
in class AbstractSetEditor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |