|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--arlut.csd.JTable.baseTable
|
+--arlut.csd.JTable.gridTable
gridTable is a specialized baseTable, supporting an x,y access model
baseTable, Serialized Form| Inner classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent, javax.swing.JComponent.ActionStandin, javax.swing.JComponent.IntVector, javax.swing.JComponent.KeyboardState |
| Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.AWTTreeLock |
| Field Summary | |
(package private) static boolean |
debug
|
| Fields inherited from class arlut.csd.JTable.baseTable |
bounding_rect, canvas, colPos, cols, hbar, hbar_visible, headerAttrib, headerMenu, hHeadLineColor, hHeadLineThickness, horizLines, hRowLineColor, hRowLineThickness, hVertFill, in, menu, menuCol, menuRow, origTotalWidth, row_baseline, row_height, rows, rowsToShow, scalefact, selectedRow, tableAttrib, vbar, vbar_visible, vertFill, vertLines, vHeadLineColor, vLineThickness, vRowLineColor |
| Fields inherited from class javax.swing.JComponent |
_bounds, accessibleContext, actionMap, ACTIONMAP_CREATED, alignmentX, alignmentY, ANCESTOR_INPUTMAP_CREATED, ANCESTOR_USING_BUFFER, ancestorInputMap, ancestorNotifier, autoscroller, border, changeSupport, clientProperties, CREATED_DOUBLE_BUFFER, flags, FOCUS_INPUTMAP_CREATED, focusInputMap, HAS_FOCUS, htmlKey, htmlView, inputVerifier, IS_DOUBLE_BUFFERED, IS_OPAQUE, IS_PAINTING_TILE, IS_PRINTING, IS_PRINTING_ALL, KEY_EVENTS_ENABLED, KEYBOARD_BINDINGS_KEY, listenerList, maximumSize, minimumSize, NEXT_FOCUS, paintImmediatelyClip, paintingChild, preferredSize, readObjectCallbacks, REQUEST_FOCUS_DISABLED, tmpRect, TOOL_TIP_TEXT_KEY, ui, uiClassID, UNDEFINED_CONDITION, verifyInputWhenFocusTarget, vetoableChangeSupport, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW, WHEN_IN_FOCUSED_WINDOW_BINDINGS, WIF_INPUTMAP_CREATED, windowInputMap |
| Fields inherited from class java.awt.Container |
component, containerListener, containerSerializedDataVersion, dbg, dispatcher, layoutMgr, listeningBoundsChildren, listeningChildren, maxSize, ncomponents, printing, printingThreads, serialVersionUID |
| Fields inherited from class java.awt.Component |
actionListenerK, adjustmentListenerK, appContext, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, componentListener, componentListenerK, componentOrientation, componentSerializedDataVersion, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, graphicsConfig, hasFocus, height, hierarchyBoundsListener, hierarchyBoundsListenerK, hierarchyListener, hierarchyListenerK, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, metrics, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, name, nameExplicitlySet, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, privateKey, RIGHT_ALIGNMENT, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowClosingException, windowListenerK, x, y |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
gridTable(int[] colWidths,
java.lang.String[] headers,
javax.swing.JPopupMenu menu)
Constructor with default fonts, justification, and behavior |
|
gridTable(tableAttr headerAttrib,
tableAttr tableAttrib,
tableAttr[] colAttribs,
int[] colWidths,
java.awt.Color vHeadLineColor,
java.awt.Color vRowLineColor,
java.awt.Color hHeadLineColor,
java.awt.Color hRowLineColor,
java.lang.String[] headers,
boolean horizLines,
boolean vertLines,
boolean vertFill,
boolean hVertFill,
javax.swing.JPopupMenu menu,
javax.swing.JPopupMenu headerMenu)
This is the base constructor for gridTable, which allows all aspects of the gridTable's appearance and behavior to be customized. |
|
| Method Summary | |
tableAttr |
getCellAttr(int x,
int y)
Gets the tableAttr of a cell in the table. |
java.lang.String |
getCellText(int x,
int y)
Gets the contents of a cell in the table. |
void |
setCellAttr(int x,
int y,
tableAttr attr,
boolean repaint)
Sets the tableAttr of a cell in the table. |
void |
setCellBackColor(int x,
int y,
java.awt.Color color,
boolean repaint)
Sets the background color of a cell A color of (Color) null will cause baseTable to revert to using the background selected for the column (if defined) or the background for the table. |
void |
setCellColor(int x,
int y,
java.awt.Color color,
boolean repaint)
Sets the foreground color of a cell A color of (Color) null will cause baseTable to revert to using the foreground selected for the column (if defined) or the foreground for the table. |
void |
setCellFont(int x,
int y,
java.awt.Font font,
boolean repaint)
Sets the font of a cell in the table. |
void |
setCellJust(int x,
int y,
int just,
boolean repaint)
Sets the justification of a cell in the table. |
void |
setCellText(int x,
int y,
java.lang.String cellText,
boolean repaint)
Sets the contents of a cell in the table. |
| Methods inherited from class javax.swing.JComponent |
_paintImmediately, |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, adjustListeningChildren, applyOrientation, checkGD, countComponents, createChildHierarchyEvents, createHierarchyEvents, deliverEvent, dispatchEventImpl, dispatchEventToSelf, doLayout, eventEnabled, findComponentAt, findComponentAt, findComponentAt, getAccessibleAt, getAccessibleChild, getAccessibleChildrenCount, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getLayout, getMouseEventTarget, getWindow, initIDs, insets, invalidate, invalidateTree, isAncestorOf, layout, lightweightPaint, lightweightPrint, list, list, locate, minimumSize, nextFocus, numListening, paintComponents, paintHeavyweightComponents, postProcessKeyEvent, postsOldMouseEvents, preferredSize, preProcessKeyEvent, printComponents, printHeavyweightComponents, processContainerEvent, processEvent, proxyEnableEvents, proxyRequestFocus, remove, remove, removeAll, removeContainerListener, setFocusOwner, setLayout, transferFocus, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, areInputMethodsEnabled, bounds, checkImage, checkImage, checkWindowClosingException, coalesceEvents, constructComponentName, contains, createImage, createImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getAccessibleIndexInParent, getAccessibleStateSet, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen_NoTreeLock, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getToolkit, getToolkitImpl, getTreeLock, getWindowForObject, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isEnabledImpl, isLightweight, isRecursivelyVisible, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resetGC, resize, resize, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
| Field Detail |
static final boolean debug
| Constructor Detail |
public gridTable(tableAttr headerAttrib,
tableAttr tableAttrib,
tableAttr[] colAttribs,
int[] colWidths,
java.awt.Color vHeadLineColor,
java.awt.Color vRowLineColor,
java.awt.Color hHeadLineColor,
java.awt.Color hRowLineColor,
java.lang.String[] headers,
boolean horizLines,
boolean vertLines,
boolean vertFill,
boolean hVertFill,
javax.swing.JPopupMenu menu,
javax.swing.JPopupMenu headerMenu)
headerAttrib - attribute set for the column headerstableAttrib - default attribute set for the body of the tablecolAttribs - per column attribute setscolWidths - array of initial column widthsvHeadLineColor - color of vertical lines in the column headers, if anyvRowLineColor - color of vertical lines in the table body, if anyhHeadLineColor - color of horizontal lines in the column headers, if anyvRowLineColor - color of vertical lines in the table body, if anyheaders - array of column header titles, must be same size as colWidthshorizLines - true if horizontal lines should be shown between rows in report tablevertLines - true if vertical lines should be shown between columns in report tablevertFill - true if table should expand vertically to fill size of baseTablehVertFill - true if horizontal lines should be drawn in the vertical fill region
(only applies if vertFill and horizLines are true)allow_select - true if rows should be selectable by the user
public gridTable(int[] colWidths,
java.lang.String[] headers,
javax.swing.JPopupMenu menu)
colWidths - array of initial column widthsheaders - array of column header titles, must be same size as colWidths| Method Detail |
public final void setCellText(int x,
int y,
java.lang.String cellText,
boolean repaint)
x - column of the cell to change [0..#cols - 1]y - row of the cell to change [0..#rows - 1]cellText - the text to place into cellrepaint - true if the table should be redrawn after changing cell
public final java.lang.String getCellText(int x,
int y)
getCellText in class baseTablex - column of the cell to retrieve [0..#cols - 1]y - row of the cell to retrieve [0..#rows - 1]
public final void setCellAttr(int x,
int y,
tableAttr attr,
boolean repaint)
x - column of the cell to change [0..#cols - 1]y - row of the cell to change [0..#rows - 1]attr - the tableAttr to assign to cellrepaint - true if the table should be redrawn after changing cell
public final tableAttr getCellAttr(int x,
int y)
x - column of the cell to retrieve tableAttr from [0..#cols - 1]y - row of the cell to retrieve tableAttr from [0..#rows - 1]
public final void setCellFont(int x,
int y,
java.awt.Font font,
boolean repaint)
x - column of the cell to change [0..#cols - 1]y - row of the cell to change [0..#rows - 1]font - the Font to assign to cell, may be null to use defaultrepaint - true if the table should be redrawn after changing cell
public final void setCellJust(int x,
int y,
int just,
boolean repaint)
x - column of the cell to change [0..#cols - 1]y - row of the cell to change [0..#rows - 1]just - the justification to assign to cellrepaint - true if the table should be redrawn after changing celltableAttr
public final void setCellColor(int x,
int y,
java.awt.Color color,
boolean repaint)
x - column of the cell to change [0..#cols - 1]y - row of the cell to change [0..#rows - 1]color - the Color to assign to cellrepaint - true if the table should be redrawn after changing cell
public final void setCellBackColor(int x,
int y,
java.awt.Color color,
boolean repaint)
x - column of the cell to change [0..#cols - 1]y - row of the cell to change [0..#rows - 1]color - the Color to assign to cellrepaint - true if the table should be redrawn after changing cell
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||