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

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.GUITextFeature
                          extended by rs.sol.soloist.server.guiconfiguration.style.GUINumberTextFeature
All Implemented Interfaces:
rs.sol.soloist.server.uml.concepts.IElement, IClassifierInstance, IClassInstance, IRTElement

public class GUINumberTextFeature
extends GUITextFeature

A GUISettingFeature that provides format and pattern for displaying numerical values in the GUI.

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

Nested Class Summary
static class GUINumberTextFeature.FQPropertyNames
          Deprecated. Not for public use.
static class GUINumberTextFeature.PROPERTIES
          Deprecated. Not for public use.
 
Field Summary
static IClass CLASSIFIER
          UML class reference
 IAttributeValue<Text> customPattern
          Deprecated. Not for public use.
 IAttributeValue<GUINumberFormat> format
          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.GUITextFeature
attrName, getFromType, isFixed, textValue
 
Fields inherited from class rs.sol.soloist.server.guiconfiguration.style.GUISettingFeature
complain, description, name, ownerContext, ownerSetting
 
Constructor Summary
GUINumberTextFeature()
           
 
Method Summary
 void constructor()
          The domain-specific constructor of the Classifier.
static GUINumberTextFeature create(GUIContext context, GUINumberFormat f, java.lang.String pattern)
          Returns new GUINumberTextFeature with the specified format and pattern and assigns it to the specified context.
static GUINumberTextFeature create(GUIItemSetting setting, GUINumberFormat f, java.lang.String pattern)
          Returns new GUINumberTextFeature with the specified format and pattern and assigns it to the specified setting.
 rs.sol.soloist.client.common.info.element.TextInfo createInfo(rs.sol.soloist.server.uml.concepts.IElement el, IElementPresentationProvider epp)
          Deprecated. Not for public use.
 java.lang.String getCustomPattern()
          Returns the custom pattern of this feature.
 GUINumberFormat getFormat()
          Returns the format of this feature.
 java.lang.String getValue(rs.sol.soloist.server.uml.concepts.IElement el)
          Returns the number representation of the specified element.
 void setCustomPattern(java.lang.String customPattern)
          Sets the custom pattern to this feature.
 void setFormat(GUINumberFormat format)
          Sets the format to this feature.
 
Methods inherited from class rs.sol.soloist.server.guiconfiguration.style.GUITextFeature
create, createDescription, createDescription, createDescription, createDescriptionFromType, createFixedDescription, createFixedName, createFixedSeparator, createFixedTooltip, createFromType, createName, createName, createName, createNameFromType, createSeparator, createSeparator, createSeparator, createSeparatorFromType, createTooltip, createTooltip, createTooltipFromType, getAttributeName, getFixed, getFromType, getGetFromType, getText, getTextValue, isElementSpecific, isValidSlot, setAttributeName, setFixed, setGetFromType, setTextValue
 
Methods inherited from class rs.sol.soloist.server.guiconfiguration.style.GUISettingFeature
getComplain, getContext, getDescription, getName, 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

format

@Deprecated
public IAttributeValue<GUINumberFormat> format
Deprecated. Not for public use.

customPattern

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

GUINumberTextFeature

public GUINumberTextFeature()
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 GUITextFeature

getValue

public java.lang.String getValue(rs.sol.soloist.server.uml.concepts.IElement el)
Returns the number representation of the specified element.

Overrides:
getValue in class GUITextFeature
Parameters:
el - the element for which the number representation should be retrieved
Returns:
the number representation of the specified element

createInfo

@Deprecated
public rs.sol.soloist.client.common.info.element.TextInfo createInfo(rs.sol.soloist.server.uml.concepts.IElement el,
                                                                                IElementPresentationProvider epp)
Deprecated. Not for public use.

Overrides:
createInfo in class GUITextFeature

create

public static GUINumberTextFeature create(GUIContext context,
                                          GUINumberFormat f,
                                          java.lang.String pattern)
Returns new GUINumberTextFeature with the specified format and pattern and assigns it to the specified context.

Parameters:
context - the context to which new feature should be assigned to
f - the format of the feature (DECIMAL, PERCENT, SCIENTIFIC, CUSTOM)
pattern - the custom pattern
Returns:
new GUINumberTextFeature

create

public static GUINumberTextFeature create(GUIItemSetting setting,
                                          GUINumberFormat f,
                                          java.lang.String pattern)
Returns new GUINumberTextFeature with the specified format and pattern and assigns it to the specified setting.

Parameters:
setting - the setting to which new feature should be assigned to
f - the format of the feature (DECIMAL, PERCENT, SCIENTIFIC, CUSTOM)
pattern - the custom pattern
Returns:
new GUINumberTextFeature

getCustomPattern

public java.lang.String getCustomPattern()
Returns the custom pattern of this feature.

Returns:
the custom pattern of this feature

getFormat

public GUINumberFormat getFormat()
Returns the format of this feature.

Returns:
the format of this feature

setCustomPattern

public void setCustomPattern(java.lang.String customPattern)
Sets the custom pattern to this feature.

Parameters:
customPattern - the custom pattern

setFormat

public void setFormat(GUINumberFormat format)
Sets the format to this feature.

Parameters:
format - the format