|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--com.klg.jclass.higrid.HiGrid
The core class for JClass HiGrid.
JClass HiGrid is an outline-grid that employs JClass DataSource for managing, displaying and updating master-detail relational data.
Nested Class Summary |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
protected boolean |
adviseClearAllFormats
|
protected com.klg.jclass.higrid.CellStyleModel |
afterDetailsCellStyle
|
protected boolean |
allowPopupMenu
|
protected boolean |
allowRowSelection
|
protected boolean |
allowSorting
|
protected boolean |
autoEdit
|
protected com.klg.jclass.higrid.AutoTraverseCallback |
autoTraverseCallback
|
protected boolean |
batched
|
protected boolean |
beep
|
protected com.klg.jclass.higrid.CellStyleModel |
beforeDetailsCellStyle
|
static int |
CANCEL_ROWS_ALL
Cancel Row Changes Option: Cancel changes for all rows. |
static int |
CANCEL_ROWS_CURRENT
Cancel Row Changes Option: Cancel changes for the current row. |
static int |
CANCEL_ROWS_SELECTED
Cancel Row Changes Option: Cancel changes for the selected rows. |
protected com.klg.jclass.higrid.HiGridColumnSelectionListener |
columnSelectionHandler
|
protected boolean |
connectionsVisible
|
protected com.klg.jclass.higrid.Controller |
controller
|
protected com.klg.jclass.datasource.DataModelListener |
dataModelListener
|
protected Cursor |
defaultCursor
|
protected Comparator |
defaultSortable
|
static int |
DELETE_ROWS_CURRENT
Row Deletion Option: Delete the current row. |
static int |
DELETE_ROWS_SELECTED
Row Deletion Option: Delete the selected rows. |
static int |
EDIT_ENSURE_MINIMUM_SIZE
Use the cell editor's minimum size. |
static int |
EDIT_ENSURE_PREFERRED_SIZE
Use the cell editor's preferred size. |
static int |
EDIT_SIZE_TO_CELL
Fit the cell editor to the cell size. |
protected boolean |
editable
|
protected Border |
editorBorder
|
protected boolean |
editorHidden
|
protected static int |
EDITSTATUS_INDICATOR_CELL
|
protected com.klg.jclass.higrid.HiGridErrorHandler |
errorHandler
|
protected int |
extraWidth
|
protected static int |
FIRST_EDITABLE_COLUMN
|
protected com.klg.jclass.higrid.FolderIconStyle |
folderIconStyle
|
protected com.klg.jclass.higrid.CellStyleModel |
footerCellStyle
|
static int |
HEADER_TIP_DISPLAY_ALWAYS
Always display the header tip for all records. |
static int |
HEADER_TIP_DISPLAY_LIKE_REPEAT_HEADER
Display the header tip only if the header is not visible above similar contiguous records. |
static int |
HEADER_TIP_DISPLAY_MINIMAL
Display the header tip only if the header is not visible in the grid. |
protected com.klg.jclass.higrid.CellStyleModel |
headerCellStyle
|
protected int |
headerTipDisplay
|
protected boolean |
headerTipVisible
|
protected com.klg.jclass.util.JCListenerList |
hiGridColumnSelectionListeners
|
protected com.klg.jclass.util.JCListenerList |
hiGridErrorListeners
|
protected com.klg.jclass.util.JCListenerList |
hiGridExpansionListeners
|
protected com.klg.jclass.util.JCListenerList |
hiGridFormatNodeListeners
|
protected com.klg.jclass.util.JCListenerList |
hiGridMoveCellListeners
|
protected com.klg.jclass.util.JCListenerList |
hiGridPrintListeners
|
protected com.klg.jclass.util.JCListenerList |
hiGridRepaintListeners
|
protected com.klg.jclass.util.JCListenerList |
hiGridResizeCellListeners
|
protected com.klg.jclass.util.JCListenerList |
hiGridRowSelectionListeners
|
protected com.klg.jclass.util.JCListenerList |
hiGridSortTableListeners
|
protected com.klg.jclass.util.JCListenerList |
hiGridTraverseListeners
|
protected com.klg.jclass.util.JCListenerList |
hiGridUpdateListeners
|
protected com.klg.jclass.util.JCListenerList |
hiGridValidateListeners
|
protected int |
horizontalScrollbarConstraints
|
static int |
INITIAL_EDIT_STATUS_WIDTH
|
static int |
INITIAL_EXTRA_WIDTH
|
static int |
INITIAL_LEVEL_INDENT
|
static int |
INITIAL_NODE_WIDTH
|
protected com.klg.jclass.higrid.LookupTable |
lookupTable
|
static int |
MOVE_TO_ROW_HIGRID_FIRST
Move To Row Option: Move to first row of HiGrid. |
static int |
MOVE_TO_ROW_HIGRID_LAST
Move To Row Option: Move to last row of HiGrid. |
static int |
MOVE_TO_ROW_HIGRID_NEXT
Move To Row Option: Move to next row of HiGrid. |
static int |
MOVE_TO_ROW_HIGRID_PREVIOUS
Move To Row Option: Move to previous row of HiGrid. |
static int |
MOVE_TO_ROW_PARENT
Move To Row Option: Move to parent of the current row. |
static int |
MOVE_TO_ROW_TABLE_FIRST
Move To Row Option: Move to first row of the current table. |
static int |
MOVE_TO_ROW_TABLE_LAST
Move To Row Option: Move to last row of the current table. |
static int |
MOVE_TO_ROW_TABLE_NEXT
Move To Row Option: Move to next row of the current table. |
static int |
MOVE_TO_ROW_TABLE_PREVIOUS
Move To Row Option: Move to previous row of the current table. |
protected static int |
NODE_INDICATOR_CELL
|
protected static int |
NUMBER_OF_INDICATOR_CELLS
|
protected com.klg.jclass.higrid.EditPopupMenu |
popupMenu
|
static int |
PRINT_AS_DISPLAYED
Print the rows as displayed. |
static int |
PRINT_AS_EXPANDED
Print the rows expanding all currently expanded format levels. |
static int |
PRINT_EXPAND_ALL
Print the rows expanding all levels. |
protected boolean |
printFoldersAndConnections
|
protected int |
printFormat
|
protected com.klg.jclass.higrid.PrintGrid |
printGrid
|
protected boolean |
printing
|
protected int[] |
printMetaID
|
protected com.klg.jclass.higrid.CellStyleModel |
recordCellStyle
|
static int |
REQUERY_ROWS_ALL
Requery Row Option: Requery all rows. |
static int |
REQUERY_ROWS_RECORD
Requery Row Option: Requery the current row. |
static int |
REQUERY_ROWS_RECORD_AND_DETAILS
Requery Row Option: Requery the current row and its details . |
static int |
REQUERY_ROWS_SELECTED
Requery Row Option: Requery the selected rows. |
static int |
REQUERY_ROWS_SELECTED_AND_DETAILS
Requery Row Option: Requery the selected rows and the details of each selected row. |
static int |
ROW_SELECT_ANY
Row Selection Mode: All record rows are selectable. |
static int |
ROW_SELECT_IN_SAME_LEVEL
Row Selection Mode: All record rows at the same format level are selectable. |
static int |
ROW_SELECT_IN_SAME_TABLE
Row Selection Mode: All record rows in the same data table are selectable. |
protected boolean |
rowHeightResizingAll
|
protected int |
rowSelectionMode
|
protected boolean |
scrollOnMoveEvent
|
static int |
SELECT_ROWS_ALL
Row Selection Option: Select all rows. |
static int |
SELECT_ROWS_ALL_IN_SAME_LEVEL
Row Selection Option: Select the table rows in the same level. |
static int |
SELECT_ROWS_ALL_IN_SAME_TABLE
Row Selection Option: Select the current table rows. |
static int |
SELECT_ROWS_CURRENT
Row Selection Option: Select the current row. |
protected Comparator |
sortable
|
protected boolean |
sortIconsVisible
|
protected boolean |
trackCursor
|
static int |
UPDATE_ROWS_ALL
Update Row Changes Option: Commit the changes for all rows. |
static int |
UPDATE_ROWS_CURRENT
Update Row Changes Option: Commit the changes for the current row . |
static int |
UPDATE_ROWS_SELECTED
Update Row Changes Option: Commit the changes for the selected rows. |
protected int |
verticalScrollbarConstraints
|
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
HiGrid()
|
Method Summary | |
void |
addHiGridColumnSelectionListener(com.klg.jclass.higrid.HiGridColumnSelectionListener listener)
Adds the specified listener to receive HiGridColumnSelectionEvent objects. |
void |
addHiGridErrorListener(com.klg.jclass.higrid.HiGridErrorListener listener)
Adds the specified listener to receive HiGridErrorEvent objects. |
void |
addHiGridExpansionListener(com.klg.jclass.higrid.HiGridExpansionListener listener)
Adds the specified listener to receive HiGridExpansionEvent objects. |
void |
addHiGridFormatNodeListener(com.klg.jclass.higrid.HiGridFormatNodeListener listener)
Adds the specified listener to receive HiGridFormatNodeEvent objects. |
void |
addHiGridMoveCellListener(com.klg.jclass.higrid.HiGridMoveCellListener listener)
Adds the specified listener to receive HiGridMoveCellEvent objects. |
void |
addHiGridPrintListener(com.klg.jclass.higrid.HiGridPrintListener listener)
Adds the specified listener to receive HiGridPrintEvent objects. |
void |
addHiGridRepaintListener(com.klg.jclass.higrid.HiGridRepaintListener listener)
Adds the specified listener to receive HiGridRepaintEvent objects. |
void |
addHiGridResizeCellListener(com.klg.jclass.higrid.HiGridResizeCellListener listener)
Adds the specified listener to receive HiGridResizeCellEvent objects. |
void |
addHiGridRowSelectionListener(com.klg.jclass.higrid.HiGridRowSelectionListener listener)
Adds the specified listener to receive HiGridRowSelectionEvent objects. |
void |
addHiGridSortTableListener(com.klg.jclass.higrid.HiGridSortTableListener listener)
Adds the specified listener to receive HiGridSortTableEvent objects. |
void |
addHiGridTraverseListener(com.klg.jclass.higrid.HiGridTraverseListener listener)
Adds the specified listener to receive HiGridTraverseEvent objects. |
void |
addHiGridUpdateListener(com.klg.jclass.higrid.HiGridUpdateListener listener)
Adds the specified listener to receive HiGridUpdateEvent objects. |
void |
addHiGridValidateListener(com.klg.jclass.higrid.HiGridValidateListener listener)
Adds the specified listener to receive HiGridValidateEvent objects. |
void |
addKeyListener(KeyListener l)
Adds the specified key listener to receive key events from this component. |
void |
addMouseListener(MouseListener l)
Adds the specified mouse listener to receive mouse events from this component. |
void |
addMouseMotionListener(MouseMotionListener l)
Adds the specified mouse motion listener to receive mouse motion events from this component. |
void |
addNotify()
Makes this Component displayable. |
protected static void |
addUnique(Vector v,
Object object)
Adds an item unless it is already there. |
protected void |
calculateWidth(com.klg.jclass.higrid.FormatNode node,
int index)
Calculates the width |
void |
cancelRow(com.klg.jclass.higrid.RowNode rowNode)
Cancel row changes for the indicated rowNode. |
void |
cancelRows(int cancelOption)
Cancel changes for row(s) according to the specified option. |
boolean |
collapseFolder(com.klg.jclass.higrid.RowNode rowNode)
Collapses a folder given a RowNode . |
void |
componentHidden(ComponentEvent event)
Implement ComponentListener interface. |
void |
componentMoved(ComponentEvent event)
Implement ComponentListener interface. |
void |
componentResized(ComponentEvent event)
Implement ComponentListener interface. |
void |
componentShown(ComponentEvent event)
Implement ComponentListener interface. |
protected String |
convertConstraints(int constraints)
Retrieves the String version of the SwingConstants constraints. |
Border |
createDefaultEditorBorder(Color color,
int lineWidth,
Insets insets)
Creates a default common border used for all cell editors. |
void |
createDefaultTrees()
Ensures that we are ready to display the grid. |
void |
deleteRow(com.klg.jclass.higrid.RowNode rowNode)
Delete the indicated rowNode. |
void |
deleteRows(int deleteOption)
Delete row(s) according to the specified option. |
void |
dispose()
Clears all memory references to enable HiGrid to be garbage collected. |
protected void |
draw(Graphics gc)
This routine will normally be called by a child to display the grid in a sub-window. |
boolean |
expandFolder(com.klg.jclass.higrid.RowNode rowNode)
Expands a folder given a RowNode . |
protected void |
finalize()
|
protected boolean |
fireHiGridColumnSelectionEvent(com.klg.jclass.higrid.HiGridColumnSelectionEvent event)
Notify registered listeners of a grid ColumnSelection event. |
protected boolean |
fireHiGridErrorEvent(com.klg.jclass.higrid.HiGridErrorEvent event)
Notify registered listeners of a grid Error event. |
protected boolean |
fireHiGridExpansionEvent(com.klg.jclass.higrid.HiGridExpansionEvent event)
Notify registered listeners of a grid Expansion event. |
protected boolean |
fireHiGridFormatNodeEvent(com.klg.jclass.higrid.HiGridFormatNodeEvent event)
Notify registered listeners of a grid FormatNode event. |
protected boolean |
fireHiGridMoveCellEvent(com.klg.jclass.higrid.HiGridMoveCellEvent event)
Notify registered listeners of a grid MoveCell event. |
protected void |
fireHiGridPrintEvent(com.klg.jclass.higrid.HiGridPrintEvent event)
Notify registered listeners of a grid print event. |
protected boolean |
fireHiGridRepaintEvent(com.klg.jclass.higrid.HiGridRepaintEvent event)
Notify registered listeners of a grid Repaint event. |
protected boolean |
fireHiGridResizeCellEvent(com.klg.jclass.higrid.HiGridResizeCellEvent event)
Notify registered listeners of a grid ResizeCell event. |
protected boolean |
fireHiGridRowSelectionEvent(com.klg.jclass.higrid.HiGridRowSelectionEvent event)
Notify registered listeners of a grid RowSelection event. |
protected boolean |
fireHiGridSortTableEvent(com.klg.jclass.higrid.HiGridSortTableEvent event)
Notify registered listeners of a grid SortTable event. |
protected boolean |
fireHiGridTraverseEvent(com.klg.jclass.higrid.HiGridTraverseEvent event)
Notify registered listeners of a grid Traverse event. |
protected boolean |
fireHiGridUpdateEvent(com.klg.jclass.higrid.HiGridUpdateEvent event)
Notify registered listeners of a grid Update event. |
void |
generateError()
Test routine to generate an error. |
com.klg.jclass.higrid.CellStyleModel |
getAfterDetailsCellStyle()
Returns the current after details cellStyle. |
com.klg.jclass.higrid.AutoTraverseCallback |
getAutoTraverseCallback()
Returns the HiGrid AutoTraverseCallback. |
com.klg.jclass.higrid.CellStyleModel |
getBeforeDetailsCellStyle()
Returns the current before details cellStyle. |
Object |
getCellData(com.klg.jclass.higrid.CellPosition cell)
Retrieves the data from the indicated cell. |
com.klg.jclass.higrid.CellPosition |
getCellPositionFromPoint(Point point)
Retrieves the cell from the specified point. |
com.klg.jclass.higrid.CellStyleModel |
getCellStyle(int rowFormatType)
Returns the current cellStyle corresponding to the RowFormat type. |
com.klg.jclass.higrid.HiGridColumnSelectionListener |
getColumnSelectionHandler()
Retrieves the column selection handler. |
com.klg.jclass.higrid.Controller |
getController()
Gets the Controller object for this grid. |
protected com.klg.jclass.higrid.CellPosition |
getCurrentCell()
Retrieves the cell that the cell editor is on. |
com.klg.jclass.higrid.CellPosition |
getCurrentCellPosition()
Retrieves the cell that the cell editor is on. |
com.klg.jclass.higrid.RowNode |
getCurrentRowNode()
Retrieves the current row node (the row that the cell editor is currently on.) |
com.klg.jclass.datasource.DataModel |
getDataModel()
Retrieves the datasource model for this object. |
com.klg.jclass.datasource.DataModelListener |
getDataModelListener()
Gets the DataModelListener object for this grid. |
Cursor |
getDefaultCursor()
Retrieves the default global cursor used by HiGrid. |
Border |
getDefaultEditorBorder()
Retrieves the default common border used for all cell editors. |
Comparator |
getDefaultSortable()
Returns the default HiGrid sortable. |
Border |
getEditorBorder()
Retrieves the common border used for all cell editors. |
com.klg.jclass.higrid.EditPopupMenu |
getEditPopupMenu()
Retrieves the edit popup menu. |
int |
getEditStatusWidth()
Retrieves the edit status width in pixels for all levels. |
com.klg.jclass.higrid.HiGridErrorHandler |
getErrorHandler()
Retrieves the error handler. |
int |
getExtraWidth()
Returns the number of extra pixels to draw at the rightmost end of HiGrid. |
Image |
getFolderIcon(int type)
Retrieves the folder icon image for the given folder state. |
int |
getFolderIconStyle()
Retrieves the folder icon style index. |
com.klg.jclass.higrid.CellStyleModel |
getFooterCellStyle()
Returns the current footer cellStyle. |
com.klg.jclass.higrid.FormatTree |
getFormatTree()
Retrieves the format tree. |
protected static Frame |
getFrame(Component comp)
Gets the Frame containing the Component . |
JComponent |
getGridArea()
Gets the grid area. |
com.klg.jclass.higrid.CellStyleModel |
getHeaderCellStyle()
Returns the current header cellStyle. |
int |
getHeaderTipDisplay()
Retrieves when the header tooltip will be displayed. |
com.klg.jclass.higrid.CellPosition |
getHorizontalScrollableCellPositionFromPoint(Point point)
Retrieves the cell from the specified point. |
com.klg.jclass.higrid.GridScrollbar |
getHorizontalScrollbar()
|
int |
getHorizontalScrollbarConstraints()
Retrieves the horizontal scrollbar constraints. |
int |
getHorizontalScrollbarDisplay()
Retrieves the horizontal scrollbar display mode. |
protected int |
getIndicatorIndex(com.klg.jclass.higrid.FormatNode formatNode,
int cellType)
|
protected int |
getIndicatorIndex(Vector indicatorFormats,
int cellType)
Gets the indicator index based on its cell type. |
com.klg.jclass.higrid.LookupTable |
getLookupTable()
Retrieves the lookup table. |
Dimension |
getMinimumSize()
Gets the minimum allowable size for the grid. |
int |
getNodeWidth()
Retrieves the node width in pixels for all levels. |
Point |
getPointFromCellPosition(com.klg.jclass.higrid.CellPosition cell)
Retrieves the point from the specified cell. |
Point |
getPointFromHorizontalScrollableCellPosition(com.klg.jclass.higrid.CellPosition cell)
Retrieves the point from the specified cell. |
int |
getPrintColumnPageIndex()
Returns the printing column page index value. |
int |
getPrintFormat()
Returns the print format. |
com.klg.jclass.higrid.PrintGrid12 |
getPrintGrid()
Returns the print grid object. |
int |
getPrintRowPageIndex()
Returns the printing row page index value. |
com.klg.jclass.higrid.CellStyleModel |
getRecordCellStyle()
Returns the current record cellStyle. |
int |
getRowIndex(com.klg.jclass.higrid.RowNode rowNode)
Converts a RowNode to its index in the RowTree |
com.klg.jclass.higrid.RowNode |
getRowNode(int index)
Converts an index to a RowNode |
com.klg.jclass.higrid.RowNode |
getRowNode(long bookmark)
Get the row node given the bookmark. |
int |
getRowSelectionMode()
Retrieves the row selection mode. |
com.klg.jclass.higrid.RowTree |
getRowTree()
Retrieves the row tree. |
Enumeration |
getSelectedRows()
Returns an enumeration of the selected row items. |
Comparator |
getSortable()
Returns the HiGrid sortable. |
com.klg.jclass.higrid.RowNode[] |
getTableRowNodes(com.klg.jclass.higrid.RowNode rowNode)
Returns all of the RowNodes that exist in the given dataTable, in the order that they visually appear. |
int |
getTopRowIndex()
Retrieves the topmost visible row. |
com.klg.jclass.higrid.RowNode |
getTopRowNode()
Retrieves the topmost visible RowNode. |
com.klg.jclass.higrid.HiGridUI |
getUI()
Returns the UI for HiGrid. |
String |
getUIClassID()
Returns the UIClass ID for HiGrid. |
com.klg.jclass.higrid.GridScrollbar |
getVerticalScrollbar()
Gets the vertical scrollbar for this component. |
int |
getVerticalScrollbarConstraints()
Retrieves the vertical scrollbar constraints. |
int |
getVerticalScrollbarDisplay()
Retrieves the vertical scrollbar display mode. |
void |
insertRow(com.klg.jclass.higrid.RowNode rowNode)
Insert a row in the same table as the indicated rowNode. |
boolean |
isAllowPopupMenu()
Retrieves whether the context menu is allowed to be displayed. |
boolean |
isAllowRowSelection()
Retrieves whether user row selection is allowed. |
boolean |
isAllowSorting()
Retrieves whether user sorting is supported. |
boolean |
isAutoEdit()
Retrieves whether a cell editor is automatically popped up when a cell is traversed to via the keyboard. |
boolean |
isBatched()
Retrieves whether subsequent property changes are batched. |
boolean |
isBeepOnInvalid()
Returns the value of beepOnInvalid. |
boolean |
isConnectionsVisible()
Returns whether the connection lines are visible. |
protected boolean |
isDrawingFoldersAndConnections()
Determines if showing or printing folders and connections. |
boolean |
isEditable()
Retrieves whether input is allowed for this object. |
boolean |
isEditorHidden()
Retrieves whether the editor is hidden. |
boolean |
isFocusTraversable()
Returns whether this component can be traversed using Tab or Shift-Tab keyboard focus traversal. |
boolean |
isHeaderTipVisible()
Retrieves whether the header tooltip is visible. |
boolean |
isLevelIndented()
Retrieves whether levels are indented. |
boolean |
isPrintFoldersAndConnections()
Returns the print folder nodes and connection lines indication. |
boolean |
isPrinting()
Returns the printing status. |
protected boolean |
isPrintingSubsequentColumnPages()
Determines if printing subsequent column pages. |
boolean |
isRowHeightResizingAll()
Returns the value of rowHeightResizingAll. |
boolean |
isRowtipVisible()
Retrieves whether the row tip is visible. |
boolean |
isScrollOnMoveEvent()
Returns whether to synchronize scrolling with DataModel row moved events. |
boolean |
isSortIconsVisible()
Returns whether the sort icons are visible. |
boolean |
isTrackCursor()
Gets the grid's TrackCursor value to determine whether the
mouse pointer is being tracked as the user moves the mouse. |
protected void |
layoutGrid()
Performs a layout for the grid. |
protected com.klg.jclass.higrid.CellPosition |
makeCellPosition(com.klg.jclass.higrid.RowNode rowNode,
int cellType)
Returns a CellPosition for the given type of cell. |
protected com.klg.jclass.higrid.HiGridValidateEvent |
makeValidateEvent(int eventType,
com.klg.jclass.cell.validate.JCValidateEvent event)
|
boolean |
moveCellEditor(com.klg.jclass.higrid.RowNode rowNode,
int column)
Moves the cell editor to a new row and column. |
void |
moveToRow(int moveToRowOption)
Move to row according to the specified option. |
void |
moveToRow(long bookmark)
Move to row specified by the bookmark. |
void |
moveToRow(com.klg.jclass.higrid.RowNode rowNode)
Move to row specified by the bookmark. |
void |
print()
Prints the grid without prompting the user in the default page orientation. |
void |
print(boolean displayPrintDialog)
Prints the grid with an optional user dialog. |
void |
print(int printFormat)
Prints the grid. |
void |
print(PageFormat pageFormat)
Prints the grid with the specified pageFormat. |
void |
print(PrinterJob job,
boolean displayPrintDialog,
PageFormat pageFormat)
Prints the grid. |
void |
printPreview()
Print preview the grid. |
protected void |
printStackTrace()
|
protected void |
recalculateRowFormats(int index)
Recalculates the RowFormat s. |
void |
refresh()
Redraw the entire grid. |
protected void |
refresh(boolean rebuildDoubleBuffer)
Refreshes the grid area if the passed-parameter is true. |
protected void |
refresh(boolean rebuildDoubleBuffer,
boolean positionEditor)
Refreshes the grid area if the passed-parameters are true. |
protected void |
refresh(int pixels)
Refreshes an area given specified by pixels . |
protected void |
refresh(com.klg.jclass.higrid.RowNode oldTopRowNode,
com.klg.jclass.higrid.RowNode newTopRowNode,
boolean downward)
|
protected void |
refreshCell(com.klg.jclass.higrid.CellPosition cell)
Refreshes the cell. |
protected void |
refreshChildrenRows(com.klg.jclass.higrid.RowNode rowNode)
Refreshes the children of RowNode . |
protected void |
refreshEditStatus(com.klg.jclass.higrid.CellPosition cell,
boolean refresh)
Refreshes the edit status cell. |
protected void |
refreshEditStatus(com.klg.jclass.higrid.RowNode rowNode)
Refreshes the edit status cell. |
protected void |
refreshGridArea()
Refreshes the grid area. |
protected void |
refreshGridArea(int pixels)
Refreshes a portion of the grid area. |
protected void |
refreshGridArea(int x,
int y,
int width,
int height)
Refreshes the grid area based on the coordinates and dimension. |
protected void |
refreshRow(com.klg.jclass.higrid.RowNode rowNode)
|
protected void |
refreshRowAndBelow(com.klg.jclass.higrid.RowNode rowNode,
int currentState)
Refreshes rows that depend on RowNode . |
protected void |
refreshRows(int y,
int height)
Refreshes rows. |
protected void |
refreshRowsWithoutEditor(int y,
int height)
Refreshes rows. |
protected void |
refreshRowWithoutEditor(com.klg.jclass.higrid.RowNode rowNode)
Refreshes rows. |
void |
removeHiGridColumnSelectionListener(com.klg.jclass.higrid.HiGridColumnSelectionListener listener)
Removes the specified listener so it no longer receives HiGridColumnSelectionEvent objects. |
void |
removeHiGridErrorListener(com.klg.jclass.higrid.HiGridErrorListener listener)
Removes the specified listener so it no longer receives HiGridErrorEvent objects. |
void |
removeHiGridExpansionListener(com.klg.jclass.higrid.HiGridExpansionListener listener)
Removes the specified listener so it no longer receives HiGridExpansionEvent objects. |
void |
removeHiGridFormatNodeListener(com.klg.jclass.higrid.HiGridFormatNodeListener listener)
Removes the specified listener so it no longer receives HiGridFormatNodeEvent objects. |
void |
removeHiGridMoveCellListener(com.klg.jclass.higrid.HiGridMoveCellListener listener)
Removes the specified listener so it no longer receives HiGridMoveCellEvent objects. |
void |
removeHiGridPrintListener(com.klg.jclass.higrid.HiGridPrintListener listener)
Removes the specified listener so it no longer receives HiGridPrintEvent objects. |
void |
removeHiGridRepaintListener(com.klg.jclass.higrid.HiGridRepaintListener listener)
Removes the specified listener so it no longer receives HiGridRepaintEvent objects. |
void |
removeHiGridResizeCellListener(com.klg.jclass.higrid.HiGridResizeCellListener listener)
Removes the specified listener so it no longer receives HiGridResizeCellEvent objects. |
void |
removeHiGridRowSelectionListener(com.klg.jclass.higrid.HiGridRowSelectionListener listener)
Removes the specified listener so it no longer receives HiGridRowSelectionEvent objects. |
void |
removeHiGridSortTableListener(com.klg.jclass.higrid.HiGridSortTableListener listener)
Removes the specified listener so it no longer receives HiGridSortTableEvent objects. |
void |
removeHiGridTraverseListener(com.klg.jclass.higrid.HiGridTraverseListener listener)
Removes the specified listener so it no longer receives HiGridTraverseEvent objects. |
void |
removeHiGridUpdateListener(com.klg.jclass.higrid.HiGridUpdateListener listener)
Removes the specified listener so it no longer receives HiGridUpdateEvent objects. |
void |
removeHiGridValidateListener(com.klg.jclass.higrid.HiGridValidateListener listener)
Removes the specified listener so it no longer receives HiGridValidateEvent objects. |
void |
removeKeyListener(KeyListener l)
Removes the specified key listener so that it no longer receives key events from this component. |
void |
removeMouseListener(MouseListener l)
Removes the specified mouse listener so that it no longer receives mouse events from this component. |
void |
removeMouseMotionListener(MouseMotionListener l)
Removes the specified mouse motion listener so that it no longer receives mouse motion events from this component. |
protected void |
removeOldReferences()
Remove references to previous DataModels so they can be garbage collected. |
void |
requeryRow(com.klg.jclass.higrid.RowNode rowNode)
Requery the indicated rowNode. |
void |
requeryRows(int requeryOption)
Requery the row(s) according to the specified option. |
void |
resetDesignTimeGrid()
Recreates the FormatTree from the current dataModel. |
void |
resetRowSelection()
Reset all selected rows. |
void |
resetRowSelection(boolean refresh)
Reset all selected rows. |
void |
resetRunTimeGrid()
Removes all cached runtime grid information. |
protected void |
resetScrollbarConstraints()
Resets the scrollbar constraints. |
protected void |
resetSortIndications(long row,
boolean checkChildren)
Reset possible sort indications for the given row and maybe its children as well. |
void |
resetSortIndications(com.klg.jclass.higrid.RowNode rowNode,
boolean checkChildren)
Reset the sort indications. |
protected void |
resetSortIndicationsInternal(com.klg.jclass.higrid.RowNode rowNode,
boolean checkChildren)
Helper recursive method to reset the sort indications. |
void |
selectRows(int selectOption)
Select row(s) according to the specified option. |
protected void |
setAfterDetailsCellStyle(com.klg.jclass.higrid.CellStyleModel cellStyle)
Sets the current after details cellStyle. |
void |
setAllowPopupMenu(boolean allow)
Sets whether the popup context menu is allowed to be displayed. |
void |
setAllowRowSelection(boolean allow)
Sets whether user row selection is allowed. |
void |
setAllowSorting(boolean allow)
Sets whether user sorting is supported. |
void |
setAutoEdit(boolean autoEdit)
Sets whether a cell editor is automatically popped up when a cell is traversed to via the keyboard. |
void |
setAutoTraverseCallback(com.klg.jclass.higrid.AutoTraverseCallback callback)
Sets the HiGrid AutoTraverseCallback. |
void |
setBackground(Color color)
Sets the background color for the entire grid. |
void |
setBatched(boolean batched)
Sets whether subsequent property changes are batched. |
void |
setBeepOnInvalid(boolean beep)
Sets the value of beepOnInvalid. |
protected void |
setBeforeDetailsCellStyle(com.klg.jclass.higrid.CellStyleModel cellStyle)
Sets the current before details cellStyle. |
void |
setColumnSelectionHandler(com.klg.jclass.higrid.HiGridColumnSelectionListener handler)
Sets the column selection handler. |
void |
setConnectionsVisible(boolean connections)
Sets whether the connection lines are visible. |
void |
setController(com.klg.jclass.higrid.Controller controller)
Sets the controller for the grid. |
void |
setDataModel(com.klg.jclass.datasource.DataModel dataModel)
Sets the datasource model for the higrid. |
protected void |
setDataModelListener(com.klg.jclass.datasource.DataModelListener listener)
Sets the DataModelListener object for this grid. |
void |
setDefaultCursor(Cursor defaultCursor)
Sets the default global cursor used by HiGrid. |
void |
setDefaultCursor(int type)
Sets the global cursor when cursor tracking is off. |
void |
setEditable(boolean editable)
Sets whether input is currently allowed. |
void |
setEditorBorder(Border border)
Sets the common border used for all cell editors. |
void |
setEditorHidden(boolean hidden)
Sets whether the editor is hidden. |
void |
setEditPopupMenu(com.klg.jclass.higrid.EditPopupMenu popupMenu)
Sets the edit popup menu. |
void |
setEditStatusWidth(int width)
Sets the edit status width in pixels for all levels. |
void |
setErrorHandler(com.klg.jclass.higrid.HiGridErrorHandler handler)
Sets the error handler. |
void |
setExtraWidth(int width)
Sets the number of extra pixels to draw at the rightmost end of HiGrid. |
void |
setFolderIcon(Image icon,
int type)
Sets the folder icon image for the given folder state. |
void |
setFolderIconStyle(int style)
Set the folder icon given the style index. |
protected void |
setFooterCellStyle(com.klg.jclass.higrid.CellStyleModel cellStyle)
Sets the current footer cellStyle. |
void |
setFormatTree(com.klg.jclass.higrid.FormatTree formatTree)
Sets the format tree. |
void |
setGridArea(com.klg.jclass.higrid.GridArea gridArea)
Sets the GridArea object for this grid. |
protected void |
setHeaderCellStyle(com.klg.jclass.higrid.CellStyleModel cellStyle)
Sets the current header cellStyle. |
void |
setHeaderTipDisplay(int display)
Sets when the header tooltip will be displayed. |
void |
setHeaderTipVisible(boolean visible)
Sets whether the header tooltip is visible. |
void |
setHorizontalScrollbarConstraints(int constraints)
Sets the horizontal scrollbar constraints. |
void |
setHorizontalScrollbarDisplay(int display)
Sets the horizontal scrollbar display mode. |
void |
setLayout(LayoutManager mgr)
Sets the layout manager for this container. |
void |
setLevelIndented(boolean indent)
Sets whether levels are indented. |
void |
setLookupTable(com.klg.jclass.higrid.LookupTable lookupTable)
Sets the lookup table. |
void |
setNodeWidth(int width)
Sets the node width in pixels for all levels. |
void |
setPrintFoldersAndConnections(boolean printConnections)
Sets the print folder nodes and connection lines indication. |
void |
setPrintFormat(int printFormat)
Sets the print format. |
protected void |
setPrintGrid(com.klg.jclass.higrid.PrintGrid grid)
Sets the PrintGrid object for this grid. |
void |
setPrinting(boolean printing)
Sets the printing status. |
protected void |
setRecordCellStyle(com.klg.jclass.higrid.CellStyleModel cellStyle)
Sets the current record cellStyle. |
void |
setRowHeightResizingAll(boolean rowHeightResizingAll)
Sets the value of rowHeightResizingAll. |
void |
setRowSelectionMode(int selectionMode)
Sets the row selection mode. |
void |
setRowtipVisible(boolean visible)
Sets whether the row tip is visible. |
void |
setRowTree(com.klg.jclass.higrid.RowTree rowTree)
Sets the row tree. |
void |
setScrollOnMoveEvent(boolean scrollOnMoveEvent)
Sets whether to synchronize scrolling upon receipt of a current row change event. |
void |
setSortable(Comparator sortable)
Sets the HiGrid sortable. |
void |
setSortIconsVisible(boolean sortIcons)
Sets whether the sort icons are visible. |
void |
setTopRowBookmark(long bookmark)
Sets the topmost visible row to the passed bookmark. |
void |
setTopRowIndex(int index)
Sets the topmost visible row to RowNode indexed by the passed value. |
void |
setTopRowNode(com.klg.jclass.higrid.RowNode rowNode)
Sets the topmost visible row to the passed RowNode. |
void |
setTrackCursor(boolean trackCursor)
Sets whether the mouse pointer should be tracked as a user moves the mouse across the grid. |
void |
setUI(ComponentUI newUI)
Sets the UI for HiGrid. |
void |
setVerticalScrollbarConstraints(int constraints)
Sets the vertical scrollbar constraints. |
void |
setVerticalScrollbarDisplay(int display)
Sets the vertical scrollbar display mode. |
void |
sortDataTable(com.klg.jclass.higrid.CellPosition cell,
boolean multipleTableSort)
Sort the data table(s) by the specified cellPosition. |
void |
sortDataTable(com.klg.jclass.higrid.RowNode rowNode,
String columnID,
int direction,
boolean makeDefault)
Sort the indicated data table by the specified column. |
void |
stateIsInvalid(com.klg.jclass.cell.validate.JCValidateEvent event)
Invoked if the state is changed to INVALID. |
void |
toggleRowSelection(com.klg.jclass.higrid.RowNode rowNode,
boolean allowMultipleSelections)
Toggle the selected status of the indicated rowNode. |
void |
toggleRowSelection(com.klg.jclass.higrid.RowNode rowNode,
boolean allowMultipleSelections,
boolean refresh)
Toggle the selected status of the indicated rowNode. |
void |
updateRow(com.klg.jclass.higrid.RowNode rowNode)
Update row changes for the indicated rowNode. |
void |
updateRows(int updateOption)
Update changes for row(s) according to the specified option. |
void |
updateUI()
Updates the UI for HiGrid. |
void |
valueChangedBegin(com.klg.jclass.cell.validate.JCValidateEvent event)
Invoked just before the internal value of the field is changed. |
void |
valueChangedEnd(com.klg.jclass.cell.validate.JCValidateEvent event)
Invoked just after the internal value of the field has been changed. |
protected void |
walkFormatTree(com.klg.jclass.higrid.FormatNode node,
int index)
Visits all the nodes of the FormatTree . |
protected void |
widthChanged(Vector v,
int index)
|
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int ROW_SELECT_ANY
public static final int ROW_SELECT_IN_SAME_LEVEL
public static final int ROW_SELECT_IN_SAME_TABLE
public static final int SELECT_ROWS_CURRENT
public static final int SELECT_ROWS_ALL_IN_SAME_LEVEL
public static final int SELECT_ROWS_ALL_IN_SAME_TABLE
public static final int SELECT_ROWS_ALL
public static final int DELETE_ROWS_CURRENT
public static final int DELETE_ROWS_SELECTED
public static final int CANCEL_ROWS_CURRENT
public static final int CANCEL_ROWS_SELECTED
public static final int CANCEL_ROWS_ALL
public static final int UPDATE_ROWS_CURRENT
public static final int UPDATE_ROWS_SELECTED
public static final int UPDATE_ROWS_ALL
public static final int REQUERY_ROWS_RECORD
public static final int REQUERY_ROWS_RECORD_AND_DETAILS
public static final int REQUERY_ROWS_SELECTED
public static final int REQUERY_ROWS_SELECTED_AND_DETAILS
public static final int REQUERY_ROWS_ALL
public static final int MOVE_TO_ROW_HIGRID_FIRST
public static final int MOVE_TO_ROW_HIGRID_PREVIOUS
public static final int MOVE_TO_ROW_HIGRID_NEXT
public static final int MOVE_TO_ROW_HIGRID_LAST
public static final int MOVE_TO_ROW_TABLE_FIRST
public static final int MOVE_TO_ROW_TABLE_PREVIOUS
public static final int MOVE_TO_ROW_TABLE_NEXT
public static final int MOVE_TO_ROW_TABLE_LAST
public static final int MOVE_TO_ROW_PARENT
public static final int PRINT_AS_DISPLAYED
public static final int PRINT_AS_EXPANDED
public static final int PRINT_EXPAND_ALL
public static final int EDIT_SIZE_TO_CELL
public static final int EDIT_ENSURE_MINIMUM_SIZE
public static final int EDIT_ENSURE_PREFERRED_SIZE
public static final int HEADER_TIP_DISPLAY_MINIMAL
public static final int HEADER_TIP_DISPLAY_LIKE_REPEAT_HEADER
public static final int HEADER_TIP_DISPLAY_ALWAYS
public static final int INITIAL_NODE_WIDTH
public static final int INITIAL_EDIT_STATUS_WIDTH
public static final int INITIAL_LEVEL_INDENT
public static final int INITIAL_EXTRA_WIDTH
protected static final int NODE_INDICATOR_CELL
protected static final int EDITSTATUS_INDICATOR_CELL
protected static final int NUMBER_OF_INDICATOR_CELLS
protected static final int FIRST_EDITABLE_COLUMN
protected com.klg.jclass.higrid.Controller controller
protected com.klg.jclass.higrid.LookupTable lookupTable
protected com.klg.jclass.higrid.FolderIconStyle folderIconStyle
protected com.klg.jclass.datasource.DataModelListener dataModelListener
protected boolean autoEdit
protected boolean batched
protected boolean beep
protected boolean connectionsVisible
protected Cursor defaultCursor
protected boolean editable
protected boolean editorHidden
protected int extraWidth
protected boolean headerTipVisible
protected int headerTipDisplay
protected boolean rowHeightResizingAll
protected boolean sortIconsVisible
protected boolean trackCursor
protected int verticalScrollbarConstraints
protected int horizontalScrollbarConstraints
protected Border editorBorder
protected com.klg.jclass.higrid.CellStyleModel headerCellStyle
protected com.klg.jclass.higrid.CellStyleModel recordCellStyle
protected com.klg.jclass.higrid.CellStyleModel footerCellStyle
protected com.klg.jclass.higrid.CellStyleModel beforeDetailsCellStyle
protected com.klg.jclass.higrid.CellStyleModel afterDetailsCellStyle
protected boolean scrollOnMoveEvent
protected com.klg.jclass.higrid.HiGridErrorHandler errorHandler
protected com.klg.jclass.higrid.HiGridColumnSelectionListener columnSelectionHandler
protected com.klg.jclass.util.JCListenerList hiGridColumnSelectionListeners
protected com.klg.jclass.util.JCListenerList hiGridErrorListeners
protected com.klg.jclass.util.JCListenerList hiGridExpansionListeners
protected com.klg.jclass.util.JCListenerList hiGridFormatNodeListeners
protected com.klg.jclass.util.JCListenerList hiGridMoveCellListeners
protected com.klg.jclass.util.JCListenerList hiGridPrintListeners
protected com.klg.jclass.util.JCListenerList hiGridRepaintListeners
protected com.klg.jclass.util.JCListenerList hiGridResizeCellListeners
protected com.klg.jclass.util.JCListenerList hiGridRowSelectionListeners
protected com.klg.jclass.util.JCListenerList hiGridSortTableListeners
protected com.klg.jclass.util.JCListenerList hiGridTraverseListeners
protected com.klg.jclass.util.JCListenerList hiGridUpdateListeners
protected com.klg.jclass.util.JCListenerList hiGridValidateListeners
protected com.klg.jclass.higrid.AutoTraverseCallback autoTraverseCallback
protected boolean allowPopupMenu
protected com.klg.jclass.higrid.EditPopupMenu popupMenu
protected boolean allowRowSelection
protected int rowSelectionMode
protected boolean printing
protected com.klg.jclass.higrid.PrintGrid printGrid
protected boolean printFoldersAndConnections
protected int printFormat
protected int[] printMetaID
protected boolean allowSorting
protected Comparator defaultSortable
protected Comparator sortable
protected transient boolean adviseClearAllFormats
Constructor Detail |
public HiGrid()
Method Detail |
public void addNotify()
addNotify
in class JComponent
public com.klg.jclass.higrid.HiGridUI getUI()
public void setUI(ComponentUI newUI)
setUI
in class JComponent
public void updateUI()
updateUI
in class JComponent
public String getUIClassID()
getUIClassID
in class JComponent
public void addMouseListener(MouseListener l)
addMouseListener
in class Component
public void removeMouseListener(MouseListener l)
removeMouseListener
in class Component
public void addMouseMotionListener(MouseMotionListener l)
addMouseMotionListener
in class Component
public void removeMouseMotionListener(MouseMotionListener l)
removeMouseMotionListener
in class Component
public void addKeyListener(KeyListener l)
addKeyListener
in class Component
public void removeKeyListener(KeyListener l)
removeKeyListener
in class Component
public JComponent getGridArea()
public void setGridArea(com.klg.jclass.higrid.GridArea gridArea)
GridArea
object for this grid.
public com.klg.jclass.higrid.Controller getController()
Controller
object for this grid.
public void setController(com.klg.jclass.higrid.Controller controller)
public com.klg.jclass.datasource.DataModelListener getDataModelListener()
DataModelListener
object for this grid.
protected void setDataModelListener(com.klg.jclass.datasource.DataModelListener listener)
DataModelListener
object for this grid.
public com.klg.jclass.higrid.GridScrollbar getVerticalScrollbar()
public com.klg.jclass.higrid.GridScrollbar getHorizontalScrollbar()
protected void resetScrollbarConstraints()
public com.klg.jclass.higrid.LookupTable getLookupTable()
public void setLookupTable(com.klg.jclass.higrid.LookupTable lookupTable)
lookupTable
- The Lookup Table for Cell Editors and Renderers.public com.klg.jclass.higrid.FormatTree getFormatTree()
public void setFormatTree(com.klg.jclass.higrid.FormatTree formatTree)
formatTree
- The format tree.public com.klg.jclass.higrid.RowTree getRowTree()
public void setRowTree(com.klg.jclass.higrid.RowTree rowTree)
rowTree
- The row tree.public com.klg.jclass.higrid.HiGridErrorHandler getErrorHandler()
public void setErrorHandler(com.klg.jclass.higrid.HiGridErrorHandler handler)
handler
- The new error handler.public com.klg.jclass.higrid.HiGridColumnSelectionListener getColumnSelectionHandler()
public void setColumnSelectionHandler(com.klg.jclass.higrid.HiGridColumnSelectionListener handler)
handler
- The new column selection handler.public com.klg.jclass.higrid.AutoTraverseCallback getAutoTraverseCallback()
public void setAutoTraverseCallback(com.klg.jclass.higrid.AutoTraverseCallback callback)
public Comparator getDefaultSortable()
com.sun.java.util.collections.Comparator
class.public com.klg.jclass.higrid.CellStyleModel getCellStyle(int rowFormatType)
rowFormatType
- a value in the range from FormatNode.FIRST_FORMAT
to FormatNode.LAST_FORMAT.
public com.klg.jclass.higrid.CellStyleModel getHeaderCellStyle()
protected void setHeaderCellStyle(com.klg.jclass.higrid.CellStyleModel cellStyle)
cellStyle
- The current header cellStyle.public com.klg.jclass.higrid.CellStyleModel getRecordCellStyle()
protected void setRecordCellStyle(com.klg.jclass.higrid.CellStyleModel cellStyle)
cellStyle
- The current record cellStyle.public com.klg.jclass.higrid.CellStyleModel getFooterCellStyle()
protected void setFooterCellStyle(com.klg.jclass.higrid.CellStyleModel cellStyle)
cellStyle
- The current footer cellStyle.public com.klg.jclass.higrid.CellStyleModel getBeforeDetailsCellStyle()
protected void setBeforeDetailsCellStyle(com.klg.jclass.higrid.CellStyleModel cellStyle)
cellStyle
- The current before details cellStyle.public com.klg.jclass.higrid.CellStyleModel getAfterDetailsCellStyle()
protected void setAfterDetailsCellStyle(com.klg.jclass.higrid.CellStyleModel cellStyle)
cellStyle
- The current after details cellStyle.public Comparator getSortable()
com.sun.java.util.collections.Comparator
class.public void setSortable(Comparator sortable)
sortable
- The HiGrid sortable.com.sun.java.util.collections.Comparator
.public int getVerticalScrollbarDisplay()
public void setVerticalScrollbarDisplay(int display)
display
- The display mode.public int getHorizontalScrollbarDisplay()
public void setHorizontalScrollbarDisplay(int display)
display
- The display mode.public int getHorizontalScrollbarConstraints()
public void setHorizontalScrollbarConstraints(int constraints)
constraints
- The SwingConstants constraints.public int getVerticalScrollbarConstraints()
public void setVerticalScrollbarConstraints(int constraints)
constraints
- The SwingConstants constraints.protected String convertConstraints(int constraints)
constraints
- The SwingConstants constraints.
public Border getEditorBorder()
public void setEditorBorder(Border border)
border
- The border used by all cell editors.public Border getDefaultEditorBorder()
public Border createDefaultEditorBorder(Color color, int lineWidth, Insets insets)
color
- the color of the borderlineWidth
- the width of the borderinsets
- the editor insets
public boolean isAutoEdit()
public void setAutoEdit(boolean autoEdit)
autoEdit
- The new autoEdit value.public com.klg.jclass.higrid.RowNode getCurrentRowNode()
public com.klg.jclass.higrid.RowNode getRowNode(long bookmark)
public com.klg.jclass.higrid.RowNode getRowNode(int index)
index
- The index to convert.
public int getRowIndex(com.klg.jclass.higrid.RowNode rowNode)
rowNode
- The row to convert.
public com.klg.jclass.higrid.RowNode[] getTableRowNodes(com.klg.jclass.higrid.RowNode rowNode)
public boolean moveCellEditor(com.klg.jclass.higrid.RowNode rowNode, int column)
rowNode
- The row to move the editor to (must be a RecordFormat)column
- The column index (0 based)
public com.klg.jclass.higrid.RowNode getTopRowNode()
public void setTopRowNode(com.klg.jclass.higrid.RowNode rowNode)
rowNode
- The new topmost visible row.public void setTopRowBookmark(long bookmark)
bookmark
- The bookmark of the row.public int getTopRowIndex()
public void setTopRowIndex(int index)
index
- The new topmost visible row based on this index.public boolean isRowHeightResizingAll()
public void setRowHeightResizingAll(boolean rowHeightResizingAll)
public int getExtraWidth()
public void setExtraWidth(int width)
width
- the new additional widthpublic boolean isBeepOnInvalid()
public void setBeepOnInvalid(boolean beep)
beep
- whether to beep when cell becomes invalidpublic boolean isHeaderTipVisible()
public void setHeaderTipVisible(boolean visible)
visible
- True if the header tooltip is visible.public int getHeaderTipDisplay()
public void setHeaderTipDisplay(int display)
display
- when the header tooltip will be displayed.public boolean isRowtipVisible()
public void setRowtipVisible(boolean visible)
visible
- True if row tip is visible.public boolean isEditorHidden()
public void setEditorHidden(boolean hidden)
hidden
- True if editor is hidden.public boolean isConnectionsVisible()
public void setConnectionsVisible(boolean connections)
connections
- Whether the connection lines are visible.public boolean isSortIconsVisible()
public void setSortIconsVisible(boolean sortIcons)
sortIcons
- Whether the sort icons are visible.public boolean isScrollOnMoveEvent()
setScrollOnMoveEvent(boolean)
public void setScrollOnMoveEvent(boolean scrollOnMoveEvent)
scrollOnMoveEvent
- boolean true means scroll to make
the editor visible; false means don't automatically scroll.public com.klg.jclass.datasource.DataModel getDataModel()
public void setDataModel(com.klg.jclass.datasource.DataModel dataModel)
dataModel
- The new datasource model.protected void removeOldReferences()
public int getFolderIconStyle()
public void setFolderIconStyle(int style)
style
- The folder icon style index.public Image getFolderIcon(int type)
type
- The type of icon to get.
public void setFolderIcon(Image icon, int type)
type
- The type of icon to set.icon
- The new icon of this type.public boolean isBatched()
public void setBatched(boolean batched)
public boolean isLevelIndented()
public void setLevelIndented(boolean indent)
indent
- True if levels are to be indented by the NodeWidth.public int getNodeWidth()
public void setNodeWidth(int width)
width
- The new node width.public int getEditStatusWidth()
public void setEditStatusWidth(int width)
width
- The new width.public boolean isEditable()
public void setEditable(boolean editable)
public void resetSortIndications(com.klg.jclass.higrid.RowNode rowNode, boolean checkChildren)
rowNode
- The row node. If null, reset the entire grid.checkChildren
- True if the row node's children has be
checked as well.protected void resetSortIndications(long row, boolean checkChildren)
row
- The row bookmark.checkChildren
- True if the row node's children has be
checked as well.protected void resetSortIndicationsInternal(com.klg.jclass.higrid.RowNode rowNode, boolean checkChildren)
rowNode
- The row node.checkChildren
- True if the row node's children has be
checked as well.public void sortDataTable(com.klg.jclass.higrid.RowNode rowNode, String columnID, int direction, boolean makeDefault)
rowNode
- A row node of the data table.columnID
- The column to be sorted.direction
- The sorting direction.makeDefault
- Make this the new default sort column and directionpublic void sortDataTable(com.klg.jclass.higrid.CellPosition cell, boolean multipleTableSort)
cell
- The cell position.multipleTableSort
- If true, sort all expanded data tablespublic Object getCellData(com.klg.jclass.higrid.CellPosition cell)
cell
- The cell to extract data from.
public com.klg.jclass.higrid.CellPosition getCurrentCellPosition()
public com.klg.jclass.higrid.CellPosition getCellPositionFromPoint(Point point)
point
- The x,y pixel co-ordinate. This method does not correct
for any horizontal scroll offset. To do that, add
getHorizontalScrollbar().getValue() to the Point's x coordinate.
Alternatively, call getHorizontalScrollableCellPositionFromPoint()
to have the horizontal scroll offset applied automatically.
public Point getPointFromCellPosition(com.klg.jclass.higrid.CellPosition cell)
cell
- The cell to locate.
public com.klg.jclass.higrid.CellPosition getHorizontalScrollableCellPositionFromPoint(Point point)
point
- The x,y pixel co-ordinate. If the grid is scrolled
horizontally, this method will add the horizontal scroll offset
to the Point's x coordinate.
public Point getPointFromHorizontalScrollableCellPosition(com.klg.jclass.higrid.CellPosition cell)
cell
- The cell to locate.
protected com.klg.jclass.higrid.CellPosition getCurrentCell()
public boolean isAllowPopupMenu()
public void setAllowPopupMenu(boolean allow)
allow
- True if popup menu is allowed to be displayed.public com.klg.jclass.higrid.EditPopupMenu getEditPopupMenu()
public void setEditPopupMenu(com.klg.jclass.higrid.EditPopupMenu popupMenu)
popupMenu
- The edit popup menu.public boolean isAllowSorting()
public void setAllowSorting(boolean allow)
allow
- True if user sorting is to be supported.public boolean isTrackCursor()
TrackCursor
value to determine whether the
mouse pointer is being tracked as the user moves the mouse.
setTrackCursor(boolean)
public void setTrackCursor(boolean trackCursor)
HiGrid
tracks the mouse pointer
and changes its shape to reflect the interactions available to the user at
the location. When set false, the grid uses the application-defined pointer.
(Default: true
trackCursor
- whether the mouse pointer should be tracked.public void setDefaultCursor(Cursor defaultCursor)
defaultCursor
- The default global cursor used by HiGrid.setTrackCursor(boolean)
public Cursor getDefaultCursor()
public void setDefaultCursor(int type)
type
- the java.awt.Cursor type (e.g Cursor.WAIT_CURSOR)setTrackCursor(boolean)
protected void draw(Graphics gc)
gc
- The Graphics Context to use.public void createDefaultTrees()
public void resetDesignTimeGrid()
public void resetRunTimeGrid()
public void setBackground(Color color)
setBackground
in class JComponent
color
- The new background color.protected void widthChanged(Vector v, int index)
protected void calculateWidth(com.klg.jclass.higrid.FormatNode node, int index)
protected void walkFormatTree(com.klg.jclass.higrid.FormatNode node, int index)
FormatTree
.
protected void recalculateRowFormats(int index)
RowFormat
s.
protected int getIndicatorIndex(com.klg.jclass.higrid.FormatNode formatNode, int cellType)
protected int getIndicatorIndex(Vector indicatorFormats, int cellType)
protected com.klg.jclass.higrid.CellPosition makeCellPosition(com.klg.jclass.higrid.RowNode rowNode, int cellType)
CellPosition
for the given type of cell.
protected void refreshEditStatus(com.klg.jclass.higrid.RowNode rowNode)
protected void refreshEditStatus(com.klg.jclass.higrid.CellPosition cell, boolean refresh)
protected void refreshCell(com.klg.jclass.higrid.CellPosition cell)
protected void refreshRowsWithoutEditor(int y, int height)
protected void refreshRows(int y, int height)
public boolean expandFolder(com.klg.jclass.higrid.RowNode rowNode)
RowNode
.
public boolean collapseFolder(com.klg.jclass.higrid.RowNode rowNode)
RowNode
.
protected void refreshRowAndBelow(com.klg.jclass.higrid.RowNode rowNode, int currentState)
RowNode
.
protected void refreshRow(com.klg.jclass.higrid.RowNode rowNode)
protected void refreshRowWithoutEditor(com.klg.jclass.higrid.RowNode rowNode)
protected void refreshChildrenRows(com.klg.jclass.higrid.RowNode rowNode)
RowNode
.
protected void refresh(com.klg.jclass.higrid.RowNode oldTopRowNode, com.klg.jclass.higrid.RowNode newTopRowNode, boolean downward)
protected void refresh(int pixels)
pixels
.
public void refresh()
protected void refresh(boolean rebuildDoubleBuffer)
protected void refresh(boolean rebuildDoubleBuffer, boolean positionEditor)
protected void refreshGridArea()
protected void refreshGridArea(int pixels)
protected void refreshGridArea(int x, int y, int width, int height)
public void componentShown(ComponentEvent event)
componentShown
in interface ComponentListener
public void componentHidden(ComponentEvent event)
componentHidden
in interface ComponentListener
public void componentMoved(ComponentEvent event)
componentMoved
in interface ComponentListener
public void componentResized(ComponentEvent event)
componentResized
in interface ComponentListener
protected void layoutGrid()
public final void setLayout(LayoutManager mgr)
setLayout
in class Container
public boolean isAllowRowSelection()
public void setAllowRowSelection(boolean allow)
allow
- True if user row selection is allowed.public int getRowSelectionMode()
public void setRowSelectionMode(int selectionMode)
selectionMode
- The row selection mode.public void selectRows(int selectOption)
selectOption
- The Row Selection Optionpublic void toggleRowSelection(com.klg.jclass.higrid.RowNode rowNode, boolean allowMultipleSelections, boolean refresh)
public void toggleRowSelection(com.klg.jclass.higrid.RowNode rowNode, boolean allowMultipleSelections)
public void resetRowSelection()
public void resetRowSelection(boolean refresh)
public void insertRow(com.klg.jclass.higrid.RowNode rowNode)
public void deleteRows(int deleteOption)
public void deleteRow(com.klg.jclass.higrid.RowNode rowNode)
public void cancelRows(int cancelOption)
public void cancelRow(com.klg.jclass.higrid.RowNode rowNode)
public void updateRows(int updateOption)
public void updateRow(com.klg.jclass.higrid.RowNode rowNode)
public void requeryRows(int requeryOption)
public void requeryRow(com.klg.jclass.higrid.RowNode rowNode)
public void moveToRow(int moveToRowOption)
public void moveToRow(long bookmark)
public void moveToRow(com.klg.jclass.higrid.RowNode rowNode)
public Enumeration getSelectedRows()
protected static Frame getFrame(Component comp)
Frame
containing the Component
.
public void print(int printFormat)
public void print()
public void print(PageFormat pageFormat)
pageFormat
- describes the page orientation for all pages to be printed.public void print(boolean displayPrintDialog)
displayPrintDialog
- true if the user should be prompted with the print dialog.public void print(PrinterJob job, boolean displayPrintDialog, PageFormat pageFormat)
job
- The printjob.displayPrintDialog
- true if the user should be prompted with the print dialog.pageFormat
- describes the page orientation for all pages to be printed.public void printPreview()
public boolean isPrinting()
public void setPrinting(boolean printing)
printing
- The printing status.protected boolean isPrintingSubsequentColumnPages()
protected boolean isDrawingFoldersAndConnections()
protected void setPrintGrid(com.klg.jclass.higrid.PrintGrid grid)
PrintGrid
object for this grid.
public com.klg.jclass.higrid.PrintGrid12 getPrintGrid()
public int getPrintRowPageIndex()
public int getPrintColumnPageIndex()
public boolean isPrintFoldersAndConnections()
public void setPrintFoldersAndConnections(boolean printConnections)
printConnections
- The print folder nodes and connection lines indicationpublic int getPrintFormat()
public void setPrintFormat(int printFormat)
printFormat
- The print format.public void addHiGridColumnSelectionListener(com.klg.jclass.higrid.HiGridColumnSelectionListener listener)
listener
- A listener.public void removeHiGridColumnSelectionListener(com.klg.jclass.higrid.HiGridColumnSelectionListener listener)
listener
- A listener.protected boolean fireHiGridColumnSelectionEvent(com.klg.jclass.higrid.HiGridColumnSelectionEvent event)
event
- The HiGridColumnSelectionEvent.
public void addHiGridErrorListener(com.klg.jclass.higrid.HiGridErrorListener listener)
listener
- A listener.public void removeHiGridErrorListener(com.klg.jclass.higrid.HiGridErrorListener listener)
listener
- A listener.protected boolean fireHiGridErrorEvent(com.klg.jclass.higrid.HiGridErrorEvent event)
event
- The HiGridErrorEvent.
public void addHiGridExpansionListener(com.klg.jclass.higrid.HiGridExpansionListener listener)
listener
- A listener.public void removeHiGridExpansionListener(com.klg.jclass.higrid.HiGridExpansionListener listener)
listener
- A listener.protected boolean fireHiGridExpansionEvent(com.klg.jclass.higrid.HiGridExpansionEvent event)
event
- The HiGridExpansionEvent.
public void addHiGridFormatNodeListener(com.klg.jclass.higrid.HiGridFormatNodeListener listener)
listener
- A listener.public void removeHiGridFormatNodeListener(com.klg.jclass.higrid.HiGridFormatNodeListener listener)
listener
- A listener.protected boolean fireHiGridFormatNodeEvent(com.klg.jclass.higrid.HiGridFormatNodeEvent event)
event
- The HiGridFormatNodeEvent.
public void addHiGridMoveCellListener(com.klg.jclass.higrid.HiGridMoveCellListener listener)
listener
- A listener.public void removeHiGridMoveCellListener(com.klg.jclass.higrid.HiGridMoveCellListener listener)
listener
- A listener.protected boolean fireHiGridMoveCellEvent(com.klg.jclass.higrid.HiGridMoveCellEvent event)
event
- The HiGridMoveCellEvent.
public void addHiGridPrintListener(com.klg.jclass.higrid.HiGridPrintListener listener)
listener
- A listener.public void removeHiGridPrintListener(com.klg.jclass.higrid.HiGridPrintListener listener)
listener
- A listener.protected void fireHiGridPrintEvent(com.klg.jclass.higrid.HiGridPrintEvent event)
event
- The HiGridPrintEvent.public void addHiGridRepaintListener(com.klg.jclass.higrid.HiGridRepaintListener listener)
listener
- A listener.public void removeHiGridRepaintListener(com.klg.jclass.higrid.HiGridRepaintListener listener)
listener
- A listener.protected boolean fireHiGridRepaintEvent(com.klg.jclass.higrid.HiGridRepaintEvent event)
event
- The HiGridRepaintEvent.
public void addHiGridResizeCellListener(com.klg.jclass.higrid.HiGridResizeCellListener listener)
listener
- A listener.public void removeHiGridResizeCellListener(com.klg.jclass.higrid.HiGridResizeCellListener listener)
listener
- A listener.protected boolean fireHiGridResizeCellEvent(com.klg.jclass.higrid.HiGridResizeCellEvent event)
event
- The HiGridResizeCellEvent.
public void addHiGridRowSelectionListener(com.klg.jclass.higrid.HiGridRowSelectionListener listener)
listener
- A listener.public void removeHiGridRowSelectionListener(com.klg.jclass.higrid.HiGridRowSelectionListener listener)
listener
- A listener.protected boolean fireHiGridRowSelectionEvent(com.klg.jclass.higrid.HiGridRowSelectionEvent event)
event
- The HiGridRowSelectionEvent.
public void addHiGridSortTableListener(com.klg.jclass.higrid.HiGridSortTableListener listener)
listener
- A listener.public void removeHiGridSortTableListener(com.klg.jclass.higrid.HiGridSortTableListener listener)
listener
- A listener.protected boolean fireHiGridSortTableEvent(com.klg.jclass.higrid.HiGridSortTableEvent event)
event
- The HiGridSortTableEvent.
public void addHiGridTraverseListener(com.klg.jclass.higrid.HiGridTraverseListener listener)
listener
- A listener.public void removeHiGridTraverseListener(com.klg.jclass.higrid.HiGridTraverseListener listener)
listener
- A listener.protected boolean fireHiGridTraverseEvent(com.klg.jclass.higrid.HiGridTraverseEvent event)
event
- The HiGridTraverseEvent.
public void addHiGridUpdateListener(com.klg.jclass.higrid.HiGridUpdateListener listener)
listener
- A listener.public void removeHiGridUpdateListener(com.klg.jclass.higrid.HiGridUpdateListener listener)
listener
- A listener.protected boolean fireHiGridUpdateEvent(com.klg.jclass.higrid.HiGridUpdateEvent event)
event
- The HiGridUpdateEvent.
public void addHiGridValidateListener(com.klg.jclass.higrid.HiGridValidateListener listener)
listener
- A listener.public void removeHiGridValidateListener(com.klg.jclass.higrid.HiGridValidateListener listener)
listener
- A listener.protected com.klg.jclass.higrid.HiGridValidateEvent makeValidateEvent(int eventType, com.klg.jclass.cell.validate.JCValidateEvent event)
public void valueChangedBegin(com.klg.jclass.cell.validate.JCValidateEvent event)
valueChangedBegin
in interface JCValidateListener
event
- public void valueChangedEnd(com.klg.jclass.cell.validate.JCValidateEvent event)
valueChangedEnd
in interface JCValidateListener
event
- public void stateIsInvalid(com.klg.jclass.cell.validate.JCValidateEvent event)
stateIsInvalid
in interface JCValidateListener
event
- public boolean isFocusTraversable()
isFocusTraversable
in class Component
public Dimension getMinimumSize()
getMinimumSize
in class JComponent
protected void finalize() throws Throwable
finalize
in class Object
Throwable
public void dispose()
public void generateError()
protected void printStackTrace()
protected static void addUnique(Vector v, Object object)
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |