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
Class TextTableCellProperties

java.lang.Object
  extended by ag.ion.bion.officelayer.internal.beans.AbstractProperties
      extended by ag.ion.bion.officelayer.internal.text.TextTableCellProperties
All Implemented Interfaces:
IProperties, IPropertyDescriptionElement, ITextTableCellProperties

public class TextTableCellProperties
extends AbstractProperties
implements ITextTableCellProperties

Properties of cell of a text table.


Field Summary
 
Fields inherited from interface ag.ion.bion.officelayer.text.ITextTableCellProperties
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_TOP, ALIGN_UNDEFINED, TYPE_ID
 
Constructor Summary
TextTableCellProperties(com.sun.star.beans.XPropertySet xPropertySet)
          Constructs new TextTableCellProperties.
 
Method Summary
 int getBackColor()
          Returns the cell background color.
 java.lang.String getCellStyle()
          Returns style of the cell.
static java.lang.String[] getDefaultPropertyKeys()
          Returns the default property keys.
 int getNumberFormat()
          Returns number format.
static IPropertyKey[] getPossiblyPropertyKeys()
          Returns the possible property keys.
 java.lang.String getTypeID()
          Returns the id of the property.
 short getVertOrient()
          Returns the vertical alignment.
 void setBackColor(int color)
          Sets cell background color.
 void setCellStyle(java.lang.String cellStyle)
          Sets style of the cell.
 void setNumberFormat(int numberFormat)
          Sets number format.
 void setVertOrient(short align)
          Sets vertical alignment in the cell.
 
Methods inherited from class ag.ion.bion.officelayer.internal.beans.AbstractProperties
copyTo, 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, getXPropertySet
 

Constructor Detail

TextTableCellProperties

public TextTableCellProperties(com.sun.star.beans.XPropertySet xPropertySet)
                        throws java.lang.IllegalArgumentException
Constructs new TextTableCellProperties.

Parameters:
xPropertySet - OpenOffice.org XPropertySet interface
Throws:
java.lang.IllegalArgumentException - if the OpenOffice.org interface is not valid
Method Detail

getPossiblyPropertyKeys

public static IPropertyKey[] getPossiblyPropertyKeys()
Returns the possible property keys.

Returns:
the possible property keys

getDefaultPropertyKeys

public static java.lang.String[] getDefaultPropertyKeys()
Returns the default property keys.

Returns:
the default property keys

getTypeID

public java.lang.String getTypeID()
Returns the id of the property.

Specified by:
getTypeID in interface IProperties
Specified by:
getTypeID in class AbstractProperties
Returns:
the id of the property

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

setBackColor

public void setBackColor(int color)
                  throws TextException
Sets cell background color.

Specified by:
setBackColor in interface ITextTableCellProperties
Parameters:
color - color to be used
Throws:
TextException - if the property can not be modified

setVertOrient

public void setVertOrient(short align)
                   throws TextException
Sets vertical alignment in the cell.

Specified by:
setVertOrient in interface ITextTableCellProperties
Parameters:
align - alignment to be used
Throws:
TextException - if the property can not be modified

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