T - the type of object that is managedpublic abstract class Manager<T> extends ModelComponentBase
Manager manages objects.
Based on the values of a collection of its Properties, a
Manager decides which of the objects it manages is currently
"active".
| Modifier and Type | Class and Description |
|---|---|
static class |
Manager.Creator<T>
Every time this
getActive() is called, if the managed
object does not yet exist, it is created using a Creator. |
static interface |
Manager.Updatable
Every time the currently "active" object changes, the
Manager.Updatable.update()
method of this Manager's Updatable is called. |
ModelComponent.FilePathSaveType, ModelComponent.NavpanelVisibility| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_SUPPORTS_NONE
Whether the NONE value of Enums is supported.
|
static PropertyList |
myProps |
enforceUniqueCompositeNames, enforceUniqueNames, myNumber, NULL_OBJ, useCompactPathNames| Constructor and Description |
|---|
Manager(Manager.Creator<T> creator,
Manager.Updatable updatable)
|
Manager(java.lang.String name,
Manager.Creator<T> creator,
Manager.Updatable updatable)
|
| Modifier and Type | Method and Description |
|---|---|
T |
getActive()
Returns the currently "active" managed object.
|
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by
this object.
|
boolean |
getSupportsNONE()
Returns whether the NONE value of Enums is supported.
|
void |
setSupportsNONE(boolean enable)
Sets whether the NONE value of Enums is supported to "enable".
|
checkFlag, checkName, checkNameUniqueness, clearFlag, clone, connectToHierarchy, copy, createTempFlag, disconnectFromHierarchy, getChildren, getGrandParent, getHardReferences, getName, getNameRange, getNavpanelVisibility, getNavpanelVisibility, getNumber, getParent, getProperty, getSoftReferences, hasChildren, hasState, isFixed, isMarked, isScanning, isSelected, isWritable, makeValidName, makeValidName, notifyParentOfChange, postscan, printReferences, recursivelyContained, recursivelyContains, removeTempFlag, scan, setFixed, setFlag, setMarked, setName, setNavpanelVisibility, setNavpanelVisibility, setNumber, setParent, setScanning, setSelected, setWritable, updateReferences, writepublic static final boolean DEFAULT_SUPPORTS_NONE
public static PropertyList myProps
public Manager(Manager.Creator<T> creator, Manager.Updatable updatable)
creator - the Creator of this Managerupdatable - the Updatable of this Managerpublic Manager(java.lang.String name,
Manager.Creator<T> creator,
Manager.Updatable updatable)
name - the name of this Managercreator - the Creator of this Managerupdatable - the Updatable of this Managerpublic PropertyList getAllPropertyInfo()
HasPropertiesgetAllPropertyInfo in interface HasPropertiesgetAllPropertyInfo in class ModelComponentBasepublic boolean getSupportsNONE()
public void setSupportsNONE(boolean enable)
enable - the new value for the supportsNONE propertypublic T getActive()