|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrs.sol.soloist.server.uml.commonimplementation.runtime._ClassifierInstance
rs.sol.soloist.server.uml.commonimplementation.runtime._ClassInstance
rs.sol.soloist.server.javaimpl.runtime.SOLoistClassInstance
rs.sol.soloist.server.builtindomains.common.ObjectOfClass
rs.sol.soloist.server.guiconfiguration.construction.GUIComponentBinding
public class GUIComponentBinding
A specification of a binding (interaction) between a pair of widget pins.
It defines a path for propagation of events: when the value of a source
pin of is changed, its value is implicitly propagated to the destination
pin (it is set to the same value). Each widget has its own set
of input and output pins. Output pins are actually a substitution
for events and could be fetched using methods with
op
name prefix on the widget instances.
Input pins correspond to actions that should be invoked after event occurs
and could be fetched using methods with ip
name prefix.
Widget interaction is specfied by connecting output pin (event) of one widget
with input pin (action) of the other. Widget binding mechanism is a
replacement for the classical mechanism of event-handlers.
There are four forms of binding connections.
The first one (create(ISlot, ISlot)
method)
is used for connecting two pins that belong to regular widgets:
GUIComponentBinding.create(textBox.opValue(), label.ipLabel());
The second one (create(ISlot, GUIComponent, IProperty)
method)
is used to connect widget's output pin with a command's input pin.
Instead of a pin of a command, it uses an instance of GUICommandComponent
(which can also be a button or a menu item) and a property of the command itself.
GUIComponentBinding.create(textBox.opValue(), btn, CmdDestroyObject.PROPERTIES.input);
The third form (create(GUIComponent, IProperty, ISlot)
method)
is the same as the second but with opposite direction.
GUIComponentBinding.create(btn, CmdCreateObject.PROPERTIES.output, listOfObjects.ipElement());
The final form (create(GUIComponent, IProperty, GUIComponent, IProperty)
method)
is used to connect two commands. It uses two
GUICommandComponent
instances and two Command
pins.
GUIComponentBinding.create(btn1, CmdCreateObject.PROPERTIES.output, btn2, CmdSetSlot.PROPERTIES.source);
Nested Class Summary | |
---|---|
static class |
GUIComponentBinding.FQPropertyNames
Deprecated. Not for public use. |
static class |
GUIComponentBinding.PROPERTIES
Deprecated. Not for public use. |
Field Summary | |
---|---|
static IClass |
CLASSIFIER
UML class reference |
IAssociationEndInstance<GUIComponent> |
destComponent
Deprecated. Not for public use. |
IAttributeValue<Text> |
destPropertyName
Deprecated. Not for public use. |
static java.lang.String |
FQ_TYPE_NAME
Fully qualified UML class name |
IAssociationEndInstance<GUIBindingsFeature> |
ownerFeature
Deprecated. Not for public use. |
IAssociationEndInstance<GUIComponent> |
sourceComponent
Deprecated. Not for public use. |
IAttributeValue<Text> |
sourcePropertyName
Deprecated. Not for public use. |
Constructor Summary | |
---|---|
GUIComponentBinding()
Deprecated. Not for public use. |
Method Summary | |
---|---|
void |
constructor()
The domain-specific constructor of the Classifier. |
static GUIComponentBinding |
create(GUIBindingsFeature f,
java.lang.String pin1,
GUIComponent c2,
java.lang.String pin2)
Deprecated. Not for public use. |
static GUIComponentBinding |
create(GUIComponent c1,
IProperty p1,
GUIComponent c2,
IProperty p2)
Creates a binding that connects the source command's output pin and the destination command's input pin. |
static GUIComponentBinding |
create(GUIComponent c1,
IProperty p1,
ISlot pin2)
Creates a binding that connects the source command's output pin and the destination widget's input pin. |
static GUIComponentBinding |
create(GUIComponent c1,
java.lang.String pin1,
GUIComponent c2,
java.lang.String pin2)
Deprecated. Not for public use. |
static GUIComponentBinding |
create(ISlot pin1,
GUIComponent c2,
IProperty p2)
Creates a binding that connects the source widget's output pin and the destination command's input pin. |
static GUIComponentBinding |
create(ISlot pin1,
ISlot pin2)
Creates a binding that connects the source widget's output pin and the destination widget's input pin. |
static GUIComponentBinding |
create(rs.sol.soloist.server.builtindomains.common.ObjectOfClass o,
java.lang.String name1,
GUIComponent c2,
java.lang.String name2)
Deprecated. Not for public use. |
rs.sol.soloist.client.common.info.ComponentBindingInfo |
createInfo()
Deprecated. Not for public use. |
ISlot |
getDestPin()
Deprecated. Not for public use. |
static rs.sol.soloist.server.builtindomains.common.ObjectOfClass |
getPinOwner(ISlot pin,
boolean source)
Deprecated. Not for public use. |
ISlot |
getSourcePin()
Deprecated. Not for public use. |
void |
setDestPin(ISlot slot)
Deprecated. Not for public use. |
void |
setDestPin(java.lang.String name)
Deprecated. Not for public use. |
void |
setSourcePin(ISlot slot)
Deprecated. Not for public use. |
void |
setSourcePin(java.lang.String name)
Deprecated. Not for public use. |
void |
validate()
Deprecated. Not for public use. |
Methods inherited from class rs.sol.soloist.server.builtindomains.common.ObjectOfClass |
---|
handle |
Methods inherited from class rs.sol.soloist.server.javaimpl.runtime.SOLoistClassInstance |
---|
destroy, equals, getAssociationEndInstance, getAssociationEndInstances, getAttributeValue, getAttributeValues, getMyClass, getMyID, getSlot, getSlot, getSlots, getUMLClass, hashCode, isMarkedAsDeleted, toString |
Methods inherited from class rs.sol.soloist.server.uml.commonimplementation.runtime._ClassInstance |
---|
accept, accept, exists, getAssociationEndInstance, getAssociationEndInstance, getAssociationEndInstance, getClassifier, hasIdentity, isClassInstance, isDataTypeInstance, isEqualTo, makeClone, markAsDeleted |
Methods inherited from class rs.sol.soloist.server.uml.commonimplementation.runtime._ClassifierInstance |
---|
conformsTo, copySlots, copySlots, destructor, getAttributeValue, getAttributeValue, getAttributeValue, getClassifierFQName, getClassifierUQName, getFirstCommonGeneralizer, getFirstCommonGeneralizerFQName, getFirstCommonGeneralizerUQName, getMElement, getSlot, getSlot, isDirectInstanceOf, isDirectInstanceOf, isInstanceOf, isInstanceOf, isKindOf, isModelElement, isRTElement |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface rs.sol.soloist.server.uml.concepts.runtime.IClassifierInstance |
---|
conformsTo, copySlots, copySlots, destructor, getAttributeValue, getAttributeValue, getClassifierFQName, getClassifierUQName, getFirstCommonGeneralizer, getFirstCommonGeneralizerFQName, getFirstCommonGeneralizerUQName, getSlot, getSlot, isDirectInstanceOf, isDirectInstanceOf, isInstanceOf, isInstanceOf |
Methods inherited from interface rs.sol.soloist.server.uml.concepts.runtime.IRTElement |
---|
getMElement |
Methods inherited from interface rs.sol.soloist.server.uml.concepts.IElement |
---|
isKindOf, isModelElement, isRTElement |
Field Detail |
---|
@Deprecated public final IAttributeValue<Text> sourcePropertyName
@Deprecated public final IAttributeValue<Text> destPropertyName
public static final java.lang.String FQ_TYPE_NAME
public static final IClass CLASSIFIER
@Deprecated public final IAssociationEndInstance<GUIBindingsFeature> ownerFeature
@Deprecated public final IAssociationEndInstance<GUIComponent> sourceComponent
@Deprecated public final IAssociationEndInstance<GUIComponent> destComponent
Constructor Detail |
---|
@Deprecated public GUIComponentBinding()
Method Detail |
---|
public void constructor()
IClassifierInstance
constructor
in interface IClassifierInstance
constructor
in class rs.sol.soloist.server.builtindomains.common.ObjectOfClass
@Deprecated public void setSourcePin(ISlot slot)
@Deprecated public void setSourcePin(java.lang.String name)
@Deprecated public ISlot getSourcePin()
@Deprecated public void setDestPin(ISlot slot)
@Deprecated public void setDestPin(java.lang.String name)
@Deprecated public ISlot getDestPin()
public static GUIComponentBinding create(ISlot pin1, ISlot pin2)
pin1
- the source widget's ouput pinpin2
- the destination widget's input pin
GUIComponentBinding
object that connects
the source output pin and destination input pin@Deprecated public void validate()
@Deprecated public static rs.sol.soloist.server.builtindomains.common.ObjectOfClass getPinOwner(ISlot pin, boolean source)
public static GUIComponentBinding create(ISlot pin1, GUIComponent c2, IProperty p2)
pin1
- the source widget's ouput pinc2
- the destination command widgetp2
- the destination command input pin property
GUIComponentBinding
object that connects
the source output pin and destination input pinpublic static GUIComponentBinding create(GUIComponent c1, IProperty p1, ISlot pin2)
c1
- the source command widgetp1
- the source command ouput pin propertypin2
- the destination widget's input pin
GUIComponentBinding
object that connects
the source output pin and destination input pinpublic static GUIComponentBinding create(GUIComponent c1, IProperty p1, GUIComponent c2, IProperty p2)
c1
- the source command widgetp1
- the source command ouput pin propertyc2
- the destination command widgetp2
- the destination command input pin property
GUIComponentBinding
object that connects
the source output pin and destination input pin@Deprecated public static GUIComponentBinding create(rs.sol.soloist.server.builtindomains.common.ObjectOfClass o, java.lang.String name1, GUIComponent c2, java.lang.String name2)
@Deprecated public static GUIComponentBinding create(GUIBindingsFeature f, java.lang.String pin1, GUIComponent c2, java.lang.String pin2)
@Deprecated public static GUIComponentBinding create(GUIComponent c1, java.lang.String pin1, GUIComponent c2, java.lang.String pin2)
@Deprecated public rs.sol.soloist.client.common.info.ComponentBindingInfo createInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |