|
ElegantJ Data Tables Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
com.elegantj.jfc.table.JTableRowHeader
This is the object which manages the row header of the JFCTable.
| Nested Class Summary | |
protected class |
JTableRowHeader.AccessibleJTableRowHeader
This class implements accessibility support for the JTableRowHeader class. |
| Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
protected boolean |
adjustRowOnClick
If true, rows can be adjusted with maximum cell height in that row; the default is true. |
protected boolean |
resizingAllowed
If true, resizing of rows are allowed by the user; the header is true. |
protected int |
resizingRow
The index of the row being resized. |
protected JFCTable |
table
The table for which this object is the header; the header is null. |
protected int |
width
The fixed width of the header. |
| 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 | |
JTableRowHeader()
Constructs a JTableRowHeader |
|
| Method Summary | |
void |
adjustRowHeight(int row)
Adjust the row height so that each cell of that row can be displayed properly. |
protected javax.swing.table.TableCellRenderer |
createDefaultHeaderRenderer()
Returns a header renderer to be used when no header renderer is defined by a TableRow. |
javax.accessibility.AccessibleContext |
getAccessibleContext()
Gets the AccessibleContext associated with this JTableRowHeader. |
java.awt.Rectangle |
getHeaderRect(int row)
Returns the rectangle containing the header tile at row. |
javax.swing.table.TableCellRenderer |
getHeaderRenderer()
Returns the header renderer used when no headerRenderer is defined by a int. |
java.lang.String |
getHeaderValue(int row)
Returns the header identifier representing the specified header cell. |
java.awt.Dimension |
getPreferredSize()
Gets the preferred size of this component. |
boolean |
getResizingAllowed()
Returns true if the user is allowed to resize rows by dragging between their headers, false otherwise. |
int |
getResizingRow()
Returns the resizing row. |
JFCTable |
getTable()
Returns the table associated with this header. |
java.lang.String |
getToolTipText(java.awt.event.MouseEvent event)
Allows the renderer's tips to be used if there is text set. |
TableRowHeaderUI |
getUI()
Returns the look and feel (L&F) object that renders this component. |
java.lang.String |
getUIClassID()
Returns the suffix used to construct the name of the look and feel (L&F) class used to render this component. |
protected void |
initializeLocalVars()
Initializes the local variables and properties with header values. |
boolean |
isAdjustRowOnClick()
Returns whether the row can be adjusted on click or not. |
protected java.lang.String |
paramString()
Returns a string representation of this JTableRowHeader. |
protected void |
processMouseEvent(java.awt.event.MouseEvent e)
Processes mouse events occurring on this component by dispatching them to any registered KeyListener objects. |
protected void |
processMouseMotionEvent(java.awt.event.MouseEvent e)
Processes mouse motion events occurring on this component by dispatching them to any registered KeyListener objects. |
void |
resizeAndRepaint()
Sizes the header and marks it as needing display. |
int |
rowAtPoint(java.awt.Point point)
Returns the index of the row that point lies in, or -1 if it lies out of bounds. |
void |
setAdjustRowOnClick(boolean flag)
Sets whether the row can be adjusted on click or not. |
void |
setHeaderRenderer(javax.swing.table.TableCellRenderer headerRenderer)
Sets the header renderer to be used when no headerRenderer is defined by a TabelRow. |
void |
setResizingAllowed(boolean resizingAllowed)
Sets whether the user can resize rows by dragging between headers. |
void |
setResizingRow(int aRow)
Sets the header's resizingRow to aRow. |
void |
setTable(JFCTable table)
Sets the table associated with this header. |
void |
setUI(TableRowHeaderUI ui)
Sets the look and feel (L&F) object that renders this component. |
void |
setWidth(int width)
Fixes the width of the header. |
void |
tableChanged(javax.swing.event.TableModelEvent e)
Implementing TableModelListener interface |
void |
updateUI()
Notification from the UIManager that the look and feel (L&F) has changed. |
| Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected boolean adjustRowOnClick
protected JFCTable table
protected boolean resizingAllowed
protected transient int resizingRow
protected int width
| Constructor Detail |
public JTableRowHeader()
| Method Detail |
public void setWidth(int width)
width - the header widthpublic java.awt.Dimension getPreferredSize()
public void setTable(JFCTable table)
table - the new tablepublic JFCTable getTable()
public void setResizingAllowed(boolean resizingAllowed)
resizingAllowed - true if table view should allow
resizingpublic boolean getResizingAllowed()
public int getResizingRow()
public void setHeaderRenderer(javax.swing.table.TableCellRenderer headerRenderer)
headerRenderer - the header rendererpublic javax.swing.table.TableCellRenderer getHeaderRenderer()
public int rowAtPoint(java.awt.Point point)
public java.lang.String getHeaderValue(int row)
row - the header cell index
public java.awt.Rectangle getHeaderRect(int row)
public java.lang.String getToolTipText(java.awt.event.MouseEvent event)
event - the location of the event identifies the proper
renderer and, therefore, the proper tip
public TableRowHeaderUI getUI()
public void setUI(TableRowHeaderUI ui)
ui - the TableRowHeaderUI L&F objectpublic void updateUI()
public java.lang.String getUIClassID()
public void tableChanged(javax.swing.event.TableModelEvent e)
tableChanged in interface javax.swing.event.TableModelListenerprotected void processMouseMotionEvent(java.awt.event.MouseEvent e)
e - the mouse eventprotected void processMouseEvent(java.awt.event.MouseEvent e)
e - the mouse eventprotected javax.swing.table.TableCellRenderer createDefaultHeaderRenderer()
protected void initializeLocalVars()
public void resizeAndRepaint()
public void setAdjustRowOnClick(boolean flag)
flag - true to allow the adjust row on clickpublic boolean isAdjustRowOnClick()
public void adjustRowHeight(int row)
public void setResizingRow(int aRow)
aRow - the row being resizedprotected java.lang.String paramString()
Overriding paramString to provide information about the specific new aspects of the JFC components.
public javax.accessibility.AccessibleContext getAccessibleContext()
getAccessibleContext in interface javax.accessibility.Accessible
|
ElegantJ Data Tables Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||