rs.sol.soloist.server.guiconfiguration.style
Class GUICommandsFeature

java.lang.Object
  extended by rs.sol.soloist.server.uml.commonimplementation.runtime._ClassifierInstance
      extended by rs.sol.soloist.server.uml.commonimplementation.runtime._ClassInstance
          extended by rs.sol.soloist.server.javaimpl.runtime.SOLoistClassInstance
              extended by rs.sol.soloist.server.builtindomains.common.ObjectOfClass
                  extended by rs.sol.soloist.server.guiconfiguration.style.GUISettingFeature
                      extended by rs.sol.soloist.server.guiconfiguration.style.GUICommandsFeature
All Implemented Interfaces:
rs.sol.soloist.server.uml.concepts.IElement, IClassifierInstance, IClassInstance, IRTElement

public class GUICommandsFeature
extends GUISettingFeature

A GUISettingFeature that provides a collection of Commands.

Author:
SOL Expert Group
See Also:
GUIContext, GUIItemSetting, Command

Nested Class Summary
static class GUICommandsFeature.FQPropertyNames
          Deprecated. Not for public use.
static class GUICommandsFeature.PROPERTIES
          Deprecated. Not for public use.
 
Field Summary
static IClass CLASSIFIER
          UML class reference
 IAssociationEndInstance<rs.sol.soloist.server.builtindomains.commands.Command> cmds
          Deprecated. Not for public use.
static java.lang.String FQ_TYPE_NAME
          Fully qualified UML class name
 
Fields inherited from class rs.sol.soloist.server.guiconfiguration.style.GUISettingFeature
complain, description, name, ownerContext, ownerSetting
 
Constructor Summary
GUICommandsFeature()
           
 
Method Summary
 void addCommand(rs.sol.soloist.server.builtindomains.commands.Command c)
          Adds a command to this command feature.
 void clearCommands()
          Clears all commands from this command feature.
 void constructor()
          The domain-specific constructor of the Classifier.
static GUICommandsFeature create(GUIContext context, java.util.List<rs.sol.soloist.server.builtindomains.commands.Command> commands)
          Returns new GUICommandsFeature for specified commands and assigns it to the specified context.
static GUICommandsFeature create(GUIItemSetting setting, java.util.List<rs.sol.soloist.server.builtindomains.commands.Command> commands)
          Returns new GUICommandsFeature for specified commands and assigns it to the specified setting.
 java.lang.Object createInfo(rs.sol.soloist.server.uml.concepts.IElement el, IElementPresentationProvider epp)
          Deprecated. Not for public use.
 java.util.List<rs.sol.soloist.server.builtindomains.commands.Command> getCommands(rs.sol.soloist.server.uml.concepts.IElement el)
          Returns the collection of Commands that accept the given element as a parameter.
 void removeCommand(rs.sol.soloist.server.builtindomains.commands.Command c)
          Removes the command from this command feature.
 
Methods inherited from class rs.sol.soloist.server.guiconfiguration.style.GUISettingFeature
getComplain, getContext, getDescription, getName, isElementSpecific, setComplain, setDescription, setName
 
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

FQ_TYPE_NAME

public static final java.lang.String FQ_TYPE_NAME
Fully qualified UML class name

See Also:
Constant Field Values

CLASSIFIER

public static final IClass CLASSIFIER
UML class reference


cmds

@Deprecated
public IAssociationEndInstance<rs.sol.soloist.server.builtindomains.commands.Command> cmds
Deprecated. Not for public use.
Constructor Detail

GUICommandsFeature

public GUICommandsFeature()
Method Detail

constructor

public void constructor()
Description copied from interface: IClassifierInstance
The domain-specific constructor of the Classifier.

Specified by:
constructor in interface IClassifierInstance
Overrides:
constructor in class GUISettingFeature

getCommands

public java.util.List<rs.sol.soloist.server.builtindomains.commands.Command> getCommands(rs.sol.soloist.server.uml.concepts.IElement el)
Returns the collection of Commands that accept the given element as a parameter.

Parameters:
el - an element for which applicable commands should be retrieved
Returns:
a collection of applicable commands for the specified element

createInfo

@Deprecated
public java.lang.Object createInfo(rs.sol.soloist.server.uml.concepts.IElement el,
                                              IElementPresentationProvider epp)
Deprecated. Not for public use.

Specified by:
createInfo in class GUISettingFeature

create

public static GUICommandsFeature create(GUIContext context,
                                        java.util.List<rs.sol.soloist.server.builtindomains.commands.Command> commands)
Returns new GUICommandsFeature for specified commands and assigns it to the specified context.

Parameters:
context - the context to which new feature should be assigned to
commands - the commands that new feature should be related to
Returns:
new GUICommandsFeature

create

public static GUICommandsFeature create(GUIItemSetting setting,
                                        java.util.List<rs.sol.soloist.server.builtindomains.commands.Command> commands)
Returns new GUICommandsFeature for specified commands and assigns it to the specified setting.

Parameters:
setting - the setting to which new feature should be assigned to
commands - the commands that new feature should be related to
Returns:
new GUICommandsFeature

addCommand

public void addCommand(rs.sol.soloist.server.builtindomains.commands.Command c)
Adds a command to this command feature.

Parameters:
c - the command to be added

removeCommand

public void removeCommand(rs.sol.soloist.server.builtindomains.commands.Command c)
Removes the command from this command feature.

Parameters:
c - the command to be removed

clearCommands

public void clearCommands()
Clears all commands from this command feature.