Class JDPTextGrid

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----JDPTextGrid

public class JDPTextGrid
extends Panel
Class JDPTextGrid represents a table class. This class can be used to implement a spreadsheet using the available methods.


Variable Index

 o CHECKBOX
Field types
 o COLUMN_MOVED
Column moved event.
 o COLUMN_RESIZED
Column resized event.
 o CUSTOM
Pulldown field types
 o DATE
Pulldown field types
 o EXTENDED_REGULAR
Pulldown field types
 o PULLDOWN
Field types
 o REGULAR
Pulldown field types
 o ROW_RESIZED
Row resized event.
 o SPINNER
Field types
 o TEXTFIELD
Field types

Constructor Index

 o JDPTextGrid(JDPUser)
Creates a Text Grid.

Method Index

 o getCellChanged(int, int)
Check whether a cell has been changed
 o getCellColor(int, int)
Get the Color of a cell
 o getCellEnabled(int, int)
Check whether a cell is enabled
 o getCellFont(int, int)
Get the Font of a cell
 o getCellProtected(int, int)
Check whether a cell is protected
 o getCellSelected(int, int)
Check whether a cell is selected
 o getColumnBGColor(int)
Get the background color of a column
 o getColumnColor(int)
Get the color of a column
 o getColumnEnabled(int)
Check whether a column is enabled
 o getColumnGridColor(int, int)
Get the Color of a column grid
 o getColumnHeader(int)
Get the header of a column
 o getColumnHeaderColor(int)
Get the color of a column header
 o getColumnHeaderHeight()
Get the height in pixels of the column header
 o getColumnHeaderOn()
Get the column header on flag
 o getColumnHeaderStyle(int)
Get the style of a column header
 o getColumnOffset()
Get the current column offset of the grid.
 o getColumnOrder(int)
If the columns have been moved this method will return the new position of the selected column
 o getColumnProtected(int)
Check whether a column is protected
 o getColumnSelected(int)
Check whether a column is selected
 o getColumnStyle(int)
Get the style of a column
 o getColumnWidth(int)
Get the width of a column
 o getCurrentColumn()
Get the column number of the cell that has the cursor in it
 o getCurrentRow()
Get the row number of the cell that has the cursor in it
 o getCursorInThisCell(int, int)
Check whether the cursor is in the selected cell.
 o getDisplayedColumns()
Get the number of columns presently displayed.
 o getDisplayedRows()
Get the number of rows presently displayed.
 o getFieldType(int, int)
Get the field type of this cell.
 o getFieldTypeCol(int)
Get the field type of this column.
 o getGridColor()
Get the default color of the grid.
 o getLockedColumns()
Get the number of columns from the left that cannot be moved
 o getMinimumHeight()
Get the minimum height of the grid
 o getMinimumWidth()
Get the minimum width of the grid
 o getPopupComponent(int)
Get the popup component for the selected cell.
 o getPopupComponent(int, int)
Get the popup component for the selected cell.
 o getPrevColumn()
Get the column number of the cell that just lost focus
 o getPrevRow()
Get the row number of the cell that just lost focus
 o getPullDown(int, int)
Check if a cell is a pulldown
 o getPullDownCol(int)
Check if a column is a pulldown
 o getPullDownList(int, int)
Get the list that contains the items in the cell pulldown
 o getPullDownValue(int, int)
Get a Vector that contains the corresponding actual values that match in the cell pulldown
 o getRightJustify(int)
Get the right justification flag of a column
 o getRowChanged(int)
Check whether a row has been changed
 o getRowGridColor(int, int)
Get the Color of a row grid
 o getRowHeader(int)
Get the header of a row
 o getRowHeaderOn()
Get the row header on flag
 o getRowHeaderWidth()
Get the width in pixels of the row header
 o getRowHeight(int)
Get the height of a row
 o getRowKey(int, int)
Get the key for a row in the grid.
 o getRowKeyArray()
Set the key array for rows in the grid.
 o getRowOffset()
Get the current row offset of the grid.
 o getRowSelected(int)
Check whether a row is selected
 o getScrollEastDisabled()
Get whether the east scrollbar has been removed
 o getScrollSouthDisabled()
Get whether the south scrollbar has been removed
 o getSelectedColumn()
Get the number of the row that is currently selected.
 o getSelectedKey()
Get the row key of the currently selected row.
 o getSelectedRow()
Get the number of the row that is currently selected.
 o getSelectedText()
For the currently selected cell get the selected text.
 o getSelectionEnd()
For the currently selected cell get the ending position of the selected text or the cursor position.
 o getSelectionStart()
For the currently selected cell get the starting position of the selected text or the cursor position.
 o getSortingEnabled()
Get whether sorting has been enabled.
 o getSpinnerMax(int, int)
Get the max value of the spinner of this cell.
 o getSpinnerMaxCol(int)
Get the max value of the spinner of this column.
 o getSpinnerMin(int, int)
Get the min value of the spinner of this cell.
 o getSpinnerMinCol(int)
Get the min value of the spinner of this column.
 o getTableColumns()
Get the number of columns in the table.
 o getTableDimensions()
Define the number of columns and rows in the table.
 o getTableRows()
Get the number of rows in the table.
 o getText()
Get the text of the current cell.
 o getText(int, int)
Get the text of a specific cell.
 o handleEvent(Event)
 o insets()
 o layout()
 o minimumSize()
 o newTable()
Refresh the table after loading new values into it.
 o paint(Graphics)
 o preferredSize()
 o reDraw()
ReDraw the Grid
 o resetSelections()
Reset any selected cells, rows or columns to deselected.
 o select(int, int)
For the currently selected cell set the selected text.
 o setCellChanged(int, int, boolean)
Set the changed flag of a cell
 o setCellColor(int, int, Color)
Set the Color of a cell
 o setCellEnabled(int, int, boolean)
Set the enabled value of the cell
 o setCellFont(int, int, Font)
Set the Font of a cell
 o setCellProtected(int, int, boolean)
Set the protected value of the cell
 o setCellSelected(int, int, boolean)
Set the selected value of a cell
 o setColumnBGColor(int, Color)
Set the background color of a column
 o setColumnColor(int, Color)
Set the color of a column
 o setColumnEnabled(int, boolean)
Set the enabled value of the column
 o setColumnGridColor(int, int, Color)
Set the Color of a column grid
 o setColumnHeader(int, String)
Set the header of a column
 o setColumnHeaderColor(int, Color)
Set the color of a column header
 o setColumnHeaderHeight(int)
Set the height in pixels of the column header
 o setColumnHeaderOn(boolean)
Set the column header on flag
 o setColumnHeaderStyle(int, int)
Set the style of a column header
 o setColumnOffset(int)
Set the current column offset of the grid.
 o setColumnProtected(int, boolean)
Set the protected value of the column
 o setColumnSelected(int, boolean)
Set the selected value of the column
 o setColumnStyle(int, int)
Set the style of a column
 o setColumnWidth(int, int)
Set the width of a column
 o setCursorInThisCell(int, int)
Set the cursor to be in the selected cell.
 o setEditMask(String, int, String)
Set the edit mask for a column.
 o setFieldType(int, int, int)
Set the field type of this cell.
 o setFieldTypeCol(int, int)
Set the field type of this column.
 o setGridColor(Color)
Set the default color of the grid.
 o setLockedColumns(int)
Set the number of columns from the left that cannot be moved
 o setMinimumHeight(int)
Set the minimum height of the grid
 o setMinimumWidth(int)
Set the minimum width of the grid
 o setPopupComponent(int, Component)
Set the popup component for the selected column.
 o setPopupComponent(int, int, Component)
Set the popup component for the selected cell.
 o setPullDown(int, int, boolean)
Set a cell to be a pulldown
 o setPullDownCol(int, boolean)
Set a column to be a pulldown
 o setPullDownColType(int, int)
Set a column to be a pulldown
 o setPullDownList(int, int, List)
Set the list that contains the items in the cell pulldown
 o setPullDownType(int, int, int)
Set a cell to be a pulldown
 o setPullDownValue(int, int, Vector)
Set the list that contains the items in the cell pulldown
 o setRightJustify(int, boolean)
Set the right justification flag of a column
 o setRowChanged(int, boolean)
Set the changed flag of a row
 o setRowGridColor(int, int, Color)
Set the Color of a row grid
 o setRowHeader(int, String)
Set the header of a row
 o setRowHeaderOn(boolean)
Set the row header on flag
 o setRowHeaderWidth(int)
Set the width in pixels of the row header
 o setRowHeight(int, int)
Set the height of a row
 o setRowKey(String, int, int)
Set the key for a row in the grid.
 o setRowKeyArray(String[][])
Set the key array for rows in the grid.
 o setRowOffset(int)
Set the current row offset of the grid.
 o setRowSelected(int, boolean)
Set the selected value of the row
 o setScrollEastDisabled(boolean)
Set whether the east scrollbar should be disabled
 o setScrollSouthDisabled(boolean)
Set whether the south scrollbar should be disabled
 o setSortingEnabled(boolean)
Get whether sorting has been enabled.
 o setSpinnerMax(int, int, int)
Set the min value of the spinner of this cell.
 o setSpinnerMaxCol(int, int)
Set the max value of the spinner of this column.
 o setSpinnerMin(int, int, int)
Set the min value of the spinner of this cell.
 o setSpinnerMinCol(int, int)
Set the min value of the spinner of this column.
 o setTableDimensions(int, int)
Define the number of columns and rows in the table.
 o setText(String)
Set the text of the current cell.
 o setText(String, int, int)
Set the text of a specific cell.
 o sortItems(boolean, int, boolean)
Sort the entries in the List
 o update(Graphics)

Variables

 o COLUMN_MOVED
 public static final int COLUMN_MOVED
Column moved event.

 o COLUMN_RESIZED
 public static final int COLUMN_RESIZED
Column resized event.

 o ROW_RESIZED
 public static final int ROW_RESIZED
Row resized event.

 o TEXTFIELD
 public static final int TEXTFIELD
Field types

 o PULLDOWN
 public static final int PULLDOWN
Field types

 o SPINNER
 public static final int SPINNER
Field types

 o CHECKBOX
 public static final int CHECKBOX
Field types

 o REGULAR
 public static final int REGULAR
Pulldown field types

 o DATE
 public static final int DATE
Pulldown field types

 o CUSTOM
 public static final int CUSTOM
Pulldown field types

 o EXTENDED_REGULAR
 public static final int EXTENDED_REGULAR
Pulldown field types

Constructors

 o JDPTextGrid
 public JDPTextGrid(JDPUser user)
Creates a Text Grid.

Parameters:
JDPUser - the global user parameter used to pass handles in JDP.

Methods

 o insets
 public Insets insets()
Overrides:
insets in class Container
 o setTableDimensions
 public void setTableDimensions(int col,
                                int row)
Define the number of columns and rows in the table.

Parameters:
the - number of columns
the - number of rows
 o getTableDimensions
 public Dimension getTableDimensions()
Define the number of columns and rows in the table.

Parameters:
the - number of columns
the - number of rows
 o getTableColumns
 public int getTableColumns()
Get the number of columns in the table.

Returns:
the number of columns.
 o getTableRows
 public int getTableRows()
Get the number of rows in the table.

Returns:
the number of rows.
 o getDisplayedColumns
 public int getDisplayedColumns()
Get the number of columns presently displayed.

Returns:
the number of columns.
 o getDisplayedRows
 public int getDisplayedRows()
Get the number of rows presently displayed.

Returns:
the number of rows.
 o getSelectedText
 public String getSelectedText()
For the currently selected cell get the selected text.

Returns:
the selected text.
 o select
 public void select(int selectedFrom,
                    int selectedTo)
For the currently selected cell set the selected text.

Returns:
the selected text.
 o getSelectionStart
 public int getSelectionStart()
