|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sourceforge.nite.gui.util.ConcreteDisplayElement
public class ConcreteDisplayElement
See also AbstractDisplayElement, AbstractCallableToolConfig and NXTConfig class. It's common for elements in tools to have a specific element they are displaying or creating and a type which is either an enumerated attribute or a pointer into a type ontology. This is the simplest possible implementation of the AbstractDisplayElement interface.
| Constructor Summary | |
|---|---|
ConcreteDisplayElement(java.lang.String elname,
java.lang.String attr,
java.lang.String deft,
java.lang.String root,
java.lang.String role,
java.lang.String gloss,
java.lang.String longname,
java.lang.String shortname)
Convenience class for displays of specific elements. |
|
| Method Summary | |
|---|---|
java.lang.String |
getElementName()
Return the name of the element this display is predominantly designed for displaying or creating. |
java.lang.String |
getElementNameLong()
Return the full name of the element this display is predominantly designed for displaying or creating: can be multiple words e.g. |
java.lang.String |
getElementNameShort()
Return the short name of the element this display is predominantly designed for displaying or creating: e.g. |
java.lang.String |
getEnumeratedTypeAttribute()
Return the name of the enumerated attribute that is used for the type (only required to be set if typeIsEnumeratedVariable() is true). |
java.lang.String |
getTypeDefault()
If the type is an enumerated attribute, this is the String value of the default; if the type is an ontology this is the ID of the default type element. |
java.lang.String |
getTypeGloss()
Return the name of the attribute on elements of the type ontology that give a 'gloss' of their meaning |
java.lang.String |
getTypeOntologyRoot()
Return the name of the root element of the type ontology |
java.lang.String |
getTypeRole()
Return the role of the pointer from the base element into the type ontology |
boolean |
typeIsEnumeratedVariable()
true if the type is an enumerated attribute; false if the type is a pointer to an ontology. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConcreteDisplayElement(java.lang.String elname,
java.lang.String attr,
java.lang.String deft,
java.lang.String root,
java.lang.String role,
java.lang.String gloss,
java.lang.String longname,
java.lang.String shortname)
| Method Detail |
|---|
public java.lang.String getElementName()
getElementName in interface AbstractDisplayElementpublic java.lang.String getElementNameLong()
getElementNameLong in interface AbstractDisplayElementpublic java.lang.String getElementNameShort()
getElementNameShort in interface AbstractDisplayElementpublic boolean typeIsEnumeratedVariable()
typeIsEnumeratedVariable in interface AbstractDisplayElementpublic java.lang.String getEnumeratedTypeAttribute()
getEnumeratedTypeAttribute in interface AbstractDisplayElementpublic java.lang.String getTypeRole()
getTypeRole in interface AbstractDisplayElementpublic java.lang.String getTypeOntologyRoot()
getTypeOntologyRoot in interface AbstractDisplayElementpublic java.lang.String getTypeGloss()
getTypeGloss in interface AbstractDisplayElementpublic java.lang.String getTypeDefault()
getTypeDefault in interface AbstractDisplayElement
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||