public class GridSheet
extends nxm.sys.libg.MPanel
implements nxm.sys.inc.Keyable, nxm.sys.inc.MessageHandler, java.awt.event.ComponentListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, javax.swing.event.ChangeListener
| Modifier and Type | Class and Description |
|---|---|
class |
GridSheet.AbstractCellRenderer
Abstract Class Abstract Cell Renderer
|
class |
GridSheet.AbstractColorRule
Abstract Class Abstract Color Rule
|
class |
GridSheet.CellPanel
cell panel class
|
class |
GridSheet.CellRaster
Cell Raster
|
static interface |
GridSheet.CellRenderer
cell renderer class
|
class |
GridSheet.CellString
Cell String
|
class |
GridSheet.CellToggle
Cell Toggle
|
static interface |
GridSheet.ColorRule
Color Rule
|
class |
GridSheet.Column
An inner class for a Column within a data set
|
class |
GridSheet.ConstColorRule
Constant Color Rule
|
class |
GridSheet.EnumColorRule
enum color rule
|
static interface |
GridSheet.GridSheetReference
Obtain a GridSheet object reference.
|
class |
GridSheet.Row
An inner class for a Row within a data set
|
class |
GridSheet.StringDragSource
An inner class that deals with events which involve DragSource entities
|
class |
GridSheet.StringDropTarget
An inner class that deals with events which involve DropTarget entities
|
class |
GridSheet.TrackColorRule
Track Color Rule
|
| Modifier and Type | Field and Description |
|---|---|
boolean |
autoSelect
toggles auto selection
|
static int |
DND_TABLE
Drag and Drop Data in Table format
|
static int |
DND_XML
Drag and Drop Data in XML format
|
static int |
MULTISEL_FULL
MultiSelect is FULL - Return current and previous selected row DATA in SELECT
message data
|
static int |
MULTISEL_LIST
MultiSelect is LIST - TBD - Return list of current and previous selected rows in SELECT
message data
|
static int |
MULTISEL_OFF
MultiSelect is OFF - Do not pass current and previous selection data
|
int |
MultiSelMsgMode
Multi-Selection Mode to control what data is passed back in SELECT/DESELECT messages
when SHIFT-LMB and CTRL-LMB are
pressed
|
static java.lang.String |
refreshChoices
Choice options for refreshing
|
static int |
RM_LEGACY
Legacy refresh choice
|
static int |
RM_TIMER
Timer refresh choice
|
boolean |
scrollEndSw
command line /SCROLLEND switch state
|
int |
selColumn
column selection
|
int |
selRow
row selection
|
| Constructor and Description |
|---|
GridSheet()
No argument constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addColumns(java.lang.String plabels)
Add Columns
|
void |
addRow(nxm.sys.lib.Table t)
Add a row to the current data set with the values in the specified
table.
|
void |
addRows(java.util.Vector<? super java.lang.Object> values,
int rowlen)
Populate the table with a vector of values.
|
void |
addRows(java.util.Vector<java.util.Vector<java.lang.Object>> vov)
Populate the table with a vector of vectors.
|
void |
addTo(nxm.sys.libg.MWindow mw)
add this to the MWindow
|
void |
applyTemplate()
apply template
|
void |
applyTemplate(nxm.sys.lib.Keywords keywds)
apply template
|
java.util.Vector<java.lang.Object> |
changeColumnRender(java.lang.String subrName,
int type)
change column render
|
void |
clear()
Clear all row and column vectors and reset all indexes with REFRESH
|
void |
clear(boolean doRefresh)
Clear all row and column vectors and reset all indexes.
|
void |
clear(int tmp)
Public method to clear the data on the screen.
|
void |
close()
close
|
void |
componentHidden(java.awt.event.ComponentEvent e) |
void |
componentMoved(java.awt.event.ComponentEvent e) |
void |
componentResized(java.awt.event.ComponentEvent e)
Overrides MPanel event handlers of interest.
|
void |
componentShown(java.awt.event.ComponentEvent e) |
void |
deselectAll()
Deselect any selected row, column or cell.
|
void |
deselectAll(boolean sendMsg)
Deselect any selected row, column or cell.
|
void |
deSelectRow(int row)
DeSelect the row at the specified index.
|
void |
dropData(java.lang.String inputdata)
Convert the dropped data into a table and process it
As of NeXtMIDas 3.3.0, this dropped data will look at
dropImportType
to determine to treat the dropped data as XML or a Table |
void |
forceRefresh()
Force a refresh
|
java.lang.Object |
getAllRows()
get all rows as a Table cast to an Object
|
java.lang.Object |
getCell(int row,
int column)
get cell
|
java.lang.Object |
getCell(int rowIndx,
java.lang.String subrName)
get Cell
|
int |
getColCount()
get column count
|
int |
getColIndex(java.lang.String subrName)
get column index by name
|
int |
getColIndex(java.lang.String subrName,
boolean ignorecase)
get column index by name
|
boolean |
getColLabelsVisible()
get if column labels are visible
|
java.lang.Object |
getColumn(int colIdx)
get column as default output type
|
java.lang.Object |
getColumn(int colIdx,
int type)
Depending on what the output type is set to, return either
a Vector or Table with the column data.
|
java.lang.Object |
getColumn(java.lang.String subrName)
get column as default output type
|
java.lang.Object |
getColumn(java.lang.String subrName,
int type)
get column as specified type
|
java.util.Vector<?> |
getColumnPanels(java.lang.String subrName)
Return a vector of panel pointers for the specified column
|
java.lang.Object |
getColumnTable(int colIdx)
get column as table
|
java.lang.Object |
getColumnTable(java.lang.String subrName)
get column as table
|
java.lang.Object |
getColumnVector(int colIdx)
get column as vector
|
java.lang.Object |
getColumnVector(java.lang.String subrName)
get column as vector
|
int |
getColWidth(java.lang.String subrName)
Get the column width
|
java.lang.String |
getDragDataType()
Get the type of Data format to use when dragging
|
java.lang.String |
getDropDataType()
Get the type of Data format to use when dragging
|
boolean |
getGrid()
get if grid lines are on
|
int |
getHighlight()
Return the highlight color as an RGB value.
|
java.lang.Object |
getKey(java.lang.String name)
Get the value of an object's keyed field.
|
java.lang.String[] |
getKeys()
Get a list of the available keys.
|
boolean |
getMultiSelMode()
TRUE is in MULTI selection mode, FALSE otherwise
|
int |
getMultiSelMsgMode()
Get the Multi Select mode
|
int |
getOutputType()
Return the output type used to specify the format of message data.
|
java.lang.Object |
getRow(int index)
get row as default output type
|
java.lang.Object |
getRow(int index,
int type)
Depending on what the output type is set to, return either
a Vector or Table with the row data.
|
int |
getRowByValue(nxm.sys.lib.Table t)
get row by value
|
int |
getRowCount()
get row count
|
int |
getRowHeight()
get row height
|
boolean |
getRowLabelsVisible()
get if row labels are visible
|
java.lang.Object |
getRows(int type)
get all rows in the output type specified
|
int |
getRowSelected(int i)
Return whether the given row is selected or not
|
java.lang.Object |
getRowsTable()
get all rows as a Table cast to an Object
|
java.lang.Object |
getRowsVector()
get all rows as a Vector cast to an Object
|
java.lang.Object |
getRowTable(int index)
get row as Table cast to Object
|
java.lang.Object |
getRowVector(int index)
get row as Vectore cast to Object
|
nxm.sys.lib.Table |
getSelectedCell()
Return the index of the selected row, column.
|
java.lang.Object |
getSelectedCellData()
Return the contents of the currently selected cell.
|
int |
getSelectedColumn()
Return the index of the selected column.
|
java.lang.Object |
getSelectedColumnData()
get selected column data
|
java.lang.String |
getSelectedData()
get selected Data
|
int |
getSelectedRow()
Return the index of the selected row.
|
java.lang.Object |
getSelectedRowData()
get selected row data as default output type
|
java.lang.String |
getSelectedRows()
Returns the selected row information in an XML string format.
|
java.lang.String |
getSelectedRows(java.lang.String tagname)
get selected rows as a string
|
nxm.sys.lib.Table |
getSelectedRowsTable()
get selected rows as a Table
|
java.lang.Object |
getSelRowsTable()
get selected rows as an Object that is a Table
|
java.lang.Object |
getSelRowsVector()
get selected rows as a Vector
|
void |
init()
Initialize.
|
boolean |
isDragAndDropEnabled()
Is the drag and drop feature enabled?
|
boolean |
isRowSelected(int i)
Return whether the given row is selected or not
|
void |
mouseClicked(java.awt.event.MouseEvent e) |
void |
mouseDragged(java.awt.event.MouseEvent e) |
void |
mouseEntered(java.awt.event.MouseEvent e) |
void |
mouseExited(java.awt.event.MouseEvent e) |
void |
mouseMoved(java.awt.event.MouseEvent e) |
void |
mousePressed(java.awt.event.MouseEvent e) |
void |
mouseReleased(java.awt.event.MouseEvent e) |
void |
paint(java.awt.Graphics g)
Overrides MPanel paint.
|
void |
pollRows(java.util.Vector<?> values,
int rowlen)
Deprecated.
This method has been deprecated as of NeXtMidas 2.1.1
|
void |
pollRows(java.util.Vector<java.util.Vector<java.lang.Object>> vov)
poll rows
|
void |
print(java.awt.Graphics pg) |
int |
processMessage(nxm.sys.lib.Message msg)
process a message from parent process or config menu
|
int |
processMessage(nxm.sys.lib.Message msg,
java.lang.Object msgid,
java.lang.Object parent)
process a message
|
void |
processSelection(java.lang.String type,
int selRow,
int selCol)
Process a selection
The select message DATA for type ROW is now:
TYPE - ROW
ROW - 1..n row number
COLUMN - 1..n COLUMN number
VALUE - Table of row last clicked
CURRSEL - Table of Tables of selected rows/col data
For example, CURRSEL.3, CURRSEL.13
PREVSEL - Table of Tables of previously selected rows/col data
|
void |
processSelection(java.lang.String type,
int selRow,
int[] selCols)
process selection
|
void |
qrefresh()
refresh
|
void |
refresh()
In LEGACY refresh mode a refresh is forced.
|
void |
refresh(boolean refreshGraphics)
refresh
|
void |
removeRow(int row)
Delete the row at the specified index.
|
void |
removeRows(int startRow,
int endRow)
Delete the row at the specified index.
|
void |
selectAll()
Select all rows
|
void |
selectCell(nxm.sys.lib.Table t)
Public method for selecting a cell.
|
void |
selectCells(nxm.sys.lib.Table t)
Public method for selecting multiple cells.
|
void |
selectColumn(int column)
Select the column at the specified column index.
|
void |
selectRow(int row)
Select the row at the specified row index.
|
void |
selectRow(int row,
boolean clear)
select row
|
void |
selectRowByColsValue(nxm.sys.lib.Table colValues)
select row by column values
|
int |
selectRowByColValue(java.lang.String colname,
java.lang.String colvalue,
boolean ignorecase)
select rows that have a certain column value
|
void |
selectRowsByColValue(java.lang.String colname,
java.lang.String colvalue,
boolean ignoreCase)
select rows by column value
|
void |
setAutoSelect(boolean autoon)
Turn the auto selection on or off.
|
void |
setCell(int rowIdx,
int colIdx,
java.lang.Object val)
set cell value
|
void |
setCell(int rowIdx,
java.lang.String subrName,
java.lang.Object val)
set cell
|
void |
setCell(nxm.sys.lib.Table t)
set cell using information in a Table
|
void |
setCellColors(int column,
int row,
java.awt.Color fg,
java.awt.Color bg)
Set the color of a cell.
|
void |
setColColors(int column,
java.awt.Color fg,
java.awt.Color bg)
Set the color of a column.
|
void |
setColLabels(boolean on)
Turn the column labels on or off.
|
void |
setColLabels(java.lang.String plabels)
Set the column labels (starting with the first column) via a list of token
delimited strings.
|
void |
setColLabels(java.lang.String[] plabels)
Set the column labels (starting with the first column) via an array of string
values.
|
void |
setColLabJus(java.lang.String just)
Set the column label justification: right, left, center (default)
|
void |
setColVisible(java.lang.String subrName,
boolean onoff)
Show/hide a column.
|
void |
setColWidth(java.lang.String subrName)
Set the column width.
|
void |
setColWidth(java.lang.String subrName,
int width)
Set the column width.
|
void |
setCursorMode(int value)
Set the cursor mode attribute.
|
void |
setDragAndDrop(boolean in)
Enable or disable the drag and drop.
|
void |
setDragAndDrop(java.lang.String type)
Enable or disable the drag and drop.
|
void |
setDragDataType(java.lang.String type)
Set the type of Data format to use when dragging
|
void |
setDropDataType(java.lang.String type)
Set the type of Data format to use when Dropping
|
void |
setFgHilite(boolean useFg)
set if default highlighting of selections to be done by backlighting
|
void |
setGrid(boolean on)
Turn the grid on or off.
|
void |
setHighlight(java.awt.Color clr)
Set the highlight color
|
void |
setHighlight(int value)
Set the highlight color to an RGB value.
|
void |
setHighlight(java.lang.String value)
Set the highlight color to one of the defined colors in the MColor table.
|
java.lang.Object |
setKey(java.lang.String name,
java.lang.Object value)
Set the value of an object's keyed field.
|
void |
setMultiSelMsgMode(int ms_mode)
Set the Multi Select mode
|
void |
setMultiSelMsgMode(java.lang.String ms_mode)
Set the Multi Select mode
|
void |
setOutputType(int type)
Set the format of the data for all output messages to either a table or
vector format.
|
void |
setRasterData(nxm.sys.lib.Table t,
byte[] buf)
set raster data
|
void |
setRefreshMode(int in_mode)
Set the refresh mode
|
void |
setRow(int index,
nxm.sys.lib.Table t)
Replace the row information at the specified row index with the values in
the specified table.
|
void |
setRowButtonWidth(int prbsize)
Set the width of all row buttons to the given integer pixel value.
|
void |
setRowColors(int row,
java.awt.Color fg,
java.awt.Color bg)
Set the color of a row.
|
void |
setRowLabels(boolean on)
Turn the row labels on or off.
|
void |
setSelectColor(java.awt.Color c)
set default selected color
|
void |
setTemplate(nxm.sys.lib.Keywords keys)
Set the template.
|
void |
setTheme()
Set all of the color values for each of the table components to the currently
selected theme value.
|
void |
setWayneMode(boolean wayne)
Turns on/off special Wayne-only features.
|
void |
sort()
Sort the data by the column that it was sorted by last time.
|
void |
sort(java.lang.String subrToSort)
Sort the data by column as selected via subrecord name.
|
void |
sort(java.lang.String subrToSort,
boolean sortDesc)
Sort the data by column as selected via subrecord name.
|
void |
stateChanged(javax.swing.event.ChangeEvent e) |
void |
update(java.awt.Graphics g) |
add, add, add, add, add, isFocusable, remove, removeNotify, setMWindowaddContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, isValidateRoot, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusDownCycle, validateaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic static final int DND_XML
public static final int DND_TABLE
public int selRow
public int selColumn
public static final int MULTISEL_OFF
public static final int MULTISEL_FULL
public static final int MULTISEL_LIST
public int MultiSelMsgMode
public boolean scrollEndSw
public boolean autoSelect
public static final java.lang.String refreshChoices
public static final int RM_LEGACY
public static final int RM_TIMER
public void setDragAndDrop(boolean in)
in - Allow drag and drop if true, disallow if falsepublic void setDragAndDrop(java.lang.String type)
type - "XML" or "TABLE", or "true" to use defaults or "false" to disablepublic boolean isDragAndDropEnabled()
public void setDragDataType(java.lang.String type)
type - "XML" or "TABLE"public java.lang.String getDragDataType()
public void setDropDataType(java.lang.String type)
type - "XML" or "TABLE"public java.lang.String getDropDataType()
public void dropData(java.lang.String inputdata)
dropImportType
to determine to treat the dropped data as XML or a Tableinputdata - data to be converted into a table and processedpublic java.lang.String getSelectedData()
public void setWayneMode(boolean wayne)
wayne - true if in "Wayne" modepublic void addTo(nxm.sys.libg.MWindow mw)
mw - MWindowpublic void close()
public void componentResized(java.awt.event.ComponentEvent e)
componentResized in interface java.awt.event.ComponentListenerpublic void componentShown(java.awt.event.ComponentEvent e)
componentShown in interface java.awt.event.ComponentListenerpublic void componentHidden(java.awt.event.ComponentEvent e)
componentHidden in interface java.awt.event.ComponentListenerpublic void componentMoved(java.awt.event.ComponentEvent e)
componentMoved in interface java.awt.event.ComponentListenerpublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenerpublic void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in interface java.awt.event.MouseMotionListenerpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenerpublic void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved in interface java.awt.event.MouseMotionListenerpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenerpublic void init()
public void update(java.awt.Graphics g)
update in class nxm.sys.libg.MPanelpublic void paint(java.awt.Graphics g)
paint in class nxm.sys.libg.MPanelg - The Graphics object.public void qrefresh()
public void refresh(boolean refreshGraphics)
refreshGraphics - true if should create new Graphics (dispose of old)public void setRefreshMode(int in_mode)
in_mode - the refresh modepublic void refresh()
public void print(java.awt.Graphics pg)
print in class java.awt.Containerpublic void forceRefresh()
public int processMessage(nxm.sys.lib.Message msg)
processMessage in interface nxm.sys.inc.MessageHandlermsg - messagepublic int processMessage(nxm.sys.lib.Message msg,
java.lang.Object msgid,
java.lang.Object parent)
msg - messagemsgid - message idparent - parentpublic int getColIndex(java.lang.String subrName,
boolean ignorecase)
subrName - column nameignorecase - true if should ignore casepublic int getColIndex(java.lang.String subrName)
subrName - column namepublic int getMultiSelMsgMode()
public void setMultiSelMsgMode(java.lang.String ms_mode)
ms_mode - the Multi Select modepublic void setMultiSelMsgMode(int ms_mode)
ms_mode - the Multi Select modepublic boolean getMultiSelMode()
public boolean getGrid()
public int getRowCount()
public int getColCount()
public boolean getColLabelsVisible()
public boolean getRowLabelsVisible()
public int getRowHeight()
public int getHighlight()
public int getOutputType()
public java.lang.Object getCell(int row,
int column)
row - row indexcolumn - column indexpublic java.lang.Object getCell(int rowIndx,
java.lang.String subrName)
rowIndx - row indexsubrName - column namepublic java.lang.Object getRow(int index,
int type)
index - index of rowtype - output typepublic java.lang.Object getRowVector(int index)
index - index of rowpublic java.lang.Object getRowTable(int index)
index - index of rowpublic java.lang.Object getRow(int index)
index - index of rowpublic java.lang.Object getSelectedRowData()
public java.lang.Object getRows(int type)
type - output typepublic java.lang.Object getRowsVector()
public java.lang.Object getRowsTable()
public java.lang.Object getAllRows()
public int getRowByValue(nxm.sys.lib.Table t)
t - table containing column and valuepublic java.lang.Object getColumn(int colIdx,
int type)
colIdx - column indextype - output typepublic java.lang.Object getColumn(java.lang.String subrName,
int type)
subrName - column nametype - output typepublic java.lang.Object getColumn(int colIdx)
colIdx - colIdx column indexpublic java.lang.Object getColumnTable(int colIdx)
colIdx - column indexpublic java.lang.Object getColumnVector(int colIdx)
colIdx - column indexpublic java.lang.Object getColumn(java.lang.String subrName)
subrName - column namepublic java.lang.Object getColumnTable(java.lang.String subrName)
subrName - column namepublic java.lang.Object getColumnVector(java.lang.String subrName)
subrName - column namepublic java.lang.Object getSelectedColumnData()
public java.lang.Object getSelRowsTable()
public java.lang.Object getSelRowsVector()
public java.lang.String getSelectedRows()
public java.lang.String getSelectedRows(java.lang.String tagname)
tagname - tag namepublic nxm.sys.lib.Table getSelectedRowsTable()
public int getSelectedRow()
public boolean isRowSelected(int i)
i - index of rowpublic int getRowSelected(int i)
i - row indexpublic int getSelectedColumn()
public nxm.sys.lib.Table getSelectedCell()
public java.lang.Object getSelectedCellData()
public java.util.Vector<?> getColumnPanels(java.lang.String subrName)
subrName - sub-record namepublic java.util.Vector<java.lang.Object> changeColumnRender(java.lang.String subrName,
int type)
subrName - sub-record (column) nametype - int with cell typepublic void setRasterData(nxm.sys.lib.Table t,
byte[] buf)
t - table containing information on which cell raster to setbuf - byte buffer containing the datapublic void setCell(nxm.sys.lib.Table t)
t - the Table to usepublic void setCell(int rowIdx,
int colIdx,
java.lang.Object val)
rowIdx - row indexcolIdx - column indexval - valuepublic void setCell(int rowIdx,
java.lang.String subrName,
java.lang.Object val)
rowIdx - row indexsubrName - subrecord (i.e. column) nameval - valuepublic void setAutoSelect(boolean autoon)
autoon - true if auto selection is onpublic void setGrid(boolean on)
on - true if grid is onpublic void setTemplate(nxm.sys.lib.Keywords keys)
keys - the template keyspublic void setColVisible(java.lang.String subrName,
boolean onoff)
subrName - sub-record nameonoff - true if onpublic void setColWidth(java.lang.String subrName,
int width)
subrName - sub-record namewidth - column widthpublic void setColWidth(java.lang.String subrName)
subrName - sub-record namepublic int getColWidth(java.lang.String subrName)
subrName - sub-record namepublic void setCursorMode(int value)
value - the cursor modepublic void setHighlight(int value)
value - the RGB of the highlight colorpublic void setHighlight(java.awt.Color clr)
clr - the highlight Colorpublic void setHighlight(java.lang.String value)
value - the highlight color in string formpublic void setCellColors(int column,
int row,
java.awt.Color fg,
java.awt.Color bg)
column - the columnrow - the rowfg - the foreground colorbg - the background colorpublic void setRowColors(int row,
java.awt.Color fg,
java.awt.Color bg)
row - the rowfg - the foreground colorbg - the background colorpublic void setColColors(int column,
java.awt.Color fg,
java.awt.Color bg)
column - the columnfg - the foreground colorbg - the background colorpublic void setRowButtonWidth(int prbsize)
prbsize - the width of all row buttons to the given integer pixel value.public void setTheme()
public void setColLabJus(java.lang.String just)
just - column label justificationpublic void setColLabels(boolean on)
on - true if column labels are to be onpublic void setColLabels(java.lang.String[] plabels)
plabels - column labels in a String arraypublic void setColLabels(java.lang.String plabels)
plabels - token delimited string of labelspublic void setRowLabels(boolean on)
on - true if row labels are onpublic void setRow(int index,
nxm.sys.lib.Table t)
index - One-based index into list (1..n)t - Table of replacement datapublic void setOutputType(int type)
type - format of the datapublic void setFgHilite(boolean useFg)
useFg - true to enablepublic void setSelectColor(java.awt.Color c)
c - default selected colorpublic void addColumns(java.lang.String plabels)
plabels - labels (as string with delimiters)public void addRow(nxm.sys.lib.Table t)
t - table containing data setpublic void addRows(java.util.Vector<? super java.lang.Object> values,
int rowlen)
values - Vector of values to use in populating tablerowlen - allows data to be displayed with a vriable frame length@Deprecated
public void pollRows(java.util.Vector<?> values,
int rowlen)
values - valuesrowlen - row lengthpublic void addRows(java.util.Vector<java.util.Vector<java.lang.Object>> vov)
vov - Vector of Vectors to use in populating tablepublic void pollRows(java.util.Vector<java.util.Vector<java.lang.Object>> vov)
vov - vector of vectors to pollpublic void removeRow(int row)
row - row indexpublic void removeRows(int startRow,
int endRow)
startRow - The first row to remove (inclusive, row=1..n).endRow - The last row to remove (inclusive, row=1..n).public void clear(int tmp)
tmp - unusedpublic void clear()
public void clear(boolean doRefresh)
doRefresh - Do refresh if truepublic void deselectAll()
public void deselectAll(boolean sendMsg)
sendMsg - true if should send messagepublic void selectCell(nxm.sys.lib.Table t)
t - table describing cells to selectpublic void selectAll()
public void selectRowByColsValue(nxm.sys.lib.Table colValues)
colValues - column valuespublic void selectRowsByColValue(java.lang.String colname,
java.lang.String colvalue,
boolean ignoreCase)
colname - column namecolvalue - column valueignoreCase - ignore valuepublic int selectRowByColValue(java.lang.String colname,
java.lang.String colvalue,
boolean ignorecase)
colname - column namecolvalue - column valueignorecase - true to ignore casepublic void selectRow(int row)
row - row indexpublic void deSelectRow(int row)
row - Row index 1...npublic void selectRow(int row,
boolean clear)
row - row numberclear - clear previous selectionspublic void selectColumn(int column)
column - column indexpublic void selectCells(nxm.sys.lib.Table t)
t - table describing cells to selectpublic void applyTemplate()
public void applyTemplate(nxm.sys.lib.Keywords keywds)
keywds - keywordspublic void sort(java.lang.String subrToSort,
boolean sortDesc)
subrToSort - subrecord to sortsortDesc - true if descending sortpublic void sort(java.lang.String subrToSort)
subrToSort - sub-record to sortpublic void sort()
public void processSelection(java.lang.String type,
int selRow,
int[] selCols)
type - selection typeselRow - selection rowselCols - columns selectedpublic void processSelection(java.lang.String type,
int selRow,
int selCol)
type - - ROW, COL, CELLselRow - - Row to selectselCol - - Column to selectpublic java.lang.String[] getKeys()
nxm.sys.inc.KeyablegetKeys in interface nxm.sys.inc.Keyablepublic java.lang.Object setKey(java.lang.String name,
java.lang.Object value)
nxm.sys.inc.KeyablesetKey in interface nxm.sys.inc.Keyablename - The key identifying the value.value - The new value to associate with the key.value) or the value that would be returned by Keyable.getKey(String)
immediately after this method call. Since there can be some ambiguity the return value here should
probably be ignored.public java.lang.Object getKey(java.lang.String name)
nxm.sys.inc.KeyablegetKey in interface nxm.sys.inc.Keyablename - The key identifying the value.public void stateChanged(javax.swing.event.ChangeEvent e)
stateChanged in interface javax.swing.event.ChangeListener