For the currently selected cell get the starting position of the selected text or the cursor position.

Returns:
the starting position of the selected text.
 o getSelectionEnd
 public int getSelectionEnd()
For the currently selected cell get the ending position of the selected text or the cursor position.

Returns:
the ending position of the selected text.
 o getSortingEnabled
 public boolean getSortingEnabled()
Get whether sorting has been enabled.

Returns:
whether sorting has been enabled.
 o setSortingEnabled
 public void setSortingEnabled(boolean enabled)
Get whether sorting has been enabled.

Returns:
whether sorting has been enabled.
 o newTable
 public void newTable()
Refresh the table after loading new values into it.

 o getCurrentColumn
 public int getCurrentColumn()
Get the column number of the cell that has the cursor in it

Returns:
the column number
 o getCurrentRow
 public int getCurrentRow()
Get the row number of the cell that has the cursor in it

Returns:
the row number
 o getPrevColumn
 public int getPrevColumn()
Get the column number of the cell that just lost focus

Returns:
the column number
 o getPrevRow
 public int getPrevRow()
Get the row number of the cell that just lost focus

Returns:
the row number
 o layout
 public void layout()
Overrides:
layout in class Container
 o paint
 public void paint(Graphics g)
Overrides:
paint in class Container
 o update
 public void update(Graphics g)
Overrides:
update in class Component
 o resetSelections
 public void resetSelections()
Reset any selected cells, rows or columns to deselected.

 o sortItems
 public void sortItems(boolean ignoreCase,
                       int sortColumn,
                       boolean sortDescending)
Sort the entries in the List

Parameters:
ignoreCase - choose whether case will be taken into account when sorting
sortColumn - the column to sort by
sortDescending - sort in descending order
 o handleEvent
 public boolean handleEvent(Event evt)
Overrides:
handleEvent in class Component
 o reDraw
 public void reDraw()
ReDraw the Grid

 o preferredSize
 public Dimension preferredSize()
Overrides:
preferredSize in class Container
 o minimumSize
 public Dimension minimumSize()
Overrides:
minimumSize in class Container
 o setMinimumWidth
 public void setMinimumWidth(int width)
Set the minimum width of the grid

Parameters:
the - width in pixels.
 o getMinimumWidth
 public int getMinimumWidth()
Get the minimum width of the grid

Returns:
the width in pixels.
 o setMinimumHeight
 public void setMinimumHeight(int height)
Set the minimum height of the grid

Parameters:
the - height in pixels.
 o getMinimumHeight
 public int getMinimumHeight()
Get the minimum height of the grid

Returns:
the height in pixels.
 o setText
 public void setText(String text)
Set the text of the current cell.

Parameters:
the - text value.
 o setText
 public void setText(String text,
                     int col,
                     int row)
Set the text of a specific cell.

Parameters:
the - text value.
the - column.
the - row.
 o getText
 public String getText()
Get the text of the current cell.

Returns:
the text value.
 o getText
 public String getText(int col,
                       int row)
Get the text of a specific cell.

Parameters:
the - column.
the - row.
Returns:
the text value.
 o setEditMask
 public void setEditMask(String type,
                         int col,
                         String mask)
Set the edit mask for a column.

Parameters:
the - column type (String or Float).
the - column.
the - mask.
 o getColumnOffset
 public int getColumnOffset()
Get the current column offset of the grid.

Returns:
the current column offset of the grid.
 o setColumnOffset
 public void setColumnOffset(int col)
Set the current column offset of the grid.

Parameters:
the - column to position to the left side of the grid.
 o getRowOffset
 public int getRowOffset()
Get the current row offset of the grid.

Returns:
the current row offset of the grid.
 o setRowOffset
 public void setRowOffset(int row)
Set the current row offset of the grid.

Parameters:
the - row to position to the top of the grid.
 o getSelectedKey
 public String[] getSelectedKey()
Get the row key of the currently selected row.

Returns:
the String[] array.
 o setRowKeyArray
 public void setRowKeyArray(String rowKey[][])
Set the key array for rows in the grid. This is mainly used by JDP to keep track of the database keys for the table rows.

Parameters:
the - String[][] array.
 o getRowKeyArray
 public String[][] getRowKeyArray()
Set the key array for rows in the grid. This is mainly used by JDP to keep track of the database keys for the table rows.

Returns:
the String[][] array.
 o setRowKey
 public void setRowKey(String rowKey,
                       int row,
                       int key)
Set the key for a row in the grid. This is mainly used by JDP to keep track of the database keys for the table rows.

Parameters:
the - text value.
the - row.
the - key number.
 o getRowKey
 public String getRowKey(int row,
                         int key)
Get the key for a row in the grid. This is mainly used by JDP to keep track of the database keys for the table rows.

Parameters:
the - row.
the - key number.
Returns:
the text value.
 o setColumnSelected
 public void setColumnSelected(int col,
                               boolean selected)
Set the selected value of the column

Parameters:
the - column.
selected - flag.
 o getSelectedColumn
 public int getSelectedColumn()
Get the number of the row that is currently selected.

Returns:
the row that is currently selected.
 o getColumnSelected
 public boolean getColumnSelected(int col)
Check whether a column is selected

Parameters:
the - column.
Returns:
whether the column is selected or not.
 o setRowSelected
 public void setRowSelected(int row,
                            boolean selected)
Set the selected value of the row

Parameters:
the - row.
selected - flag.
 o getSelectedRow
 public int getSelectedRow()
Get the number of the row that is currently selected.

Returns:
the row that is currently selected.
 o getRowSelected
 public boolean getRowSelected(int row)
Check whether a row is selected

Parameters:
the - row.
Returns:
whether the row is selected or not.
 o setCellSelected
 public void setCellSelected(int col,
                             int row,
                             boolean selected)
Set the selected value of a cell

Parameters:
the - column.
the - row.
selected - flag.
 o getCellSelected
 public boolean getCellSelected(int col,
                                int row)
Check whether a cell is selected

Parameters:
the - column.
the - row.
Returns:
whether the cell is selected or not.
 o setCellChanged
 public void setCellChanged(int col,
                            int row,
                            boolean changed)
Set the changed flag of a cell

Parameters:
the - column.
the - row.
changed - flag.
 o getCellChanged
 public boolean getCellChanged(int col,
                               int row)
Check whether a cell has been changed

Parameters:
the - column.
the - row.
Returns:
whether the cell has changed or not.
 o setCellFont
 public void setCellFont(int col,
                         int row,
                         Font font)
Set the Font of a cell

Parameters:
the - column.
the - row.
 o getCellFont
 public Font getCellFont(int col,
                         int row)
Get the Font of a cell

Parameters:
the - column.
the - row.
Returns:
the cell Font.
 o setCellColor
 public void setCellColor(int col,
                          int row,
                          Color color)
Set the Color of a cell

Parameters:
the - column.
the - row.
 o getCellColor
 public Color getCellColor(int col,
                           int row)
Get the Color of a cell

Parameters:
the - column.
the - row.
Returns:
the cell Color.
 o setRowChanged
 public void setRowChanged(int row,
                           boolean changed)
Set the changed flag of a row

Parameters:
the - row.
changed - flag.
 o getRowChanged
 public boolean getRowChanged(int row)
Check whether a row has been changed

Parameters:
the - row.
Returns:
whether the row has changed or not.
 o setColumnWidth
 public void setColumnWidth(int col,
                            int width)
Set the width of a column

Parameters:
the - column.
the - width in pixels.
 o getColumnWidth
 public int getColumnWidth(int col)
Get the width of a column

Parameters:
the - column.
Returns:
the width in pixels.
 o setRowHeight
 public void setRowHeight(int row,
                          int height)
Set the height of a row

Parameters:
the - row.
the - height in pixels.
 o getRowHeight
 public int getRowHeight(int row)
Get the height of a row

Parameters:
the - row.
Returns:
the height in pixels.
 o setRightJustify
 public void setRightJustify(int col,
                             boolean justify)
Set the right justification flag of a column

Parameters:
the - column.
the - justification flag.
 o getRightJustify
 public boolean getRightJustify(int col)
Get the right justification flag of a column

Parameters:
the - column.
Returns:
the justification flag.
 o setColumnHeaderOn
 public void setColumnHeaderOn(boolean on)
Set the column header on flag

Parameters:
the - column header on flag.
 o getColumnHeaderOn
 public boolean getColumnHeaderOn()
Get the column header on flag

Returns:
the column header on flag.
 o setRowHeaderOn
 public void setRowHeaderOn(boolean on)
Set the row header on flag

Parameters:
the - row header on flag.
 o getRowHeaderOn
 public boolean getRowHeaderOn()
Get the row header on flag

Returns:
the row header on flag.
 o setColumnHeader
 public void setColumnHeader(int col,
                             String header)
Set the header of a column

Parameters:
the - column.
the - header.
 o getColumnHeader
 public String getColumnHeader(int col)
Get the header of a column

Parameters:
the - column.
Returns:
the column header.
 o setRowHeader
 public void setRowHeader(int row,
                          String header)
Set the header of a row

Parameters:
the - row.
the - header.
 o getRowHeader
 public String getRowHeader(int row)
Get the header of a row

Parameters:
the - row.
Returns:
the row header.
 o setColumnHeaderStyle
 public void setColumnHeaderStyle(int col,
                                  int style)
Set the style of a column header

Parameters:
the - column.
the - style.
 o getColumnHeaderStyle
 public int getColumnHeaderStyle(int col)
Get the style of a column header

Parameters:
the - column.
Returns:
the column header style.
 o setColumnStyle
 public void setColumnStyle(int col,
                            int style)
Set the style of a column

Parameters:
the - column.
the - style.
 o getColumnStyle
 public int getColumnStyle(int col)
Get the style of a column

Parameters:
the - column.
Returns:
the column style.
 o setColumnHeaderColor
 public void setColumnHeaderColor(int col,
                                  Color color)
Set the color of a column header

Parameters:
the - column.
the - color.
 o getColumnHeaderColor
 public Color getColumnHeaderColor(int col)
Get the color of a column header

Parameters:
the - column.
Returns:
the column header color.
 o setColumnColor
 public void setColumnColor(int col,
                            Color color)
Set the color of a column

Parameters:
the - column.
the - color.
 o getColumnColor
 public Color getColumnColor(int col)
Get the color of a column

Parameters:
the - column.
Returns:
the column color.
 o setColumnBGColor
 public void setColumnBGColor(int col,
                              Color color)
Set the background color of a column

Parameters:
the - column.
the - color.
 o getColumnBGColor
 public Color getColumnBGColor(int col)
Get the background color of a column

Parameters:
the - column.
Returns:
the column background color.
 o setColumnProtected
 public void setColumnProtected(int col,
                                boolean Protected)
Set the protected value of the column

Parameters:
the - column.
protected - flag.
 o getColumnProtected
 public boolean getColumnProtected(int col)
Check whether a column is protected

Parameters:
the - column.
Returns:
whether the column is protected or not.
 o setCellProtected
 public void setCellProtected(int col,
                              int row,
                              boolean Protected)
Set the protected value of the cell

Parameters:
the - column.
the - row.
protected - flag.
 o getCellProtected
 public boolean getCellProtected(int col,
                                 int row)
Check whether a cell is protected

Parameters:
the - column.
the - row.
Returns:
whether the cell is protected or not.
 o setColumnEnabled
 public void setColumnEnabled(int col,
                              boolean Enabled)
Set the enabled value of the column

Parameters:
the - column.
enabled - flag.
 o getColumnEnabled
 public boolean getColumnEnabled(int col)
Check whether a column is enabled

Parameters:
the - column.
Returns:
whether the column is enabled or not.
 o setCellEnabled
 public void setCellEnabled(int col,
                            int row,
                            boolean Enabled)
Set the enabled value of the cell

Parameters:
the - column.
the - row.
enabled - flag.
 o getCellEnabled
 public boolean getCellEnabled(int col,
                               int row)
Check whether a cell is enabled

Parameters:
the - column.
the - row.
Returns:
whether the cell is enabled or not.
 o setLockedColumns
 public void setLockedColumns(int columns)
Set the number of columns from the left that cannot be moved

Parameters:
the - columns.
 o getLockedColumns
 public int getLockedColumns()
Get the number of columns from the left that cannot be moved

Returns:
the number of columns locked.
 o setScrollEastDisabled
 public void setScrollEastDisabled(boolean disabled)
Set whether the east scrollbar should be disabled

Parameters:
disabled - flag.
 o getScrollEastDisabled
 public boolean getScrollEastDisabled()
Get whether the east scrollbar has been removed

Returns:
whether disabled or not.
 o setScrollSouthDisabled
 public void setScrollSouthDisabled(boolean disabled)
Set whether the south scrollbar should be disabled

Parameters:
disabled - flag.
 o getScrollSouthDisabled
 public boolean getScrollSouthDisabled()
Get whether the south scrollbar has been removed

Returns:
whether disabled or not.
 o setFieldType
 public void setFieldType(int col,
                          int row,
                          int type)
Set the field type of this cell. See the list ov valid field types.

Parameters:
col - the column.
row - the row.
type - the field type.
 o getFieldType
 public int getFieldType(int col,
                         int row)
Get the field type of this cell. See the list ov valid field types.

Parameters:
col - the column.
row - the row.
Returns:
the field type.
 o setFieldTypeCol
 public void setFieldTypeCol(int col,
                             int type)
Set the field type of this column. See the list ov valid field types.

Parameters:
col - the column.
type - the field type.
 o getFieldTypeCol
 public int getFieldTypeCol(int col)
Get the field type of this column. See the list ov valid field types.

Parameters:
col - the column.
Returns:
the field type.
 o setSpinnerMin
 public void setSpinnerMin(int col,
                           int row,
                           int min)
Set the min value of the spinner of this cell.

Parameters:
col - the column.
row - the row.
min - the minimum value allowed for the spinner.
 o getSpinnerMin
 public int getSpinnerMin(int col,
                          int row)
Get the min value of the spinner of this cell.

Parameters:
col - the column.
row - the row.
Returns:
min the minimum value allowed for the spinner.
 o setSpinnerMax
 public void setSpinnerMax(int col,
                           int row,
                           int max)
Set the min value of the spinner of this cell.

Parameters:
col - the column.
row - the row.
max - the maximum value allowed for the spinner.
 o getSpinnerMax
 public int getSpinnerMax(int col,
                          int row)
Get the max value of the spinner of this cell.

Parameters:
col - the column.
row - the row.
Returns:
max the maximum value allowed for the spinner.
 o setSpinnerMinCol
 public void setSpinnerMinCol(int col,
                              int min)
Set the min value of the spinner of this column.

Parameters:
col - the column.
min - the minimum value allowed for the spinner.
 o getSpinnerMinCol
 public int getSpinnerMinCol(int col)
Get the min value of the spinner of this column.

Parameters:
col - the column.
Returns:
min the minimum value allowed for the spinner.
 o setSpinnerMaxCol
 public void setSpinnerMaxCol(int col,
                              int max)
Set the max value of the spinner of this column.

Parameters:
col - the column.
max - the maximum value allowed for the spinner.
 o getSpinnerMaxCol
 public int getSpinnerMaxCol(int col)
Get the max value of the spinner of this column.

Parameters:
col - the column.
Returns:
max the maximum value allowed for the spinner.
 o setPullDown
 public void setPullDown(int col,
                         int row,
                         boolean pulldown)
Set a cell to be a pulldown

Parameters:
the - column.
the - row.
pulldown - flag.
 o getPullDown
 public boolean getPullDown(int col,
                            int row)
Check if a cell is a pulldown

