|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjasi.simple.defi.SimpleElementHandler
public abstract class SimpleElementHandler
The container of a simple element's attributes. This example does not extend an element bean, it implements the element interface only and contains an element adapter.
| Field Summary | |
|---|---|
protected ElementAdapter |
listener
The element listener. |
| Fields inherited from interface jasi.sim.basic.element.Element |
|---|
COMPARATOR |
| Constructor Summary | |
|---|---|
protected |
SimpleElementHandler()
Construct container of a simple element's attributes. |
protected |
SimpleElementHandler(Id id)
Construct container of a simple element's attributes. |
| Method Summary | |
|---|---|
int |
compareTo(Element o)
Compares this object with the specified object for order. |
Element |
delete()
Delete this simple element. |
java.lang.String[] |
getHistory()
Get the history attribute. |
java.lang.String |
getHistory(int index)
Get an indexed item of this element's history. |
Id |
getId()
Retrieve the element's ID. |
SimValue |
getKey()
Returns this simulation element external key. |
java.lang.String |
getValue()
Get the value attribute. |
boolean |
isDeleted()
Check the existence of this element. |
void |
registered(Elements elements)
Set the listener for property changes and element manager of this element. |
void |
setHistory(int index,
java.lang.String item)
Set an indexed item of this element's history. |
void |
setHistory(java.lang.String[] history)
Set the history attribute. |
void |
setId(Id id)
Set the element's ID. |
void |
setKey(SimValue key)
Set this simulation element external key. |
void |
setValue(java.lang.String value)
Set the value attribute. |
java.lang.String |
toString()
Returns a string representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jasi.simple.model.SimpleObject |
|---|
emptyContent, fillContent, readContent |
| Field Detail |
|---|
protected ElementAdapter listener
| Constructor Detail |
|---|
protected SimpleElementHandler()
protected SimpleElementHandler(Id id)
id - The simulation element's ID.| Method Detail |
|---|
public Element delete()
delete in interface ElementAbstractElementBean.delete()public java.lang.String toString()
toString in class java.lang.Objectpublic final void setValue(java.lang.String value)
value - The new value of the attribute.public final java.lang.String getValue()
public final java.lang.String getHistory(int index)
index - The index.
public final void setHistory(int index,
java.lang.String item)
index - The index.item - The item.public final java.lang.String[] getHistory()
public final void setHistory(java.lang.String[] history)
history - The new value of this attribute.public final SimValue getKey()
getKey in interface Elementpublic final boolean isDeleted()
isDeleted in interface Elementpublic final void registered(Elements elements)
registered in interface Elementelements - The property change listener and element manager.public final void setKey(SimValue key)
setKey in interface Elementkey - The external key.
java.lang.IllegalStateException - Whenever key is already set.public final int compareTo(Element o)
compareTo in interface java.lang.Comparable<Element>o - The element to be compared.
public final Id getId()
getId in interface SimObjectpublic final void setId(Id id)
setId in interface SimObjectid - The ID.
IdAlreadySetException - Whenever ID is already set.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||