org.openmdx.ui1.jdo2
Class NumberField

java.lang.Object
  extended by org.oasisopen.jdo2.Identifiable
      extended by org.w3c.jdo2.AbstractObject
          extended by org.openmdx.ui1.jdo2.Element
              extended by org.openmdx.ui1.jdo2.NumberField
All Implemented Interfaces:
Serializable, org.openmdx.base.cci2.BasicObject, org.openmdx.base.cci2.ContextCapable, org.openmdx.base.cci2.ExtentCapable, org.openmdx.compatibility.view1.cci2.ViewCapable, AbstractField, Element, LabelledField, NumberField, ValuedField

public class NumberField
extends Element
implements NumberField

Class NumberField

See Also:
Serialized Form

Nested Class Summary
static class NumberField.Slice
          Slice object hold the NumberField's multivalued attributes
 
Nested classes/interfaces inherited from class org.openmdx.ui1.jdo2.Element
Element.Identity
 
Nested classes/interfaces inherited from class org.w3c.jdo2.AbstractObject
org.w3c.jdo2.AbstractObject.EmbeddedList<E>, org.w3c.jdo2.AbstractObject.EmbeddedSet<E>
 
Nested classes/interfaces inherited from interface org.openmdx.ui1.cci2.Element
Element.Identity
 
Field Summary
static List<String> CLASS
          Define the model class org::openmdx::ui1::NumberField
 
Fields inherited from class org.openmdx.ui1.jdo2.Element
BASE_CLASS
 
Constructor Summary
NumberField()
           
 
Method Summary
 String getBackColor()
          Retrieves the possibly null value for the optional attribute backColor.
 String getColor()
          Retrieves the possibly null value for the optional attribute color.
 String getDataBindingName()
          Retrieves the possibly null value for the optional attribute dataBindingName.
 int getDecimalPlaces()
          Retrieves the value for the attribute decimalPlaces.
 String getDefaultValue()
          Retrieves the possibly null value for the optional attribute defaultValue.
 List<String> getEventHandler()
          Retrieves a list containing all the elements for the attribute eventHandler.
 String getFeatureName()
          Retrieves the possibly null value for the optional attribute featureName.
 String getFontColor()
          Retrieves the possibly null value for the optional attribute fontColor.
 String getFontName()
          Retrieves the value for the attribute fontName.
 BigDecimal getFontSize()
          Retrieves the value for the attribute fontSize.
 BigDecimal getIncrement()
          Retrieves the value for the attribute increment.
 List<String> getLabel()
          Retrieves a list containing all the elements for the attribute label.
 BigDecimal getMaxValue()
          Retrieves the value for the attribute maxValue.
 BigDecimal getMinValue()
          Retrieves the value for the attribute minValue.
 String getMultiplicity()
          Retrieves the value for the attribute multiplicity.
 String getQualifiedFeatureName()
          Retrieves the possibly null value for the optional attribute qualifiedFeatureName.
 List<String> getShortLabel()
          Retrieves a list containing all the elements for the attribute shortLabel.
 int getSkipRow()
          Retrieves the value for the attribute skipRow.
 int getSpanRow()
          Retrieves the value for the attribute spanRow.
 boolean isFilterable()
          Retrieves the value for the attribute filterable.
 boolean isFontBold()
          Retrieves the value for the attribute fontBold.
 boolean isFontItalic()
          Retrieves the value for the attribute fontItalic.
 boolean isFontStrikeout()
          Retrieves the value for the attribute fontStrikeout.
 boolean isFontUnderline()
          Retrieves the value for the attribute fontUnderline.
 boolean isHasThousandsSeparator()
          Retrieves the value for the attribute hasThousandsSeparator.
 boolean isSortable()
          Retrieves the value for the attribute sortable.
static Element.Identity newIdentity(org.openmdx.base.cci2.Segment.Identity segment, boolean idIsPersistent, String id)
           
protected  org.w3c.jdo2.AbstractObject.Slice newSlice(int index)
           
protected  List<String> openmdxjdoGetClass()
          Retrieve the model class
protected  int openmdxjdoGetSize(int field)
           
protected  void openmdxjdoSetSize(int field, int size)
           
static Element.Identity openmdxjdoToIdentity(org.oasisopen.spi2.ObjectId objectId)
           
 void setBackColor(String backColor)
          Sets a new value for the attribute backColor.
 void setColor(String color)
          Sets a new value for the attribute color.
 void setDataBindingName(String dataBindingName)
          Sets a new value for the attribute dataBindingName.
 void setDecimalPlaces(int decimalPlaces)
          Sets a new value for the attribute decimalPlaces.
 void setDefaultValue(String defaultValue)
          Sets a new value for the attribute defaultValue.
 void setEventHandler(String... eventHandler)
          Clears eventHandler and adds the given value(s).
 void setFeatureName(String featureName)
          Sets a new value for the attribute featureName.
 void setFilterable(boolean filterable)
          Sets a new value for the attribute filterable.
 void setFontBold(boolean fontBold)
          Sets a new value for the attribute fontBold.
 void setFontColor(String fontColor)
          Sets a new value for the attribute fontColor.
 void setFontItalic(boolean fontItalic)
          Sets a new value for the attribute fontItalic.
 void setFontName(String fontName)
          Sets a new value for the attribute fontName.
 void setFontSize(BigDecimal fontSize)
          Sets a new value for the attribute fontSize.
 void setFontStrikeout(boolean fontStrikeout)
          Sets a new value for the attribute fontStrikeout.
 void setFontUnderline(boolean fontUnderline)
          Sets a new value for the attribute fontUnderline.
 void setHasThousandsSeparator(boolean hasThousandsSeparator)
          Sets a new value for the attribute hasThousandsSeparator.
 void setIncrement(BigDecimal increment)
          Sets a new value for the attribute increment.
 void setLabel(String... label)
          Clears label and adds the given value(s).
 void setMaxValue(BigDecimal maxValue)
          Sets a new value for the attribute maxValue.
 void setMinValue(BigDecimal minValue)
          Sets a new value for the attribute minValue.
 void setMultiplicity(String multiplicity)
          Sets a new value for the attribute multiplicity.
 void setQualifiedFeatureName(String qualifiedFeatureName)
          Sets a new value for the attribute qualifiedFeatureName.
 void setShortLabel(String... shortLabel)
          Clears shortLabel and adds the given value(s).
 void setSkipRow(int skipRow)
          Sets a new value for the attribute skipRow.
 void setSortable(boolean sortable)
          Sets a new value for the attribute sortable.
 void setSpanRow(int spanRow)
          Sets a new value for the attribute spanRow.
 
Methods inherited from class org.openmdx.ui1.jdo2.Element
addToSegment, addToSegment, getCreatedAt, getCreatedBy, getIconKey, getIdentity, getMimeType, getModifiedAt, getModifiedBy, getToolTip, getView, getView, isAutoGenerated, isChangeable, openmdxjdoGetObjectId, openmdxjdoGetObjectsByParent, openmdxjdoGetSlices, setAutoGenerated, setChangeable, setIconKey, setMimeType, setToolTip
 
Methods inherited from class org.w3c.jdo2.AbstractObject
openmdxjdoClassName, openmdxjdoGetIdentityBuilder, openmdxjdoGetList, openmdxjdoGetObjectsByParent, openmdxjdoGetSet, openmdxjdoGetSparseArray, openmdxjdoNewSlice, openmdxjdoSetArray, openmdxjdoSetCollection, openmdxjdoToArray, openmdxjdoToArray, openmdxjdoValidateElement
 
Methods inherited from class org.oasisopen.jdo2.Identifiable
openmdxjdoGetObject, openmdxjdoGetObjectById, openmdxjdoGetObjectId, openmdxjdoGetObjectSet, openmdxjdoNewObjectId, openmdxjdoNewObjectId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openmdx.ui1.cci2.Element
getIconKey, getMimeType, getToolTip, isAutoGenerated, isChangeable, setAutoGenerated, setChangeable, setIconKey, setMimeType, setToolTip
 
Methods inherited from interface org.openmdx.base.cci2.BasicObject
getCreatedAt, getCreatedBy, getModifiedAt, getModifiedBy
 
Methods inherited from interface org.openmdx.base.cci2.ExtentCapable
getIdentity
 
Methods inherited from interface org.openmdx.compatibility.view1.cci2.ViewCapable
getView, getView
 

Field Detail

CLASS

