|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.wisc.trace.urcsdk.client.pret.AbstractInteractor
public abstract class AbstractInteractor
AbstractInteractor is the abstract form of an interactor.
It provides the common functionality that all interactors must possess.
| Field Summary | |
|---|---|
protected boolean |
calculable
The boolean value indicating whether or not this interactor is calculable
by the URC. |
protected java.lang.String |
cohesion
cohesion is the level of grouping for this interactor. |
protected java.lang.String |
domain
id is the String value of this interactors domain as derived from the
PreT XML document. |
protected boolean |
executable
The boolean value indicating whether or not this interactor is executable
by the URC. |
protected java.lang.String |
id
id is the String value of this interactors ID as derived from the
PreT XML document. |
protected int |
navindex
navindex is the int value of this interactor in the tabbing order. |
protected boolean |
readable
The boolean value indicating whether or not this interactor is readable
by the URC. |
protected ElementRef |
ref
ref is the ElementRef object that points to this interactors
bound socket element. |
protected org.w3c.dom.Element |
rootElement
The DOM Element object that represents the XML element this interactor
is built from in the PreT document. |
protected IUISocketElement |
socketElement
socketElement is the IUISocketElement representation of this
interactor's bound socket element. |
protected Widget |
widget
The Widget object that is the renderable component of this interactor. |
protected boolean |
writeable
The boolean value indicating whether or not this interactor is writeable
by the URC. |
| Constructor Summary | |
|---|---|
AbstractInteractor()
Creates a new empty AbstractInteractor. |
|
AbstractInteractor(org.w3c.dom.Element rootElement,
IUISocketElement socketElement)
Creates a new AbstractInteractor instance. |
|
| Method Summary | |
|---|---|
java.lang.String |
getDomain()
|
java.lang.String |
getID()
Returns the ID of this interactor as found in the PreT document. |
int |
getNavindex()
Returns the int value indicating this interactor's navindex (set by setNavindex). |
java.lang.String |
getPretDomain()
Returns the domain of this interactor as found in the PreT document. |
ElementRef |
getRef()
Returns the ElementRef object that references the socket element bound
to this interactor. |
ElementRef |
getSelfRef()
Returns the ref of this interactor as found in the PreT document. |
IUISocketElement |
getSocketElement()
getSocketElement returns the socket element that is bound to this interactor. |
java.lang.Object |
getUIComponent()
getUIComponent returns the UI component that represents this
interactor. |
void |
parse()
Parses the interactor starting from the root element (specified by called setRootElement). |
void |
parse(org.w3c.dom.Element rootElement)
parse parses the XML for this interactor and converts the data into programmatically
accessible objects. |
void |
setCalculable(boolean calculate)
|
void |
setID(java.lang.String id)
Set this interactor's ID. |
void |
setNavindex(int i)
Sets the navindex for this interactor. |
void |
setRootElement(org.w3c.dom.Element rootElement)
Sets the root element of this interactor for parsing purposes. |
void |
setSocketElement(IUISocketElement e)
setIUISocketElement sets the interactor's bound socket element. |
void |
setWidget(Widget w)
Sets this interactor's renderable widget to the value specified. |
void |
updateExecutable(boolean execute)
Update Executable state of this Interactor |
void |
updateReadable(boolean read)
Update Readable state of this Interactor |
void |
updateResources()
|
void |
updateValue()
updateValue is called to set the value to the latest value of the
bound socket element. |
void |
updateWriteable(boolean write)
Update Writable state of this Interactor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String id
id is the String value of this interactors ID as derived from the
PreT XML document.
protected java.lang.String domain
id is the String value of this interactors domain as derived from the
PreT XML document.
protected Widget widget
Widget object that is the renderable component of this interactor.
protected int navindex
navindex is the int value of this interactor in the tabbing order.
protected java.lang.String cohesion
cohesion is the level of grouping for this interactor.
protected ElementRef ref
ref is the ElementRef object that points to this interactors
bound socket element.
protected IUISocketElement socketElement
socketElement is the IUISocketElement representation of this
interactor's bound socket element.
protected org.w3c.dom.Element rootElement
Element object that represents the XML element this interactor
is built from in the PreT document.
protected boolean readable
boolean value indicating whether or not this interactor is readable
by the URC.
protected boolean writeable
boolean value indicating whether or not this interactor is writeable
by the URC.
protected boolean executable
boolean value indicating whether or not this interactor is executable
by the URC.
protected boolean calculable
boolean value indicating whether or not this interactor is calculable
by the URC.
| Constructor Detail |
|---|
public AbstractInteractor(org.w3c.dom.Element rootElement,
IUISocketElement socketElement)
throws UrcException
AbstractInteractor instance.
rootElement - an Element valuesocketElement - an IUISocketElement value
UrcExceptionpublic AbstractInteractor()
AbstractInteractor. The use of this constructor is discouraged
since it is easy to miss the setRootElement and setSocketElement
calls that are required to have a functional interactor this way.
| Method Detail |
|---|
public IUISocketElement getSocketElement()
getSocketElement returns the socket element that is bound to this interactor.
getSocketElement in interface IInteractorIUISocketElement value
public void parse(org.w3c.dom.Element rootElement)
throws UrcException
parse parses the XML for this interactor and converts the data into programmatically
accessible objects.
rootElement - an Element value
UrcExceptionpublic int getNavindex()
IInteractorint value indicating this interactor's navindex (set by setNavindex).
getNavindex in interface IInteractorint indicating this interactor's navindex (set by setNavindex).public java.lang.String getID()
String valuepublic java.lang.String getPretDomain()
String valuepublic ElementRef getSelfRef()
String valuepublic ElementRef getRef()
ElementRef object that references the socket element bound
to this interactor.
ElementRef valuepublic void setSocketElement(IUISocketElement e)
IInteractorsetIUISocketElement sets the interactor's bound socket element.
setSocketElement in interface IInteractore - the socket element that is to be bound to this interactor.public void setNavindex(int i)
IInteractor
setNavindex in interface IInteractori - an int value indicating this interactor's place in the tabbing order.public void updateResources()
public java.lang.Object getUIComponent()
IInteractorgetUIComponent returns the UI component that represents this
interactor. For example, if the UI is Swing, the returned component would be
a Swing component such as a JPanel.
getUIComponent in interface IInteractorObject value that is the UI component to be rendered.public void setID(java.lang.String id)
IInteractor
setID in interface IInteractorid - a String value indicating this interactor's ID.public void setWidget(Widget w)
IInteractor
setWidget in interface IInteractorw - a Widget value that is the renderable UI component of this interactor.public void updateValue()
ISocketElementListenerupdateValue is called to set the value to the latest value of the
bound socket element. This should be called by the IUISocketElement when
its value is set. This will allow the Widget to be updated to the latest value.
updateValue in interface ISocketElementListenerpublic void setRootElement(org.w3c.dom.Element rootElement)
IInteractor
setRootElement in interface IInteractorrootElement - a Element object that represents the XML element.public java.lang.String getDomain()
public void parse()
throws UrcException
IInteractorsetRootElement).
parse in interface IInteractorUrcExceptionpublic void setCalculable(boolean calculate)
public void updateReadable(boolean read)
updateReadable in interface ISocketElementListenerread - a Boolean valuepublic void updateWriteable(boolean write)
updateWriteable in interface ISocketElementListenerwrite - a Boolean valuepublic void updateExecutable(boolean execute)
updateExecutable in interface ISocketElementListenerexecute - a Boolean value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||