public final class LayerThing extends DBObject implements TitledThing
| Constructor and Description |
|---|
LayerThing(TemplateThing template,
Project project,
long id,
String title,
Object ob,
ArrayList<LayerThing> al_children)
Reconstruct from database, in combination with the setup() method.
|
LayerThing(TemplateThing template,
Project project,
Object ob) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addChild(Thing child) |
boolean |
canHaveAsChild(Thing thing) |
void |
debug(String indent) |
Thing |
findChild(Object ob)
Recursive search for the thing that contains the given object.
|
ArrayList<LayerThing> |
getChildren() |
TemplateThing |
getChildTemplate(String type) |
String |
getInfo()
Return information on this node and its object.
|
Object |
getObject() |
Thing |
getParent() |
JMenuItem[] |
getPopupItems(ActionListener listener) |
String |
getTitle()
May be null or empty; call toString() to get a textual representation.
|
String |
getType() |
boolean |
hasChildren() |
int |
indexOf(LayerThing child) |
boolean |
isExpanded() |
boolean |
remove(boolean check)
Remove this instance, cascading the remove action to the children and the objects.
|
boolean |
removeChild(LayerThing child) |
void |
setParent(Thing parent) |
void |
setTitle(String title) |
void |
setup()
Tell the attributes who owns them, and the children's attributes as well, and set the parent to the children; used to finish up reconstruction from the database.
|
Thing |
shallowCopy()
A new copy with same template, same project, same id, same object and cloned table of same attributes, and same title, but no parent and no children.
|
String |
toString() |
addToDatabase, exportXML, getId, getProject, getShortTitle, getUniqueIdentifier, removeFromDatabase, updateInDatabase, updateInDatabasepublic LayerThing(TemplateThing template, Project project, Object ob) throws Exception
Exceptionpublic LayerThing(TemplateThing template, Project project, long id, String title, Object ob, ArrayList<LayerThing> al_children)
public Thing shallowCopy()
shallowCopy in interface Thingpublic void setup()
public TemplateThing getChildTemplate(String type)
public String toString()
public void setTitle(String title)
setTitle in interface TitledThingpublic String getTitle()
public boolean canHaveAsChild(Thing thing)
canHaveAsChild in interface Thingpublic boolean removeChild(LayerThing child)
public ArrayList<LayerThing> getChildren()
getChildren in interface Thingpublic boolean hasChildren()
hasChildren in interface Thingpublic JMenuItem[] getPopupItems(ActionListener listener)
public boolean remove(boolean check)
public Thing findChild(Object ob)
public int indexOf(LayerThing child)
public boolean isExpanded()
isExpanded in interface ThingCopyright © 2015–2021 Fiji. All rights reserved.