public static final List<String> CLASS
Define the model class org::openmdx::ui1::NumberField

Constructor Detail

NumberField

public NumberField()
Method Detail

getFontName

public String getFontName()
Retrieves the value for the attribute fontName.

Specified by:
getFontName in interface AbstractField
Returns:
The non-null value for attribute fontName.

setFontName

public void setFontName(String fontName)
Sets a new value for the attribute fontName.

Specified by:
setFontName in interface AbstractField
Parameters:
fontName - The non-null new value for attribute fontName.

getFontColor

public final String getFontColor()
Retrieves the possibly null value for the optional attribute fontColor.

Specified by:
getFontColor in interface AbstractField
Returns:
The possibly null value for attribute fontColor.

setFontColor

public void setFontColor(String fontColor)
Sets a new value for the attribute fontColor.

Specified by:
setFontColor in interface AbstractField
Parameters:
fontColor - The possibly null new value for attribute fontColor.

isHasThousandsSeparator

public boolean isHasThousandsSeparator()
Retrieves the value for the attribute hasThousandsSeparator.

Specified by:
isHasThousandsSeparator in interface NumberField
Returns:
The non-null value for attribute hasThousandsSeparator.

setHasThousandsSeparator

public void setHasThousandsSeparator(boolean hasThousandsSeparator)
Sets a new value for the attribute hasThousandsSeparator.

Specified by:
setHasThousandsSeparator in interface NumberField
Parameters:
hasThousandsSeparator - The non-null new value for attribute hasThousandsSeparator.

isSortable

public boolean isSortable()
Retrieves the value for the attribute sortable.

Specified by:
isSortable in interface ValuedField
Returns:
The non-null value for attribute sortable.

setSortable

public void setSortable(boolean sortable)
Sets a new value for the attribute sortable.

Specified by:
setSortable in interface ValuedField
Parameters:
sortable - The non-null new value for attribute sortable.

getMinValue

public BigDecimal getMinValue()
Retrieves the value for the attribute minValue.

Specified by:
getMinValue in interface NumberField
Returns:
The non-null value for attribute minValue.

setMinValue

public void setMinValue(BigDecimal minValue)
Sets a new value for the attribute minValue.

Specified by:
setMinValue in interface NumberField
Parameters:
minValue - The non-null new value for attribute minValue.

getMultiplicity

public String getMultiplicity()
Retrieves the value for the attribute multiplicity.

Specified by:
getMultiplicity in interface ValuedField
Returns:
The non-null value for attribute multiplicity.

setMultiplicity

public void setMultiplicity(String multiplicity)
Sets a new value for the attribute multiplicity.

Specified by:
setMultiplicity in interface ValuedField
Parameters:
multiplicity - The non-null new value for attribute multiplicity.

getEventHandler

public final List<String> getEventHandler()
Retrieves a list containing all the elements for the attribute eventHandler.

Specified by:
getEventHandler in interface ValuedField
Returns:
A list containing all elements for this attribute.

setEventHandler

public void setEventHandler(String... eventHandler)
Clears eventHandler and adds the given value(s).

This method is equivalent to

   list.clear();
   for(java.lang.String e : attributeName){
     list.add(e);
   }
 

Specified by:
setEventHandler in interface ValuedField
Parameters:
eventHandler - value(s) to be added to eventHandler

getSpanRow

public int getSpanRow()
Retrieves the value for the attribute spanRow.

Specified by:
getSpanRow in interface ValuedField
Returns:
The non-null value for attribute spanRow.

setSpanRow

public void setSpanRow(int spanRow)
Sets a new value for the attribute spanRow.

Specified by:
setSpanRow in interface ValuedField
Parameters:
spanRow - The non-null new value for attribute spanRow.

getDefaultValue

public final String getDefaultValue()
Retrieves the possibly null value for the optional attribute defaultValue.

Specified by:
getDefaultValue in interface ValuedField
Returns:
The possibly null value for attribute defaultValue.

setDefaultValue

public void setDefaultValue(String defaultValue)
Sets a new value for the attribute defaultValue.

Specified by:
setDefaultValue in interface ValuedField
Parameters:
defaultValue - The possibly null new value for attribute defaultValue.

getBackColor

public final String getBackColor()
Retrieves the possibly null value for the optional attribute backColor.

Specified by:
getBackColor in interface AbstractField
Returns:
The possibly null value for attribute backColor.

setBackColor

public void setBackColor(String backColor)
Sets a new value for the attribute backColor.

Specified by:
setBackColor in interface AbstractField
Parameters:
backColor - The possibly null new value for attribute backColor.

getMaxValue

public BigDecimal getMaxValue()
Retrieves the value for the attribute maxValue.

Specified by:
getMaxValue in interface NumberField
Returns:
The non-null value for attribute maxValue.

setMaxValue

public void setMaxValue(BigDecimal maxValue)
Sets a new value for the attribute maxValue.

Specified by:
setMaxValue in interface NumberField
Parameters:
maxValue - The non-null new value for attribute maxValue.

getFeatureName

public final String getFeatureName()
Retrieves the possibly null value for the optional attribute featureName.

Specified by:
getFeatureName in interface ValuedField
Returns:
The possibly null value for attribute featureName.

setFeatureName

public void setFeatureName(String featureName)
Sets a new value for the attribute featureName.

Specified by:
setFeatureName in interface ValuedField
Parameters:
featureName - The possibly null new value for attribute featureName.

getIncrement

public BigDecimal getIncrement()
Retrieves the value for the attribute increment.

Specified by:
getIncrement in interface NumberField
Returns:
The non-null value for attribute increment.

setIncrement

public void setIncrement(BigDecimal increment)
Sets a new value for the attribute increment.

Specified by:
setIncrement in interface NumberField
Parameters:
increment - The non-null new value for attribute increment.

getQualifiedFeatureName

public final String getQualifiedFeatureName()
Retrieves the possibly null value for the optional attribute qualifiedFeatureName.

Specified by:
getQualifiedFeatureName in interface ValuedField
Returns:
The possibly null value for attribute qualifiedFeatureName.

setQualifiedFeatureName

public void setQualifiedFeatureName(String qualifiedFeatureName)
Sets a new value for the attribute qualifiedFeatureName.

Specified by:
setQualifiedFeatureName in interface ValuedField
Parameters:
qualifiedFeatureName - The possibly null new value for attribute qualifiedFeatureName.

getSkipRow

public int getSkipRow()
Retrieves the value for the attribute skipRow.

Specified by:
getSkipRow in interface ValuedField
Returns:
The non-null value for attribute skipRow.

setSkipRow

public void setSkipRow(int skipRow)
Sets a new value for the attribute skipRow.

Specified by:
setSkipRow in interface ValuedField
Parameters:
skipRow - The non-null new value for attribute skipRow.

getLabel

public final List<String> getLabel()
Retrieves a list containing all the elements for the attribute label.

Specified by:
getLabel in interface LabelledField
Returns:
A list containing all elements for this attribute.

setLabel

public void setLabel(String... label)
Clears label and adds the given value(s).

This method is equivalent to

   list.clear();
   for(java.lang.String e : attributeName){
     list.add(e);
   }
 

Specified by:
setLabel in interface LabelledField
Parameters:
label - value(s) to be added to label

isFontBold

public boolean isFontBold()
Retrieves the value for the attribute fontBold.

Specified by:
isFontBold in interface AbstractField
Returns:
The non-null value for attribute fontBold.

setFontBold

public void setFontBold(boolean fontBold)
Sets a new value for the attribute fontBold.

Specified by:
setFontBold in interface AbstractField
Parameters:
fontBold - The non-null new value for attribute fontBold.

getFontSize

public BigDecimal getFontSize()
Retrieves the value for the attribute fontSize.

Specified by:
getFontSize in interface AbstractField
Returns:
The non-null value for attribute fontSize.

setFontSize

public void setFontSize(BigDecimal fontSize)
Sets a new value for the attribute fontSize.

Specified by:
setFontSize in interface AbstractField
Parameters:
fontSize - The non-null new value for attribute fontSize.

getDataBindingName

public final String getDataBindingName()
Retrieves the possibly null value for the optional attribute dataBindingName.

Specified by:
getDataBindingName in interface ValuedField
Returns:
The possibly null value for attribute dataBindingName.

setDataBindingName

public void setDataBindingName(String dataBindingName)
Sets a new value for the attribute dataBindingName.

Specified by:
setDataBindingName in interface ValuedField
Parameters:
dataBindingName - The possibly null new value for attribute dataBindingName.

