|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.prototypes.IlvBehavior
ilog.views.prototypes.IlvSingleBehavior
ilog.views.prototypes.IlvActionBehavior
IlvEventBehavior rather
than this one to handle user events in a prototype.
public class IlvActionBehavior
The class IlvActionBehavior defines an output value
that is generated when an action event is fired for a specified
graphic object which is part of a group.
When an IlvActionBehavior object is added to a group, it
installs an action listener for a specified graphic element in
the group. Once the listener has been installed, when the user clicks
on the graphic element, the value defined by the
IlvActionBehavior is generated.
An object interactor (usually an IlvButtonInteractor)
must be installed on the graphic object to fire the action event.
IlvEventBehavior,
IlvGroup,
IlvButtonInteractor,
IlvManager.setObjectInteractor(ilog.views.IlvGraphic, ilog.views.IlvObjectInteractor),
Serialized Form| Constructor Summary | |
|---|---|
IlvActionBehavior(IlvActionBehavior source)
Deprecated. Creates a new behavior object by copying an existing one. |
|
IlvActionBehavior(IlvInputStream in)
Deprecated. Reads the behavior from an IlvInputStream stream. |
|
IlvActionBehavior(String name,
String elementName,
String outputValue)
Deprecated. Creates a new action behavior object. |
|
IlvActionBehavior(String name,
String elementName,
String outputValue,
int actionType)
Deprecated. Creates a new action behavior object. |
|
| Method Summary | |
|---|---|
protected void |
attach(IlvGroup group)
Deprecated. Adds an action listener to the graphic element specified by the elementName parameter passed to the constructor. |
IlvBehavior |
copy()
Deprecated. Returns a copy of the behavior. |
protected void |
detach(IlvGroup group)
Deprecated. Removes the action listener from the graphic element specified by the elementName parameter passed to the constructor. |
int |
getActionType()
Deprecated. Gets the actionType parameter for this behavior object. |
String |
getElementName()
Deprecated. Returns the elementName parameter for this behavior object. |
String |
getOutputValue()
Deprecated. Gets the outputValue parameter for this behavior object. |
boolean |
isOutput()
Deprecated. Returns true |
boolean |
isReadable()
Deprecated. Returns false |
boolean |
isWritable()
Deprecated. Returns false |
void |
setActionType(int actionType)
Deprecated. Sets the actionType parameter for this behavior object. |
void |
setElementName(String elementName)
Deprecated. Sets the elementName parameter for this behavior object. |
void |
setOutputValue(String outputValue)
Deprecated. Sets the outputValue parameter for this behavior object. |
String |
toString()
Deprecated. Returns a short text describing this behavior object. |
void |
write(IlvOutputStream out)
Deprecated. Writes the behavior to an IlvOutputStream. |
| Methods inherited from class ilog.views.prototypes.IlvSingleBehavior |
|---|
get, get, getName, getValueNames, set, set, setName |
| Methods inherited from class ilog.views.prototypes.IlvBehavior |
|---|
getParameter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IlvActionBehavior(String name,
String elementName,
String outputValue,
int actionType)
name - the name of the property that will be generated when
the action is fired.elementName - the name of the graphic element to which an
action listener will be added.outputValue - when the action is fired, the value that is fetched
and copied to the generated value. This value can be either a direct value
(represented by a string), the name of another property, or an expression.actionType - the type of action generated by the object interactor
installed on the graphic element. Possible values are
IlvButtonInteractor.ACTIVATE,
IlvButtonInteractor.ARM,
IlvButtonInteractor.DISARM,
or -1 to fire an event for any action type.
public IlvActionBehavior(String name,
String elementName,
String outputValue)
actionType of -1, which means that
the event will be fired for any action type.
name - the name of the property that will be generated when
the action is fired.elementName - the name of the graphic element to which an
action listener will be added.outputValue - when the action is fired, the value that is fetched
and copied to the generated value. This value can be either a direct value
(represented by a string), the name of another property, or an expression.public IlvActionBehavior(IlvActionBehavior source)
source - the behavior object to be copied.
public IlvActionBehavior(IlvInputStream in)
throws IlvReadFileException
IlvInputStream stream.
This constructor must be called by the
input constructors of subclasses.
in - The input stream.
IlvReadFileException - if the stream format is not correct.| Method Detail |
|---|
public void write(IlvOutputStream out)
throws IOException
IlvOutputStream.
write in interface IlvPersistentObjectwrite in class IlvSingleBehaviorout - The output stream.
IOException - thrown when an exception occurs during
the write operation for this object.public IlvBehavior copy()
copy in class IlvBehaviorpublic String toString()
toString in class IlvBehaviorpublic boolean isReadable()
false
isReadable in class IlvBehaviorpublic boolean isWritable()
false
isWritable in class IlvBehaviorpublic boolean isOutput()
true
isOutput in class IlvBehaviorprotected void attach(IlvGroup group)
elementName parameter passed to the constructor.
attach in class IlvBehaviorgroup - the group to which this behavior object is attached.IlvGroup.addBehavior(ilog.views.prototypes.IlvBehavior)protected void detach(IlvGroup group)
elementName parameter passed to the constructor.
detach in class IlvBehaviorgroup - the group to which this behavior object is attached.IlvGroup.removeBehavior(ilog.views.prototypes.IlvBehavior)public void setElementName(String elementName)
elementName parameter for this behavior object.
public String getElementName()
elementName parameter for this behavior object.
public void setOutputValue(String outputValue)
outputValue parameter for this behavior object.
public String getOutputValue()
outputValue parameter for this behavior object.
public void setActionType(int actionType)
actionType parameter for this behavior object.
public int getActionType()
actionType parameter for this behavior object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||