|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.edu.agh.cast.ui.dialogs.property.PropertyTreeEntry
public final class PropertyTreeEntry
Class which describes single entry in properties tree. It contains one of the two following fields:
label
when describe category entry such as 'visual data', etc.; such entries are not editable,
property
when describe element's property with value; such entries types depends on property type
Nested Class Summary | |
---|---|
static class |
PropertyTreeEntry.PropertyEditType
Enumeration of properties entries edition types. |
Constructor Summary | |
---|---|
PropertyTreeEntry(String id,
Property<? extends MetaProperty> property,
PropertyTreeEntry.PropertyEditType type)
Constructor for entry with property. |
|
PropertyTreeEntry(String id,
Property<? extends MetaProperty> property,
PropertyTreeEntry.PropertyEditType type,
PropertyTreeEntry parent)
Constructor for entry with property which sets also parent entry. |
|
PropertyTreeEntry(String id,
String label)
Constructor for entry with label. |
|
PropertyTreeEntry(String id,
String label,
PropertyTreeEntry parent)
Constructor for entry with label which sets also parent entry. |
Method Summary | |
---|---|
void |
addAllChildren(Map<String,PropertyTreeEntry> childrenToAdd)
Adds children PropertyTreeEntry entries. |
void |
addChild(PropertyTreeEntry entry)
Add child PropertyTreeEntry . |
PropertyTreeEntry |
getChild(String childId)
Gets child by given id. |
Collection<PropertyTreeEntry> |
getChildren()
|
Map<String,PropertyTreeEntry> |
getChildrenMap()
Gets maps of children. |
String |
getId()
|
String |
getLabel()
|
PropertyTreeEntry |
getParent()
|
Property<? extends MetaProperty> |
getProperty()
|
PropertyTreeEntry.PropertyEditType |
getType()
|
boolean |
hasChildren()
Checks if entry has children. |
boolean |
isMarkAsLabel()
|
PropertyTreeEntry |
removeChild(PropertyTreeEntry entry)
Removes given child. |
void |
setIsMarkAsLabel(boolean isMarkAsLabel)
|
void |
setParent(PropertyTreeEntry parent)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyTreeEntry(String id, String label)
PropertyTreeEntry.PropertyEditType.CATEGORY
.
id
- entry idlabel
- entry labelpublic PropertyTreeEntry(String id, Property<? extends MetaProperty> property, PropertyTreeEntry.PropertyEditType type)
id
- entry idproperty
- property in this entrytype
- entry type based on property typepublic PropertyTreeEntry(String id, String label, PropertyTreeEntry parent)
id
- entry idlabel
- entry labelparent
- parent entryPropertyTreeEntry(String, String)
public PropertyTreeEntry(String id, Property<? extends MetaProperty> property, PropertyTreeEntry.PropertyEditType type, PropertyTreeEntry parent)
id
- entry idproperty
- property in this entrytype
- entry type based on property typeparent
- parent entryPropertyTreeEntry(String, Property, PropertyEditType)
Method Detail |
---|
public String getId()
public PropertyTreeEntry.PropertyEditType getType()
public String getLabel()
public boolean isMarkAsLabel()
public void setIsMarkAsLabel(boolean isMarkAsLabel)
public Property<? extends MetaProperty> getProperty()
public void setParent(PropertyTreeEntry parent)
public PropertyTreeEntry getParent()
public Collection<PropertyTreeEntry> getChildren()
public void addChild(PropertyTreeEntry entry)
PropertyTreeEntry
. Sets parent in child entry as this.
entry
- child entry to addpublic void addAllChildren(Map<String,PropertyTreeEntry> childrenToAdd)
PropertyTreeEntry
entries. Sets parent in all children as this.
childrenToAdd
- children entries to addpublic PropertyTreeEntry removeChild(PropertyTreeEntry entry)
entry
- entry to remove
public boolean hasChildren()
public PropertyTreeEntry getChild(String childId)
childId
- entry id
public Map<String,PropertyTreeEntry> getChildrenMap()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |