|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc für Elexis version 2.1.7.dev vom 01.09.2013 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.unibe.iam.scg.archie.model.DataSet
public class DataSet
Holds objects (which implement the comparable interface) in tabular form. A List of Strings serves as table headings. Cells are denoted by their x and y coordinates. Headings have to be set before content.
IMPORTANT: The dataset's content has to be composed out of data types that implement the Comparable interface. This is to ensure that the contents of the dataset can be sorted properly.
Example Structure of a DataSet:| Heading1| Heading2 | ==================== | Column0 | Column1 | -------------------- Row0 | 0,0 | 0,1 | Row1 | 1,0 | 1,1 |$Id$
Constructor Summary | |
---|---|
DataSet()
Constructs an empty DataSet. |
|
DataSet(java.util.List<java.lang.Comparable<?>[]> content,
java.util.List<java.lang.String> headings)
Constructs a DataSet with a list of objects arrays and a
heading list. |
Method Summary | |
---|---|
void |
addRow(java.lang.Comparable<?>[] row)
Adds an additional row to the dataSet and fills it with the provided row content. |
DataSet |
clone()
|
java.lang.Comparable<?> |
getCell(int x,
int y)
|
java.lang.Comparable<?>[] |
getColumn(int y)
|
java.util.List<java.lang.Comparable<?>[]> |
getContent()
|
java.util.List<java.lang.String> |
getHeadings()
|
java.lang.Comparable<?>[] |
getRow(int x)
|
boolean |
isEmpty()
Checks if the dataset contains any real data or is empty. |
java.util.Iterator<java.lang.Comparable<?>[]> |
iterator()
|
void |
setCell(int x,
int y,
java.lang.Comparable<?> value)
|
void |
setContent(java.util.List<java.lang.Comparable<?>[]> content)
DataSet can be empty, but not null. |
void |
setHeadings(java.util.List<java.lang.String> headings)
Set headings. |
void |
setRow(int x,
java.lang.Comparable<?>[] obj)
|
java.lang.String |
toString()
Creates a string representation of this DataSet. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DataSet()
public DataSet(java.util.List<java.lang.Comparable<?>[]> content, java.util.List<java.lang.String> headings) throws java.lang.IllegalArgumentException
DataSet
with a list of objects arrays and a
heading list.
content
- headings
-
java.lang.IllegalArgumentException
Method Detail |
---|
public void setCell(int x, int y, java.lang.Comparable<?> value)
x
- Row index.y
- Column index.value
- Content.public java.lang.Comparable<?> getCell(int x, int y)
x
- Row index.y
- Column index.
public java.lang.Comparable<?>[] getRow(int x)
x
- Row index.
public void setRow(int x, java.lang.Comparable<?>[] obj)
x
- Row index.obj
- content.public java.lang.Comparable<?>[] getColumn(int y)
y
- Column index.
public void addRow(java.lang.Comparable<?>[] row)
row
- Comparable> Arraypublic java.util.Iterator<java.lang.Comparable<?>[]> iterator()
iterator
in interface java.lang.Iterable<java.lang.Comparable<?>[]>
public java.util.List<java.lang.Comparable<?>[]> getContent()
public void setContent(java.util.List<java.lang.Comparable<?>[]> content)
content
- public java.util.List<java.lang.String> getHeadings()
public void setHeadings(java.util.List<java.lang.String> headings)
setContent
.
headings
- Listpublic java.lang.String toString()
toString
in class java.lang.Object
public boolean isEmpty()
public DataSet clone()
clone
in class java.lang.Object
|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc für Elexis version 2.1.7.dev vom 01.09.2013 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |