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