|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcz.cmc.tcgui.datadef.TCEntry
cz.cmc.tcgui.datadef.AttributeEntry
cz.cmc.tcgui.datadef.AttributeGroup
AttributeGroup is a container for more AttributeEntries (which are in turn AttributeGroups or Attributes).
| Nested Class Summary | |
static class |
AttributeGroup.AttributeEntryComparator
Comparator comparing order of AttributeGroup's entries |
static class |
AttributeGroup.AttributeSet
Class for defining attribute sets. |
static class |
AttributeGroup.AttributeSetPriorityComparator
Comparator for comparing priority of AttributeSets |
| Field Summary | |
protected TreeMap |
attributeEntries
Map AttributeEntry => ordered set of AttributeSets |
protected TreeMap |
attributeSets
Map attributeSet => ordered set of attributeEntries |
| Fields inherited from class cz.cmc.tcgui.datadef.AttributeEntry |
generated, interpreted, maxInstances, minInstances, parent, position, UNLIMITED_INSTANCES, virtual |
| Fields inherited from class cz.cmc.tcgui.datadef.TCEntry |
description, id, label, name |
| Constructor Summary | |
AttributeGroup()
Creates a new AttributeEntry |
|
AttributeGroup(String id,
String name,
String label)
Creates a new AttributeGroup with given id, name and label |
|
| Method Summary | |
void |
addAttributeEntry(AttributeEntry attributeEntry)
Appends AttributeEntry to this group. |
void |
addAttributeSet(AttributeGroup.AttributeSet as)
Add a new attribute set into this group |
AttributeEntry[] |
attributeEntries()
Get array of contained attribute group entries (sorted by index) |
AttributeEntry[] |
attributeEntriesInSet(AttributeGroup.AttributeSet attributeSet)
Returns all attribute entries in the given set (sorted by index). |
int |
attributeEntryCount()
Returns number of AttributeEntries in group. |
int |
attributeSetCount()
Returns number of AttributeSet in group. |
AttributeGroup.AttributeSet[] |
attributeSets()
Get array of contained attribute sets (sorted by priority) |
AttributeGroup.AttributeSet[] |
attributeSetsContainingAttributeEntry(AttributeEntry age)
Returns all sets containing the given attribute (sorted by priority). |
Object |
clone()
Clones this AttributeGroup |
AttributeEntry |
getAttributeEntryForID(String id)
Get attribute entry with the given ID from the AttributeGroup |
void |
insertAttributeEntryAt(AttributeEntry attributeEntry,
int position)
Inserts AttributeEntry into this group at position index. |
void |
putAttributeEntryIntoSet(AttributeEntry ae,
AttributeGroup.AttributeSet as)
Puts given AttributeEntry into given AttributeSet. |
void |
removeAttributeEntry(AttributeEntry ae)
Removes AttributeEntry |
void |
removeAttributeEntryFromSet(AttributeEntry age,
AttributeGroup.AttributeSet as)
Removes given AttributeEntry from given AttributeSet. |
void |
removeAttributeSet(AttributeGroup.AttributeSet as)
Removes AttributeSet |
| Methods inherited from class cz.cmc.tcgui.datadef.AttributeEntry |
getGenerated, getInterpreted, getMaxInstances, getMinInstances, getParent, getPosition, getVirtual, setGenerated, setInterpreted, setMaxInstances, setMinInstances, setParent, setPosition, setVirtual, toString |
| Methods inherited from class cz.cmc.tcgui.datadef.TCEntry |
getDescription, getID, getLabel, getName, setDescription, setID, setLabel, setName |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected TreeMap attributeEntries
protected TreeMap attributeSets
| Constructor Detail |
public AttributeGroup()
public AttributeGroup(String id,
String name,
String label)
id - id of the AttributeEntryname - name of the AttributeEntrylabel - human-readable label of the AttributeEntry| Method Detail |
public int attributeEntryCount()
public AttributeEntry[] attributeEntries()
public AttributeEntry getAttributeEntryForID(String id)
id - id to find AttributeEntry for
public int attributeSetCount()
public AttributeGroup.AttributeSet[] attributeSets()
public void insertAttributeEntryAt(AttributeEntry attributeEntry,
int position)
attributeEntry - AttributeEntry to insert into groupposition - position where to insert the AttributeEntrypublic void addAttributeEntry(AttributeEntry attributeEntry)
attributeEntry - AttributeEntry to append to grouppublic void removeAttributeEntry(AttributeEntry ae)
public void addAttributeSet(AttributeGroup.AttributeSet as)
as - AttributeSet to addpublic void removeAttributeSet(AttributeGroup.AttributeSet as)
as - AttributeSet to removepublic AttributeEntry[] attributeEntriesInSet(AttributeGroup.AttributeSet attributeSet)
attributeSet - attribute set to return attribute entries for
public AttributeGroup.AttributeSet[] attributeSetsContainingAttributeEntry(AttributeEntry age)
public void putAttributeEntryIntoSet(AttributeEntry ae,
AttributeGroup.AttributeSet as)
as - AttributeSet to put into
public void removeAttributeEntryFromSet(AttributeEntry age,
AttributeGroup.AttributeSet as)
age - AttributeEntry to removeas - AttributeSet to remove frompublic Object clone()
clone in class AttributeEntry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||