org.openmdx.ui1.jdo2
Class TextBox

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.TextBox
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, TextBox, ValuedField

public class TextBox
extends Element
implements TextBox

Class TextBox

See Also:
Serialized Form

Nested Class Summary
static class TextBox.Slice
          Slice object hold the TextBox'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::TextBox
 
Fields inherited from class org.openmdx.ui1.jdo2.Element
BASE_CLASS
 
Constructor Summary
TextBox()
           
 
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.
 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.
 List<String> getLabel()
          Retrieves a list containing all the elements for the attribute label.
 int getMaxLength()
          Retrieves the value for the attribute maxLength.
 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.
 short getTextAlign()
          Retrieves the value for the attribute textAlign.
 boolean isAcceptsTab()
          Retrieves the value for the attribute acceptsTab.
 boolean isAutoSize()
          Retrieves the value for the attribute autoSize.
 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 isMultiline()
          Retrieves the value for the attribute multiline.
 boolean isPassword()
          Retrieves the value for the attribute isPassword.
 boolean isSortable()
          Retrieves the value for the attribute sortable.
 boolean isTabStop()
          Retrieves the value for the attribute tabStop.
 boolean isWordWrap()
          Retrieves the value for the attribute wordWrap.
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 setAcceptsTab(boolean acceptsTab)
          Sets a new value for the attribute acceptsTab.
 void setAutoSize(boolean autoSize)
          Sets a new value for the attribute autoSize.
 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 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 setLabel(String... label)
          Clears label and adds the given value(s).
 void setMaxLength(int maxLength)
          Sets a new value for the attribute maxLength.
 void setMultiline(boolean multiline)
          Sets a new value for the attribute multiline.
 void setMultiplicity(String multiplicity)
          Sets a new value for the attribute multiplicity.
 void setPassword(boolean isPassword)
          Sets a new value for the attribute isPassword.
 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.
 void setTabStop(boolean tabStop)
          Sets a new value for the attribute tabStop.
 void setTextAlign(short textAlign)
          Sets a new value for the attribute textAlign.
 void setWordWrap(boolean wordWrap)
          Sets a new value for the attribute wordWrap.
 
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::TextBox

Constructor Detail

TextBox

public TextBox()
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.

isWordWrap

public boolean isWordWrap()
Retrieves the value for the attribute wordWrap.

Specified by:
isWordWrap in interface TextBox
Returns:
The non-null value for attribute wordWrap.

setWordWrap

public void setWordWrap(boolean wordWrap)
Sets a new value for the attribute wordWrap.

Specified by:
setWordWrap in interface TextBox
Parameters:
wordWrap - The non-null new value for attribute wordWrap.

isAutoSize

public boolean isAutoSize()
Retrieves the value for the attribute autoSize.

Specified by:
isAutoSize in interface TextBox
Returns:
The non-null value for attribute autoSize.

setAutoSize

public void setAutoSize(boolean autoSize)
Sets a new value for the attribute autoSize.

Specified by:
setAutoSize in interface TextBox
Parameters:
autoSize - The non-null new value for attribute autoSize.

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.

isPassword

public boolean isPassword()
Retrieves the value for the attribute isPassword.

Specified by:
isPassword in interface TextBox
Returns:
The non-null value for attribute isPassword.

setPassword

public void setPassword(boolean isPassword)
Sets a new value for the attribute isPassword.

Specified by:
setPassword in interface TextBox
Parameters:
isPassword - The non-null new value for attribute isPassword.

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

getMaxLength

public int getMaxLength()
Retrieves the value for the attribute maxLength.

Specified by:
getMaxLength in interface TextBox
Returns:
The non-null value for attribute maxLength.

setMaxLength

public void setMaxLength(int maxLength)
Sets a new value for the attribute maxLength.

Specified by:
setMaxLength in interface TextBox
Parameters:
maxLength - The non-null new value for attribute maxLength.

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.

getTextAlign

public short getTextAlign()
Retrieves the value for the attribute textAlign.

Specified by:
getTextAlign in interface TextBox
Returns:
The non-null value for attribute textAlign.

setTextAlign

public void setTextAlign(short textAlign)
Sets a new value for the attribute textAlign.

Specified by:
setTextAlign in interface TextBox
Parameters:
textAlign - The non-null new value for attribute textAlign.

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.

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.

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.

isTabStop

public boolean isTabStop()
Retrieves the value for the attribute tabStop.

Specified by:
isTabStop in interface TextBox
Returns:
The non-null value for attribute tabStop.

setTabStop

public void setTabStop(boolean tabStop)
Sets a new value for the attribute tabStop.

Specified by:
setTabStop in interface TextBox
Parameters:
tabStop - The non-null new value for attribute tabStop.

isAcceptsTab

public boolean isAcceptsTab()
Retrieves the value for the attribute acceptsTab.

Specified by:
isAcceptsTab in interface TextBox
Returns:
The non-null value for attribute acceptsTab.

setAcceptsTab

public void setAcceptsTab(boolean acceptsTab)
Sets a new value for the attribute acceptsTab.

Specified by:
setAcceptsTab in interface TextBox
Parameters:
acceptsTab - The non-null new value for attribute acceptsTab.

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.

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.

isMultiline

public boolean isMultiline()
Retrieves the value for the attribute multiline.

Specified by:
isMultiline in interface TextBox
Returns:
The non-null value for attribute multiline.

setMultiline

public void setMultiline(boolean multiline)
Sets a new value for the attribute multiline.

Specified by:
setMultiline in interface TextBox
Parameters:
multiline - The non-null new value for attribute multiline.

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:
TextBox.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.