public class Bio7Grid
extends java.lang.Object
Constructor and Description |
---|
Bio7Grid() |
Modifier and Type | Method and Description |
---|---|
static void |
createColumn(int index,
int width,
java.lang.String titel)
Creates a column in the current grid.
|
static void |
createRow(int index,
int height)
Creates a row in the current grid.
|
static void |
createSheet(int columns,
int rows,
java.lang.String name)
Creates a new sheet from the specified columns, rows.
|
static int |
getColumnCount()
Returns the amount of columns.
|
static org.eclipse.nebula.widgets.grid.Grid |
getGrid()
Returns the current Bio7 table component for a custom sheet.
|
static int |
getItemCount()
Returns the amount of rows.
|
static java.lang.String[] |
getSelection()
Returns the selection as a String array of the active sheet.
|
static java.lang.String |
getValue(int row,
int column)
Returns the sheet value from the specified item (row, column).
|
static java.lang.String[][] |
getValues()
Returns the values of the current active sheet.
|
static void |
setColor(int row,
int column,
int r,
int g,
int b)
Sets the background colors in the current active sheet.
|
static void |
setImage(int row,
int column,
org.eclipse.swt.graphics.Image image)
Creates an image in the selected grid cell.
|
static void |
setValue(int row,
int column,
java.lang.String val)
Set the value at the specified item (row, column).
|
static void |
setValues(java.lang.String[][] val)
Sets the values in the current active sheet.
|
static org.eclipse.swt.graphics.Image |
toSWTImage(java.awt.image.BufferedImage bufferedImage)
Creates a SWT image from a Java BufferedImage.
|
public static org.eclipse.nebula.widgets.grid.Grid getGrid()
public static void createSheet(int columns, int rows, java.lang.String name)
columns
- the amount of columns.rows
- the amount of rows.name
- the name of the sheet.public static void setValues(java.lang.String[][] val)
val
- a 2d-array of type String.public static java.lang.String[][] getValues()
public static void setValue(int row, int column, java.lang.String val)
row
- the row.column
- the column.val
- the value of type Stringpublic static java.lang.String getValue(int row, int column)
row
- the row index.column
- the column index.public static int getColumnCount()
public static int getItemCount()
public static void setColor(int row, int column, int r, int g, int b)
row
- the rowcolumn
- the columnr
- r the red component.g
- g the green component.b
- b the blue component.public static java.lang.String[] getSelection()
public static void createRow(int index, int height)
index
- the index of the row.height
- the height of the row.public static void createColumn(int index, int width, java.lang.String titel)
index
- the index for the column.width
- the width of the column.titel
- the title for the column.public static void setImage(int row, int column, org.eclipse.swt.graphics.Image image)
row
- the row.column
- the column.image
- the SWT image.public static org.eclipse.swt.graphics.Image toSWTImage(java.awt.image.BufferedImage bufferedImage)
bufferedImage
- the image.