rs.sol.soloist.server.guiconfiguration.components
Class GUIImageComponent

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.GUIImageComponent
All Implemented Interfaces:
IElementPresentationProvider, IUpdatable, rs.sol.soloist.server.uml.concepts.IElement, IClassifierInstance, IClassInstance, IRTElement

public class GUIImageComponent
extends GUIComponent

A widget that displays an image. The content of this widget can be specified by calling setPicture(java.io.File) method, setURL(String) method, or in the construction phase with factory create method.

Author:
SOL Expert Group

Nested Class Summary
static class GUIImageComponent.FQPropertyNames
          Deprecated. Not for public use.
static class GUIImageComponent.PROPERTIES
          Deprecated. Not for public use.
 
Field Summary
static IClass CLASSIFIER
          UML class reference
static java.lang.String FQ_TYPE_NAME
          Fully qualified UML class name
 IAttributeValue<Picture> picture
          Deprecated. Not for public use.
 IAttributeValue<Text> url
          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
GUIImageComponent()
           
 
Method Summary
 void constructor()
          The domain-specific constructor of the Classifier.
static GUIImageComponent create(GUIContainerComponent parent)
          Deprecated. Not for public use.
static GUIImageComponent create(GUIContainerComponent parent, Picture picture)
          Returns new GUIImageComponent with the given picture and assigns it to the given parent.
static GUIImageComponent create(GUIContainerComponent parent, Picture picture, int row, int column)
          Deprecated. Not for public use.
static GUIImageComponent create(GUIContainerComponent parent, Picture picture, LayoutData layoutData)
          Returns new GUIImageComponent with the given picture, places it in the parent's layout according to the given LayoutData, and assigns it to the given parent.
static GUIImageComponent create(GUIContainerComponent parent, java.lang.String url)
          Returns new GUIImageComponent with the picture with a given URL and assigns it to the given parent.
static GUIImageComponent create(GUIContainerComponent parent, java.lang.String url, int row, int column)
          Deprecated. Not for public use.
static GUIImageComponent create(GUIContainerComponent parent, java.lang.String url, LayoutData layoutData)
          Returns new GUIImageComponent with the picture with a given URL, places it in the parent's layout according to the given LayoutData, and assigns it to the given parent.
 java.io.File getPicture()
          Returns the picture displayed by this widget.
 java.lang.String getURL()
          Returns the URL of the picture displayed by this widget.
 void setPicture(java.io.File picture)
          Sets the picture displayed by this widget.
 void setURL(java.lang.String url)
          Sets the URL of the picture displayed by this widget.
 
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, handle, 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, validate, 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

picture

@Deprecated
public IAttributeValue<Picture> picture
Deprecated. Not for public use.

url

@Deprecated
public IAttributeValue<Text> url
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

Constructor Detail

GUIImageComponent

public GUIImageComponent()
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 GUIComponent

create

public static GUIImageComponent create(GUIContainerComponent parent,
                                       Picture picture)
Returns new GUIImageComponent with the given picture and assigns it to the given parent.

Parameters:
parent - the parent GUIContainerComponent widget
picture - new widget's picture
Returns:
new GUIImageComponent

create

public static GUIImageComponent create(GUIContainerComponent parent,
                                       java.lang.String url)
Returns new GUIImageComponent with the picture with a given URL and assigns it to the given parent.

Parameters:
parent - the parent GUIContainerComponent widget
url - new widget's picture URL
Returns:
new GUIImageComponent

create

public static GUIImageComponent create(GUIContainerComponent parent,
                                       Picture picture,
                                       LayoutData layoutData)
Returns new GUIImageComponent with the given picture, places it in the parent's layout according to the given LayoutData, and assigns it to the given parent.

Parameters:
parent - the parent GUIContainerComponent widget
picture - new widget's picture
layoutData - the layout data of the new image widget
Returns:
new GUIImageComponent

create

public static GUIImageComponent create(GUIContainerComponent parent,
                                       java.lang.String url,
                                       LayoutData layoutData)
Returns new GUIImageComponent with the picture with a given URL, places it in the parent's layout according to the given LayoutData, and assigns it to the given parent.

Parameters:
parent - the parent GUIContainerComponent widget
url - new widget's picture URL
layoutData - the layout data of the new image widget
Returns:
new GUIImageComponent

getPicture

public java.io.File getPicture()
Returns the picture displayed by this widget.

Returns:
the picture displayed by this widget
See Also:
setPicture(java.io.File)

setPicture

public void setPicture(java.io.File picture)
                throws java.io.IOException
Sets the picture displayed by this widget.

Parameters:
picture - the file with a picture displayed by this widget
Throws:
java.io.IOException

getURL

public java.lang.String getURL()
Returns the URL of the picture displayed by this widget.

Returns:
the URL of the picture displayed by this widget
See Also:
setURL(String)

setURL

public void setURL(java.lang.String url)
Sets the URL of the picture displayed by this widget.

Parameters:
url - the URL of the picture displayed by this widget

create

@Deprecated
public static GUIImageComponent create(GUIContainerComponent parent,
                                                  Picture picture,
                                                  int row,
                                                  int column)
Deprecated. Not for public use.


create

@Deprecated
public static GUIImageComponent create(GUIContainerComponent parent,
                                                  java.lang.String url,
                                                  int row,
                                                  int column)
Deprecated. Not for public use.


create

@Deprecated
public static GUIImageComponent create(GUIContainerComponent parent)
Deprecated. Not for public use.