rs.sol.soloist.server.guiconfiguration.elementcomponents
Class GUIMultiFileUplaod

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.construction.GUIComponent
                      extended by rs.sol.soloist.server.guiconfiguration.components.GUIContainerComponent
                          extended by rs.sol.soloist.server.guiconfiguration.components.GUIDynamicContentsPanel
                              extended by rs.sol.soloist.server.guiconfiguration.elementcomponents.GUIMultiFileUplaod
All Implemented Interfaces:
IElementPresentationProvider, IUpdatable, rs.sol.soloist.server.uml.concepts.IElement, IClassifierInstance, IClassInstance, IRTElement

public class GUIMultiFileUplaod
extends GUIDynamicContentsPanel

A special type of GUIDynamicContentsPanel that provides editing of the file collection for the object accepted on (inherited) element input pin (GUIDynamicContentsPanel.ipElement() method). The precondition is that the received object's class has an association (with * multiplicity) toward file container class. That association must be specified using setFileAssocEndName(String) method. The file container class must hold a file in an attribute specified by setFileAttributeName(String) method. Addind and removing files to and from the collection is done by commands. These commands must also be specified. It is done by using setAddFileCommand(Command) method and by setRemoveFileCommand(Command) method.

Author:
SOL Expert Group
See Also:
GUIDynamicContentsPanel

Nested Class Summary
static class GUIMultiFileUplaod.FQPropertyNames
          Deprecated. Not for public use.
static class GUIMultiFileUplaod.PROPERTIES
          Deprecated. Not for public use.
 
Field Summary
 IAssociationEndInstance<rs.sol.soloist.server.builtindomains.commands.Command> addFileCommand
          Deprecated. Not for public use.
static IClass CLASSIFIER
          UML class reference
 IAttributeValue<Text> fileAssocEndName
          Deprecated. Not for public use.
 IAttributeValue<Text> fileAttributeName
          Deprecated. Not for public use.
static java.lang.String FQ_TYPE_NAME
          Fully qualified UML class name
 IAssociationEndInstance<rs.sol.soloist.server.builtindomains.commands.Command> removeFileCommand
          Deprecated. Not for public use.
 
Fields inherited from class rs.sol.soloist.server.guiconfiguration.components.GUIDynamicContentsPanel
element, logger, refreshContents
 
Fields inherited from class rs.sol.soloist.server.guiconfiguration.components.GUIContainerComponent
back, children, forward, input, next, output, previous, refresh, reset, submit, visibleChild
 
Fields inherited from class rs.sol.soloist.server.guiconfiguration.construction.GUIComponent
addStyle, context, description, enabled, init, inputBindings, layoutData, name, outputBindings, ownerTable, parent, removeStyle, show, showInParent, styleName, tooltip, visible
 
Constructor Summary
GUIMultiFileUplaod()
           
 
Method Summary
 void constructor()
          The domain-specific constructor of the Classifier.
static GUIMultiFileUplaod create(GUIContainerComponent parent, java.lang.String fileAssocEndName, java.lang.String fileAttributeName, rs.sol.soloist.server.builtindomains.commands.Command addFileCommand, rs.sol.soloist.server.builtindomains.commands.Command removeFileCommand)
          Returns new GUIMultiFileUpload that works with the given file-holing class association end, file attribute, add and remove file commands, and assigns it to the given parent.
 rs.sol.soloist.server.builtindomains.commands.Command getAddFileCommand()
          Returns an add file command.
 java.lang.String getFileAssocEndName()
          Returns file association end name.
 java.lang.String getFileAttributeName()
          Returns the name of the file attribute.
 rs.sol.soloist.server.builtindomains.commands.Command getRemoveFileCommand()
          Returns a remove file command.
 void setAddFileCommand(rs.sol.soloist.server.builtindomains.commands.Command c)
          Sets an add file command.
 void setFileAssocEndName(java.lang.String assocEndName)
          Sets the name of the association end toward the class that holds the file.
 void setFileAttributeName(java.lang.String fileAttributeName)
          Sets the name of the file attribute of the class that holds the file.
 void setRemoveFileCommand(rs.sol.soloist.server.builtindomains.commands.Command c)
          Sets a remove file command.
 
Methods inherited from class rs.sol.soloist.server.guiconfiguration.components.GUIDynamicContentsPanel
createSpecificInfo, getDynamicContents, handle, ipElement, ipRefreshContents, validate
 
Methods inherited from class rs.sol.soloist.server.guiconfiguration.components.GUIContainerComponent
add, addFirst, clear, get, getVisibleChild, ipBack, ipForward, ipNext, ipPrevious, ipRefresh, ipRelay1, ipRelay2, ipReset, ipSubmit, ipVisibleChild, opRelay1, opRelay2, opVisibleChild, remove, removeFirst, setVisibleChild, validateSingleChild
 
Methods inherited from class rs.sol.soloist.server.guiconfiguration.construction.GUIComponent
addStyleNames, addValueToSlot, clearSlot, clone, createInfo, createInfoAlreadyValidated, destructor, fillElementInfo, getApplication, getCommands, getCommands, getCommonOwner, getContext, getDescription, getDescrString, getDragIcon, getEnabled, getFeature, getFeature, getInputBindings, getInputPin, getInputPins, getLabelString, getLargeIcon, getLayoutData, getName, getNameString, getOutputPin, getOutputPins, getOwner, getParts, getSetting, getSmallIcon, getStyle, getSubnodes, getTooltip, getTooltipString, getTypeString, getVisible, ipAddStyle, ipEnabled, ipInit, ipRemoveStyle, ipShow, ipShowInParent, ipVisible, isInputPin, isOutputPin, putFeatureInfo, readElement, readElements, readSlot, readSlotAsInfo, readSubnodes, removeValueFromSlot, setCellAlignment, setCellSize, setCellStyle, setCenter, setContext, setDescription, setDirectionAndSize, setEnabled, setLayoutData, setLeftRightWidth, setName, setRowColumn, setRowColumn, setSize, setSlot, setSlot, setStyle, setTooltip, setTopBottomHeight, setVisible, setXY, toTranslateDescriptors, translatePinName, updateInfo, validateParts, validateParts
 
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

fileAssocEndName

@Deprecated
public final IAttributeValue<Text> fileAssocEndName
Deprecated. Not for public use.

fileAttributeName

@Deprecated
public final IAttributeValue<Text> fileAttributeName
Deprecated. Not for public use.

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


addFileCommand

@Deprecated
public final IAssociationEndInstance<rs.sol.soloist.server.builtindomains.commands.Command> addFileCommand
Deprecated. Not for public use.

removeFileCommand

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

GUIMultiFileUplaod

public GUIMultiFileUplaod()
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 GUIDynamicContentsPanel

create

public static GUIMultiFileUplaod create(GUIContainerComponent parent,
                                        java.lang.String fileAssocEndName,
                                        java.lang.String fileAttributeName,
                                        rs.sol.soloist.server.builtindomains.commands.Command addFileCommand,
                                        rs.sol.soloist.server.builtindomains.commands.Command removeFileCommand)
Returns new GUIMultiFileUpload that works with the given file-holing class association end, file attribute, add and remove file commands, and assigns it to the given parent.

Parameters:
parent - the parent GUIContainerComponent widget
fileAssocEndName - the association end name toward the class that holds the file
fileAttributeName - the file attribute name of the class that holds the file
addFileCommand - add file command
removeFileCommand - remove file command
Returns:
the new GUIMultiFileUpload

getFileAssocEndName

public java.lang.String getFileAssocEndName()
Returns file association end name.

Returns:
file association end name
See Also:
setFileAssocEndName(String)

setFileAssocEndName

public void setFileAssocEndName(java.lang.String assocEndName)
Sets the name of the association end toward the class that holds the file.

Parameters:
assocEndName - the name of the association end

getFileAttributeName

public java.lang.String getFileAttributeName()
Returns the name of the file attribute.

Returns:
the name of the file attribute
See Also:
setFileAttributeName(String)

setFileAttributeName

public void setFileAttributeName(java.lang.String fileAttributeName)
Sets the name of the file attribute of the class that holds the file.

Parameters:
fileAttributeName - the name of the file attribute

getAddFileCommand

public rs.sol.soloist.server.builtindomains.commands.Command getAddFileCommand()
Returns an add file command.

Returns:
an add file command
See Also:
setAddFileCommand(Command)

setAddFileCommand

public void setAddFileCommand(rs.sol.soloist.server.builtindomains.commands.Command c)
Sets an add file command.

Parameters:
c - an add file command

getRemoveFileCommand

public rs.sol.soloist.server.builtindomains.commands.Command getRemoveFileCommand()
Returns a remove file command.

Returns:
a remove file command
See Also:
setRemoveFileCommand(Command)

setRemoveFileCommand

public void setRemoveFileCommand(rs.sol.soloist.server.builtindomains.commands.Command c)
Sets a remove file command.

Parameters:
c - a remove file command