IlvEventBehavior
rather
than this one to handle user events in a prototype.@Deprecated public class IlvActionBehavior extends IlvSingleBehavior
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.
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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 . |
get, get, getName, getValueNames, set, set, setName
getParameter
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.public void write(IlvOutputStream out) throws IOException
IlvOutputStream
.write
in interface IlvPersistentObject
write
in class IlvSingleBehavior
out
- The output stream.IOException
- thrown when an exception occurs during
the write operation for this object.public IlvBehavior copy()
copy
in class IlvBehavior
public String toString()
toString
in class IlvBehavior
public boolean isReadable()
false
isReadable
in class IlvBehavior
public boolean isWritable()
false
isWritable
in class IlvBehavior
public boolean isOutput()
true
isOutput
in class IlvBehavior
protected void attach(IlvGroup group)
elementName
parameter passed to the constructor.attach
in class IlvBehavior
group
- 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 IlvBehavior
group
- 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.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.