getDecimalPlaces

public int getDecimalPlaces()
Retrieves the value for the attribute decimalPlaces.

Specified by:
getDecimalPlaces in interface NumberField
Returns:
The non-null value for attribute decimalPlaces.

setDecimalPlaces

public void setDecimalPlaces(int decimalPlaces)
Sets a new value for the attribute decimalPlaces.

Specified by:
setDecimalPlaces in interface NumberField
Parameters:
decimalPlaces - The non-null new value for attribute decimalPlaces.

isFontStrikeout

public boolean isFontStrikeout()
Retrieves the value for the attribute fontStrikeout.

Specified by:
isFontStrikeout in interface AbstractField
Returns:
The non-null value for attribute fontStrikeout.

setFontStrikeout

public void setFontStrikeout(boolean fontStrikeout)
Sets a new value for the attribute fontStrikeout.

Specified by:
setFontStrikeout in interface AbstractField
Parameters:
fontStrikeout - The non-null new value for attribute fontStrikeout.

isFontItalic

public boolean isFontItalic()
Retrieves the value for the attribute fontItalic.

Specified by:
isFontItalic in interface AbstractField
Returns:
The non-null value for attribute fontItalic.

setFontItalic

public void setFontItalic(boolean fontItalic)
Sets a new value for the attribute fontItalic.

Specified by:
setFontItalic in interface AbstractField
Parameters:
fontItalic - The non-null new value for attribute fontItalic.

isFontUnderline

public boolean isFontUnderline()
Retrieves the value for the attribute fontUnderline.

Specified by:
isFontUnderline in interface AbstractField
Returns:
The non-null value for attribute fontUnderline.

setFontUnderline

public void setFontUnderline(boolean fontUnderline)
Sets a new value for the attribute fontUnderline.

Specified by:
setFontUnderline in interface AbstractField
Parameters:
fontUnderline - The non-null new value for attribute fontUnderline.

getShortLabel

public final List<String> getShortLabel()
Retrieves a list containing all the elements for the attribute shortLabel.

Specified by:
getShortLabel in interface LabelledField
Returns:
A list containing all elements for this attribute.

setShortLabel

public void setShortLabel(String... shortLabel)
Clears shortLabel and adds the given value(s).

This method is equivalent to

   list.clear();
   for(java.lang.String e : attributeName){
     list.add(e);
   }
 

Specified by:
setShortLabel in interface LabelledField
Parameters:
shortLabel - value(s) to be added to shortLabel

getColor

public final String getColor()
Retrieves the possibly null value for the optional attribute color.

Specified by:
getColor in interface AbstractField
Returns:
The possibly null value for attribute color.

setColor

public void setColor(String color)
Sets a new value for the attribute color.

Specified by:
setColor in interface AbstractField
Parameters:
color - The possibly null new value for attribute color.

isFilterable

public boolean isFilterable()
Retrieves the value for the attribute filterable.

Specified by:
isFilterable in interface ValuedField
Returns:
The non-null value for attribute filterable.

setFilterable

public void setFilterable(boolean filterable)
Sets a new value for the attribute filterable.

Specified by:
setFilterable in interface ValuedField
Parameters:
filterable - The non-null new value for attribute filterable.

openmdxjdoGetSize

protected int openmdxjdoGetSize(int field)
Overrides:
openmdxjdoGetSize in class Element

openmdxjdoSetSize

protected void openmdxjdoSetSize(int field,
                                 int size)
Overrides:
openmdxjdoSetSize in class Element

newSlice

protected org.w3c.jdo2.AbstractObject.Slice newSlice(int index)
Overrides:
newSlice in class Element

openmdxjdoGetClass

protected List<String> openmdxjdoGetClass()
Retrieve the model class

Overrides:
openmdxjdoGetClass in class Element
Returns:
the model class
See Also:
NumberField.CLASS

newIdentity

public static Element.Identity newIdentity(org.openmdx.base.cci2.Segment.Identity segment,
                                           boolean idIsPersistent,
                                           String id)

openmdxjdoToIdentity

public static Element.Identity openmdxjdoToIdentity(org.oasisopen.spi2.ObjectId objectId)


This software is published under the BSD license. Copyright © 2006-2008, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.