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 TextTablePropertyStore

java.lang.Object
  extended by ag.ion.bion.officelayer.internal.beans.AbstractPropertyStore
      extended by ag.ion.bion.officelayer.internal.text.table.TextTablePropertyStore
All Implemented Interfaces:
IProperties, IPropertyStore, IPropertyDescriptionElement, ITextTableProperties, ITextTablePropertyStore

public class TextTablePropertyStore
extends AbstractPropertyStore
implements ITextTablePropertyStore

The TextTablePropertyStore. Actually does nothing more than that : get a table and stores its properties (noteably : the proeprties are not changned


Field Summary
 
Fields inherited from interface ag.ion.bion.officelayer.text.ITextTableProperties
TYPE_ID
 
Constructor Summary
TextTablePropertyStore(ITextTable table)
          Construcs the texttable property store.
 
Method Summary
 int[] getCellWidths()
          Gets the width of the cells.
 int getColumns()
          Returns a count (the number) of the columns in the table.
 IProperties getProperties()
          Returns the properties.
 int getRows()
          Get number (count) of rows in the table, "mirrored" by the property store.
 TextTableColumnsSeparator[] getTableColumnSeparators()
          Gets the column seperator of the table
 long getWidth()
          Gets the currently set width of the table,
 boolean repeatHeadline()
          Checks if the headline is to be repeated.
 void setCellWidths(int[] width)
          Sets the cell width (this method overwrites previous settings)
 void setColumns(int number)
          Sets the number of columns in the tables.
 void setRepeatHeadline(boolean repeatHeadline)
          Sets the repeat haedline propertie (so this indicates if the headline is to be repeated over serveral pages).
 void setRows(int number)
          Sets the number of rows of this table.
 void setTableColumnSeparators(TextTableColumnsSeparator[] textTableColumnsSeparators)
          Sets the column seperators of the table
 void setWidth(long width)
          Sets the table width (this method overwrites previous settings).
 
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

TextTablePropertyStore

public TextTablePropertyStore(ITextTable table)
                       throws TextException
Construcs the texttable property store.

Parameters:
table - the table from which to gain the properties
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

setCellWidths

public void setCellWidths(int[] width)
Sets the cell width (this method overwrites previous settings)

Specified by:
setCellWidths in interface ITextTablePropertyStore
Parameters:
width - an array containing the individual cell width

setWidth

public void setWidth(long width)
Sets the table width (this method overwrites previous settings).

Specified by:
setWidth in interface ITextTablePropertyStore
Parameters:
width - the table width to be set

setRows

public void setRows(int number)
Sets the number of rows of this table.

Specified by:
setRows in interface ITextTablePropertyStore
Parameters:
rows - the number of rows

setColumns

public void setColumns(int number)
Sets the number of columns in the tables.

Specified by:
setColumns in interface ITextTablePropertyStore
Parameters:
number - the number of columns to be set to the table

setRepeatHeadline

public void setRepeatHeadline(boolean repeatHeadline)
                       throws TextException
Sets the repeat haedline propertie (so this indicates if the headline is to be repeated over serveral pages).

Specified by:
setRepeatHeadline in interface ITextTableProperties
Parameters:
repeatHeadline - if set to true the headline is repeated otherwise not
Throws:
TextException - if the property can not be set

repeatHeadline

public boolean repeatHeadline()
                       throws TextException
Checks if the headline is to be repeated.

Specified by:
repeatHeadline in interface ITextTableProperties
Returns:
the indicator if the headline is to be repeated
Throws:
TextException - if the property is not available

getCellWidths

public int[] getCellWidths()
                    throws TextException
Gets the width of the cells.

Specified by:
getCellWidths in interface ITextTableProperties
Returns:
the cell-width set currently to the table.
Throws:
TextException - if the property is not available

getWidth

public long getWidth()
              throws TextException
Gets the currently set width of the table,

Specified by:
getWidth in interface ITextTableProperties
Returns:
the width currently set to the table
Throws:
TextException - if the property is not available

getTableColumnSeparators

public TextTableColumnsSeparator[] getTableColumnSeparators()
                                                     throws TextException
Gets the column seperator of the table

Specified by:
getTableColumnSeparators in interface ITextTableProperties
Returns:
the column seperators
Throws:
TextException - if the property is not available

setTableColumnSeparators

public void setTableColumnSeparators(TextTableColumnsSeparator[] textTableColumnsSeparators)
                              throws TextException
Sets the column seperators of the table

Specified by:
setTableColumnSeparators in interface ITextTableProperties
Parameters:
columnseperators - the columnseperators to be set to the table
Throws:
TextException - if the property is not available

getColumns

public int getColumns()
Returns a count (the number) of the columns in the table.

Specified by:
getColumns in interface ITextTablePropertyStore
Returns:
the count of the columns of the table if value is -1 then the table can't be build

getRows

public int getRows()
Get number (count) of rows in the table, "mirrored" by the property store.

Specified by:
getRows in interface ITextTablePropertyStore
Returns:
the count of the rows of the table if value is -1 then the table can't be build

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