public class IlvConnectBehavior extends IlvSingleBehavior
IlvConnectBehavior
is used to connect
an output property to an input property of the same group.
The effect is the same as if the group was connected to itself
using the subscribe
method.
Constructor and Description |
---|
IlvConnectBehavior(IlvConnectBehavior source)
Creates a new behavior object by copying an existing one.
|
IlvConnectBehavior(IlvInputStream in)
Reads the behavior from an
IlvInputStream stream. |
IlvConnectBehavior(String name,
String outputProperty)
Creates a new connect behavior object.
|
Modifier and Type | Method and Description |
---|---|
protected void |
attach(IlvGroup group)
Connects the
outputProperty parameter passed to the constructor
to the property with the same name as this behavior object. |
IlvBehavior |
copy()
Returns a copy of the behavior.
|
protected void |
detach(IlvGroup group)
Breaks the connection established by
attach . |
String |
getOutputProperty()
Gets the
outputProperty parameter for this behavior object. |
boolean |
isReadable()
Returns
false |
boolean |
isWritable()
Returns
false |
void |
setName(String name)
Sets the name of the behavior.
|
void |
setOutputProperty(String outputProperty)
Sets the
outputProperty 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, set
getParameter, isOutput
public IlvConnectBehavior(String name, String outputProperty)
name
- the name of this behavior object. This name will be
used as the destination of the subscription.outputProperty
- the output value. This value will be used
as the source of the subscription.public IlvConnectBehavior(IlvConnectBehavior source)
source
- the behavior object to be copied.public IlvConnectBehavior(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
protected void attach(IlvGroup group)
outputProperty
parameter passed to the constructor
to the property with the same name as this behavior object.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)
attach
.detach
in class IlvBehavior
group
- the group to which this behavior object is attached.IlvGroup.removeBehavior(ilog.views.prototypes.IlvBehavior)
public void setOutputProperty(String outputProperty)
outputProperty
parameter for this behavior object.public String getOutputProperty()
outputProperty
parameter for this behavior object.public void setName(String name)
setName
in class IlvSingleBehavior
name
- The new name.IlvGroup.renameValue(java.lang.String, java.lang.String)
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.