Parameters:
the - column.
the - row.
Returns:
whether the cell is a pulldown or not.
 o setPullDownType
 public void setPullDownType(int col,
                             int row,
                             int pulldowntype)
Set a cell to be a pulldown

Parameters:
the - column.
the - row.
pulldown - flag.
 o setPullDownCol
 public void setPullDownCol(int col,
                            boolean pulldown)
Set a column to be a pulldown

Parameters:
the - column.
pulldown - flag.
 o getPullDownCol
 public boolean getPullDownCol(int col)
Check if a column is a pulldown

Parameters:
the - column.
Returns:
whether the column is a pulldown or not.
 o setPullDownColType
 public void setPullDownColType(int col,
                                int pulldowntype)
Set a column to be a pulldown

Parameters:
the - column.
pulldown - flag.
 o setPullDownList
 public void setPullDownList(int col,
                             int row,
                             List pulldown)
Set the list that contains the items in the cell pulldown

Parameters:
the - column.
the - row.
pulldown - List.
 o getPullDownList
 public List getPullDownList(int col,
                             int row)
Get the list that contains the items in the cell pulldown

Parameters:
the - column.
the - row.
Returns:
the cell pulldown List.
 o setPullDownValue
 public void setPullDownValue(int col,
                              int row,
                              Vector pulldown)
Set the list that contains the items in the cell pulldown

Parameters:
the - column.
the - row.
pulldown - List.
 o getPullDownValue
 public Vector getPullDownValue(int col,
                                int row)
Get a Vector that contains the corresponding actual values that match in the cell pulldown

Parameters:
the - column.
the - row.
Returns:
the cell pulldown Value Vector.
 o setColumnHeaderHeight
 public void setColumnHeaderHeight(int height)
Set the height in pixels of the column header

Parameters:
the - height in pixels.
 o getColumnHeaderHeight
 public int getColumnHeaderHeight()
Get the height in pixels of the column header

Returns:
the height in pixels.
 o setRowHeaderWidth
 public void setRowHeaderWidth(int width)
Set the width in pixels of the row header

Parameters:
the - width in pixels.
 o getRowHeaderWidth
 public int getRowHeaderWidth()
Get the width in pixels of the row header

Returns:
the width in pixels.
 o setColumnGridColor
 public void setColumnGridColor(int col,
                                int row,
                                Color color)
Set the Color of a column grid

Parameters:
the - column.
the - row.
 o getColumnGridColor
 public Color getColumnGridColor(int col,
                                 int row)
Get the Color of a column grid

Parameters:
the - column.
the - row.
Returns:
the column grid Color.
 o setRowGridColor
 public void setRowGridColor(int col,
                             int row,
                             Color color)
Set the Color of a row grid

Parameters:
the - column.
the - row.
 o getRowGridColor
 public Color getRowGridColor(int col,
                              int row)
Get the Color of a row grid

Parameters:
the - column.
the - row.
Returns:
the row grid Color.
 o getColumnOrder
 public int getColumnOrder(int col)
If the columns have been moved this method will return the new position of the selected column

Parameters:
the - column.
Returns:
the new position.
 o setGridColor
 public void setGridColor(Color color)
Set the default color of the grid.

Parameters:
the - color.
 o getGridColor
 public Color getGridColor()
Get the default color of the grid.

Returns:
the grid color.
 o setCursorInThisCell
 public void setCursorInThisCell(int col,
                                 int row)
Set the cursor to be in the selected cell.

 o getCursorInThisCell
 public boolean getCursorInThisCell(int col,
                                    int row)
Check whether the cursor is in the selected cell.

Returns:
whether the cursor is in this cell.
 o setPopupComponent
 public void setPopupComponent(int col,
                               int row,
                               Component thisComp)
Set the popup component for the selected cell.

 o setPopupComponent
 public void setPopupComponent(int col,
                               Component thisComp)
Set the popup component for the selected column.

 o getPopupComponent
 public Component getPopupComponent(int col,
                                    int row)
Get the popup component for the selected cell.

 o getPopupComponent
 public Component getPopupComponent(int col)
Get the popup component for the selected cell.