public class IlvTriggerBehavior extends IlvSingleBehavior
IlvTriggerBehavior
is used to trigger the setting of
another value.Constructor and Description |
---|
IlvTriggerBehavior(IlvInputStream in)
Reads the behavior from an
IlvInputStream stream. |
IlvTriggerBehavior(IlvTriggerBehavior source)
Creates a new behavior object by copying an existing one.
|
IlvTriggerBehavior(String name,
String target,
String source)
Creates a new trigger behavior object.
|
Modifier and Type | Method and Description |
---|---|
IlvBehavior |
copy()
Returns a copy of the behavior.
|
String |
getSource()
Gets the
source parameter for this behavior object. |
String |
getTarget()
Gets the
target parameter for this behavior object. |
boolean |
isReadable()
Returns
false . |
protected void |
set(IlvGroup group,
String name,
Object value)
Sets the value specified by the
target parameter passed to the
constructor to the value specified by the source parameter of
the constructor. |
void |
setSource(String source)
Sets the
source parameter for this behavior object. |
void |
setTarget(String target)
Sets the
target parameter for this behavior object. |
String |
toString()
Returns a short text describing this behavior object.
|
void |
write(IlvOutputStream out)
Writes the behavior to an
IlvOutputStream . |
get, get, getName, getValueNames, set, setName
attach, detach, getParameter, isOutput, isWritable
public IlvTriggerBehavior(String name, String target, String source)
name
- the name of the new behavior. This name is that of the value whose
setting will trigger the setting of the target
value.target
- the name of the property that will be set to source
when the value of this behavior object is set.source
- the value to which the target
value will be set when
the value of this behavior object is set. This value can be either
a direct value, the name of another property, or an expression.public IlvTriggerBehavior(IlvTriggerBehavior source)
source
- the behavior object to be copied.public IlvTriggerBehavior(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
protected void set(IlvGroup group, String name, Object value) throws IlvValueException
target
parameter passed to the
constructor to the value specified by the source
parameter of
the constructor.set
in class IlvSingleBehavior
group
- the group to which this behavior object is attached.name
- the name of this behavior object.value
- the new value. This value is actually ignored because the
specified value is set only if this behavior object has been set.IlvValueException
- if an error occurred while setting a property.IlvSingleBehavior.set(ilog.views.prototypes.IlvGroup,
java.lang.String[], java.lang.Object[], boolean[])
public void setTarget(String target)
target
parameter for this behavior object.public String getTarget()
target
parameter for this behavior object.public void setSource(String source)
source
parameter for this behavior object.public String getSource()
source
parameter for this behavior object.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.