Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc for Elexis version 2.1.7.dev vom 17.03.2013

ag.ion.bion.officelayer.internal.text.table
Class TextTableCellPropertyStore

java.lang.Object
  extended by ag.ion.bion.officelayer.internal.beans.AbstractPropertyStore
      extended by ag.ion.bion.officelayer.internal.text.table.TextTableCellPropertyStore
All Implemented Interfaces:
IProperties, IPropertyStore, IPropertyDescriptionElement, ITextTableCellProperties, ITextTableCellPropertyStore

public class TextTableCellPropertyStore
extends AbstractPropertyStore
implements ITextTableCellPropertyStore

"Construct" to store the properties of a table cell, so that even when deleteing the original cell (and thus loosing the reference), we keep the cell information.


Field Summary
 
Fields inherited from interface ag.ion.bion.officelayer.text.ITextTableCellProperties
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_TOP, ALIGN_UNDEFINED, TYPE_ID
 
Constructor Summary
TextTableCellPropertyStore(ITextTableCell cell)
          Constructs the TextTableCellPropertyStore
 
Method Summary
 int getBackColor()
          Returns the cell background color.
 java.lang.String getCellStyle()
          Returns style of the cell.
 int getNumberFormat()
          Returns number format.
 IProperties getProperties()
          Returns the properties.
 short getVertOrient()
          Returns the vertical alignment.
 void setBackColor(int color)
          Sets the CellBackColor, this overwrites previously stored values.
 void setCellStyle(java.lang.String cellStyle)
          Sets style of the cell.
 void setNumberFormat(int numberFormat)
          Sets number format.
 void setVertOrient(short align)
          Sets the vertical alignment in the cell, this overwrites previously stored values.
 
Methods inherited from class ag.ion.bion.officelayer.internal.beans.AbstractPropertyStore
copyTo, getTypeID, getXPropertySet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ag.ion.bion.officelayer.beans.IProperties
copyTo, getTypeID, getXPropertySet
 

Constructor Detail

TextTableCellPropertyStore

public TextTableCellPropertyStore(ITextTableCell cell)
                           throws TextException
Constructs the TextTableCellPropertyStore

Parameters:
cellXPropertySet - the propertyset of the cell whose properties should be stored
verticalPosition - the column in which teh cell is positioned
horizontalPosition - the row in which the cell is positioned
Throws:
TextException
Method Detail

getProperties

public IProperties getProperties()
Returns the properties.

Specified by:
getProperties in interface IPropertyStore
Specified by:
getProperties in class AbstractPropertyStore
Returns:
the properties

setBackColor

public void setBackColor(int color)
                  throws TextException
Sets the CellBackColor, this overwrites previously stored values.

Specified by:
setBackColor in interface ITextTableCellProperties
Parameters:
cell - background color
Throws:
TextException - if the property is not available

setVertOrient

public void setVertOrient(short align)
                   throws TextException
Sets the vertical alignment in the cell, this overwrites previously stored values.

Specified by:
setVertOrient in interface ITextTableCellProperties
Parameters:
vertical - alignment
Throws:
TextException - if the property is not available

setCellStyle

public void setCellStyle(java.lang.String cellStyle)
                  throws TextException
Sets style of the cell.

Specified by:
setCellStyle in interface ITextTableCellProperties
Parameters:
cellStyle - style of the cell
Throws:
TextException - if the property can not be modified

getCellStyle

public java.lang.String getCellStyle()
                              throws TextException
Returns style of the cell.

Specified by:
getCellStyle in interface ITextTableCellProperties
Returns:
style of the cell
Throws:
TextException - if the property is not available

setNumberFormat

public void setNumberFormat(int numberFormat)
                     throws TextException
Sets number format.

Specified by:
setNumberFormat in interface ITextTableCellProperties
Parameters:
numberFormat - number format
Throws:
TextException - if the property can not be modified

getNumberFormat

public int getNumberFormat()
                    throws TextException
Returns number format.

Specified by:
getNumberFormat in interface ITextTableCellProperties
Returns:
number format
Throws:
TextException - if the property is not available

getBackColor

public int getBackColor()
                 throws TextException
Returns the cell background color.

Specified by:
getBackColor in interface ITextTableCellProperties
Returns:
cell background color
Throws:
TextException - if the property is not available

getVertOrient

public short getVertOrient()
                    throws TextException
Returns the vertical alignment.

Specified by:
getVertOrient in interface ITextTableCellProperties
Returns:
vertical alignment
Throws:
TextException - if the property is not available.

Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc for Elexis version 2.1.7.dev vom 17.03.2013