|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rs.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.GUIComponent rs.sol.soloist.server.guiconfiguration.components.GUICommandComponent
public class GUICommandComponent
Invisible widget used to trigger server-side actions.
Actions are specified with a
Command
object assigned to this widget. The assigned Command
instance will be executed after an event on other widget's output pin
explicitely bound (using the widget binding mechanism) to this widget's
click
input pin (
ipClick()
method). Using the widget binding
mechanism, this widget is able collect required parameters for
command execution, and also, using the same
mecahnism, to provide command execution results to other widgets
in the GUI (which can be used to trigger client-side
effects as well).
Class PerformImmediately
defines more complex execution scenarios. Applying specific execution
scenario can be done with setPerformImmediately(PerformImmediately)
method.
Despite this widget's invisibility, it must have its parent
assigned either explicitely or using the create
method.
The code example that creates server-side action (command) instance
for deletion of object (of the domain class Person), this
widget to trigger the action and collect parameters,
command assignment (via the factory create
method),
parameter binding, and event-action binding is shown bellow:
CmdDestroyObject cmd = new CmdDestroyObject();
cmd.setType(Person.CLASSIFIER);
GUICommandComponent delete = GUICommandComponent.create(parent, cmd);
GUIComponentBinding.create(
personsList.opSelection(), delete, CmdDestroyObject.PROPERTIES.input);
GUIComponentBinding.create(link.opClick(), delete.ipClick());
Nested Class Summary | |
---|---|
static class |
GUICommandComponent.FQPropertyNames
Deprecated. Not for public use. |
static class |
GUICommandComponent.PROPERTIES
Deprecated. Not for public use. |
Field Summary | |
---|---|
static IClass |
CLASSIFIER
UML class reference |
IAttributeValue<Text> |
click
Deprecated. Not for public use. |
IAssociationEndInstance<rs.sol.soloist.server.builtindomains.commands.Command> |
command
Deprecated. Not for public use. |
IAttributeValue<Text> |
commandExecuted
Deprecated. Not for public use. |
IAttributeValue<Text> |
confirmationMessage
Deprecated. Not for public use. |
IAttributeValue<Boolean> |
confirmationRequired
Deprecated. Not for public use. |
IAttributeValue<Text> |
firstParam
Deprecated. Not for public use. |
static java.lang.String |
FQ_TYPE_NAME
Fully qualified UML class name |
IAttributeValue<PerformImmediately> |
performImmediately
Deprecated. Not for public use. |
IAttributeValue<Text> |
redo
Deprecated. Not for public use. |
IAttributeValue<Text> |
result
Deprecated. Not for public use. |
IAttributeValue<Text> |
secondParam
Deprecated. Not for public use. |
IAttributeValue<Text> |
text
Deprecated. Not for public use. |
Fields inherited from class rs.sol.soloist.server.guiconfiguration.construction.GUIComponent |
---|
addStyle, context, description, enabled, init, inputBindings, layoutData, logger, name, outputBindings, ownerTable, parent, removeStyle, show, showInParent, styleName, tooltip, visible |
Constructor Summary | |
---|---|
GUICommandComponent()
|
Method Summary | |
---|---|
void |
constructor()
The domain-specific constructor of the Classifier. |
static GUICommandComponent |
create(GUIContainerComponent parent,
rs.sol.soloist.server.builtindomains.commands.Command cmd)
Deprecated. Not for public use. |
static GUICommandComponent |
create(GUIContainerComponent parent,
rs.sol.soloist.server.builtindomains.commands.Command cmd,
PerformImmediately performImmediately)
Returns new GUICommandComponent with the command
instance and execution scenario, and assigns it to the
given parent. |
void |
execute(rs.sol.soloist.server.uml.concepts.IElement el)
Deprecated. Not for public use. |
rs.sol.soloist.server.builtindomains.commands.Command |
getCommand()
Gets the associated command instance. |
java.lang.String |
getConfirmationMessage()
Returns the confirmation message. |
boolean |
getConfirmationRequired()
Returns whether confirmation is required for command execution on the server. |
PerformImmediately |
getPerformImmediately()
Returns the command's execution scenario. |
java.lang.String |
getText()
Returns the text (label) of this widget. |
java.lang.String |
getTextOrCommandName()
Deprecated. Not for public use. |
ISlot<?> |
ipClick()
Returns the click input pin; when event occurs,
the command is executed with the current state of the
parameter values. |
ISlot<?> |
ipFirstParam()
Returns the firstParam input pin; when event occurs,
the content of the binding message is stored in this widget
internally and used afterwards as a parameter when the assigned
command is executed. |
ISlot<?> |
ipRedo()
Returns the redo input pin; when event occurs,
the action proposed by the execution policy will be performed:
check pre-conditions, execute, or nothing. |
ISlot<?> |
ipSecondParam()
Returns the secondParam input pin; when event occurs,
the content of the binding message is stored in this widget
internally and used afterwards as a parameter when the assigned
command is executed. |
ISlot<?> |
ipText()
Returns the text input pin; when event occurs,
the textual binding message content will become new text
(label) of this widget. |
boolean |
isConfirmationRequired()
Deprecated. Not for public use. |
ISlot<?> |
opClick()
Returns the click output pin; when
event occurs, the command instance will executed on
the server. |
ISlot<?> |
opCommandExecuted()
Returns the commandExecuted output pin; when
command finishes its execution, the notification
empty binding message is provided on this pin to
signal other interested widgets. |
ISlot<?> |
opResult()
Returns the result output pin; when
command finishes its execution, the binding message with the
command's resulting value is provided on this pin. |
void |
setCommand(rs.sol.soloist.server.builtindomains.commands.Command c)
Sets the command instance that will perform server-side actions. |
void |
setConfirmationMessage(java.lang.String message)
Set the confirmation message. |
void |
setConfirmationRequired(boolean required)
Sets whether confirmation is required for command execution on the server. |
void |
setPerformImmediately(PerformImmediately perform)
Sets the command's execution scenario. |
void |
setText(java.lang.String text)
Sets the text (label) of this widget. |
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, 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, 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 IAttributeValue<Text> text
@Deprecated public IAttributeValue<Boolean> confirmationRequired
@Deprecated public IAttributeValue<Text> confirmationMessage
@Deprecated public IAttributeValue<PerformImmediately> performImmediately
@Deprecated public IAttributeValue<Text> firstParam
@Deprecated public IAttributeValue<Text> secondParam
@Deprecated public IAttributeValue<Text> redo
@Deprecated public IAttributeValue<Text> result
@Deprecated public IAttributeValue<Text> commandExecuted
@Deprecated public IAttributeValue<Text> click
public static final java.lang.String FQ_TYPE_NAME
public static final IClass CLASSIFIER
@Deprecated public IAssociationEndInstance<rs.sol.soloist.server.builtindomains.commands.Command> command
Constructor Detail |
---|
public GUICommandComponent()
Method Detail |
---|
public void constructor()
IClassifierInstance
constructor
in interface IClassifierInstance
constructor
in class GUIComponent
@Deprecated public void execute(rs.sol.soloist.server.uml.concepts.IElement el)
@Deprecated public boolean isConfirmationRequired()
@Deprecated public java.lang.String getTextOrCommandName()
public static GUICommandComponent create(GUIContainerComponent parent, rs.sol.soloist.server.builtindomains.commands.Command cmd, PerformImmediately performImmediately)
GUICommandComponent
with the command
instance and execution scenario, and assigns it to the
given parent.
parent
- the parent GUIContainerComponent
widgetcmd
- the command instance for handling server
side actionperformImmediately
- an execution scenario
GUICommandComponent
public ISlot<?> ipText()
text
input pin; when event occurs,
the textual binding message content will become new text
(label) of this widget.
text
input pinGUIComponentBinding
public ISlot<?> ipFirstParam()
firstParam
input pin; when event occurs,
the content of the binding message is stored in this widget
internally and used afterwards as a parameter when the assigned
command is executed.
firstParam
input pinGUIComponentBinding
public ISlot<?> ipSecondParam()
secondParam
input pin; when event occurs,
the content of the binding message is stored in this widget
internally and used afterwards as a parameter when the assigned
command is executed.
secondParam
input pinGUIComponentBinding
public ISlot<?> ipRedo()
redo
input pin; when event occurs,
the action proposed by the execution policy will be performed:
check pre-conditions, execute, or nothing.
The content of the binding message accepted on this pin is of no importance. Only event is what matters.
redo
input pinsetPerformImmediately(PerformImmediately)
,
GUIComponentBinding
public ISlot<?> ipClick()
click
input pin; when event occurs,
the command is executed with the current state of the
parameter values.
The content of the binding message accepted on this pin is of no importance. Only event is what matters.
click
input pinGUIComponentBinding
public ISlot<?> opResult()
result
output pin; when
command finishes its execution, the binding message with the
command's resulting value is provided on this pin.
result
output pinGUIComponentBinding
public ISlot<?> opCommandExecuted()
commandExecuted
output pin; when
command finishes its execution, the notification
empty binding message is provided on this pin to
signal other interested widgets.
commandExecuted
output pinGUIComponentBinding
public ISlot<?> opClick()
click
output pin; when
event occurs, the command instance will executed on
the server.
click
output pinGUIComponentBinding
public java.lang.String getText()
setText(String)
public void setText(java.lang.String text)
text
- the new text (label) of this widgetpublic boolean getConfirmationRequired()
setConfirmationRequired(boolean)
public void setConfirmationRequired(boolean required)
required
- a boolean that specifies whether confirmation
is required for command execution on the serverpublic java.lang.String getConfirmationMessage()
setConfirmationMessage(String)
public void setConfirmationMessage(java.lang.String message)
message
- the confirmation messagepublic PerformImmediately getPerformImmediately()
setPerformImmediately(PerformImmediately)
public void setPerformImmediately(PerformImmediately perform)
perform
- the command's execution scenariopublic rs.sol.soloist.server.builtindomains.commands.Command getCommand()
setCommand(Command)
public void setCommand(rs.sol.soloist.server.builtindomains.commands.Command c)
c
- the new command instance@Deprecated public static GUICommandComponent create(GUIContainerComponent parent, rs.sol.soloist.server.builtindomains.commands.Command cmd)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |