com.eliad.swing
Class JSmartGridHeader

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--com.eliad.swing.JSmartGrid
                          |
                          +--com.eliad.swing.JSmartGridHeader

public class JSmartGridHeader
extends JSmartGrid

A variant of a JSmartGrid suitable as a header for a "normal" grid.

Version:
1.0 00/03/26
Author:
Stephan Szymkowicz
See Also:
Serialized Form

Inner classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Inner classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent
 
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
 
Constructor Summary
protected JSmartGridHeader()
          A default constructor for subclasses use.
  JSmartGridHeader(GridModel gm, SpanModel sm, StyleModel uim)
          This constructor is needed to realize the normal construction of the superclass JSmartGrid with the following models: a GridModel, a SpanModel and a StyleModel.
  JSmartGridHeader(JSmartGrid parent, int orientation)
          Constructs a JSmartGridHeader with a given JSmartGrid as the main grid, with a given orientation.
  JSmartGridHeader(JSmartGrid parent, int orientation, GridModel gm, SpanModel sm, StyleModel uim)
          Constructs a JSmartGridHeader with a given JSmartGrid as the main grid, with a given orientation, with the models: a GridModel, a SpanModel and a StyleModel
 
Method Summary
 GridUI getUI()
          Returns the Look & Feel object that renders this component.
 java.lang.String getUIClassID()
          Returns the suffix used to construct the name of the L&F class used to render this component.
 void setUI(GridUI ui)
          Sets the Look & Feel object that renders this component and repaints.
 void updateUI()
          Notification from the UIManager that the L&F has changed.
 
Methods inherited from class com.eliad.swing.JSmartGrid
addGridEditingListener, addGridListener, addNotify, addVetoableChangeListener, addVetoableChangeListener, anchorChanged, beforeItemsMoved, changeSelection, clearSelection, coalesceEvents, columnAtPoint, columnAtX, columnsResized, configureEnclosingScrollPane, createDefaultColumnModel, createDefaultRowModel, createHeader, createHeader, createHeader, createRendererPane, createTopLeft, doEnsurePreferredSizeAt, doEnsurePreferredSizeAt, editCellAt, editCellAt, editingCanceled, editingStopped, ensureCellInVisibleRect, ensureNarrowSizes, ensurePreferredSizeAt, fireEditingCanceled, fireEditingStarted, fireEditingStopped, fireFocusGained, fireFocusLost, fireGridClicked, fireGridDragged, fireGridEntered, fireGridExited, fireGridMoved, fireGridPressed, fireGridReleased, flushToolTipCache, getAccessibleContext, getActiveGrid, getCellBorder, getCellBounds, getCellMaximumSize, getCellMaximumSize, getCellMinimumSize, getCellMinimumSize, getCellPreferredSize, getCellPreferredSize, getCellRenderer, getColumnActiveGrid, getColumnAutoResizeMode, getColumnCount, getColumnHeader, getColumnMargin, getColumnModel, getColumnPosition, getColumnWidth, getCurrentCellEditor, getDraggingDistance, getEditorComponent, getEnclosure, getFirstDraggingItem, getFirstSelectedColumn, getFirstSelectedRow, getFocusBackgroundColor, getFocusForegroundColor, getFocusHighlightBorder, getGridColor, getIntercellSpacing, getLastDraggingItem, getLastSelectedColumn, getLastSelectedRow, getListenerCount, getListenerCount, getModel, getPreferredScrollableViewportSize, getRendererContext, getRenderingComponent, getRenderingComponent, getResizingItem, getResizingOrientation, getRowActiveGrid, getRowAutoResizeMode, getRowCount, getRowHeader, getRowHeight, getRowMargin, getRowModel, getRowPosition, getRulerModel, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getSelectableEnclosure, getSelectedCellsCount, getSelectedColumnCount, getSelectedColumns, getSelectedRowCount, getSelectedRows, getSelectionBackgroundColor, getSelectionCellBorder, getSelectionForegroundColor, getSelectionMode, getSelectionModel, getSelectionPolicy, getSelectionUnit, getShowHorizontalLines, getShowVerticalLines, getSpanModel, getSpanOver, getStyleModel, getToolTipText, getValueAt, getViewport, getVisibleRect, gridDataChanged, gridModelChanged, gridStructureChanged, hideGrid, hierarchyChanged, initializeTransients, isAutoCreateColumnHeader, isAutoCreateRowHeader, isCellEditable, isCellSelected, isColumnDraggable, isColumnHeader, isColumnLeader, isColumnResizable, isColumnSelected, isColumnVisible, isCorner, isDraggable, isDragging, isEditing, isFocusTraversable, isLeader, isManagingFocus, isResizable, isResizing, isRowDraggable, isRowHeader, isRowLeader, isRowResizable, isRowSelected, isRowVisible, isSelectionEmpty, isSpanEmpty, paintComponent, prepareRenderer, processKeyBinding, propertyChange, rangeChanged, removeEditor, removeGridEditingListener, removeGridListener, removeNotify, removeVetoableChangeListener, removeVetoableChangeListener, resetDragging, resizeAndRepaint, rowAtPoint, rowAtY, rowsResized, rulerDataChanged, rulerModelChanged, rulerStructureChanged, scrollRectToVisible, selectAll, setActiveGrid, setAutoCreateColumnHeader, setAutoCreateRowHeader, setAutoResizeMode, setBounds, setCellBorder, setColumnActiveGrid, setColumnAutoResizeMode, setColumnDraggable, setColumnHeader, setColumnMargin, setColumnModel, setColumnResizable, setColumnVisible, setColumnWidth, setDraggable, setDraggingDistance, setFirstDraggingItem, setFocusBackgroundColor, setFocusForegroundColor, setFocusHighlightBorder, setGridColor, setIntercellSpacing, setLastDraggingItem, setModel, setPreferredScrollableViewportSize, setResizable, setResizing, setRowActiveGrid, setRowAutoResizeMode, setRowDraggable, setRowHeader, setRowHeight, setRowMargin, setRowModel, setRowResizable, setRowVisible, setRulerModel, setSelectionBackgroundColor, setSelectionCellBorder, setSelectionForegroundColor, setSelectionMode, setSelectionModel, setSelectionPolicy, setSelectionUnit, setShowGrid, setShowHorizontalLines, setShowVerticalLines, setSpanModel, setStyleModel, setValueAt, spanDataChanged, spanIterator, spanModelChanged, spanStructureChanged, styleDataChanged, styleModelChanged, styleStructureChanged, takeLeadershipOver, unconfigureEnclosingScrollPane
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addPropertyChangeListener, addPropertyChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getVerifyInputWhenFocusTarget, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isLightweightComponent, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processFocusEvent, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setLayout, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, contains, createImage, createImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, 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, 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, wait, wait, wait
 

Constructor Detail

JSmartGridHeader

protected JSmartGridHeader()
A default constructor for subclasses use.

JSmartGridHeader

public JSmartGridHeader(GridModel gm,
                        SpanModel sm,
                        StyleModel uim)
This constructor is needed to realize the normal construction of the superclass JSmartGrid with the following models: a GridModel, a SpanModel and a StyleModel.

JSmartGridHeader

public JSmartGridHeader(JSmartGrid parent,
                        int orientation)
Constructs a JSmartGridHeader with a given JSmartGrid as the main grid, with a given orientation.

JSmartGridHeader

public JSmartGridHeader(JSmartGrid parent,
                        int orientation,
                        GridModel gm,
                        SpanModel sm,
                        StyleModel uim)
Constructs a JSmartGridHeader with a given JSmartGrid as the main grid, with a given orientation, with the models: a GridModel, a SpanModel and a StyleModel
Method Detail

getUI

public GridUI getUI()
Returns the Look & Feel object that renders this component.
Returns:
the GridUI object that renders this component
Overrides:
getUI in class JSmartGrid

setUI

public void setUI(GridUI ui)
Sets the Look & Feel object that renders this component and repaints.
Parameters:
ui - the GridUI L&F object
Overrides:
setUI in class JSmartGrid
See Also:
UIDefaults.getUI(javax.swing.JComponent)

updateUI

public void updateUI()
Notification from the UIManager that the L&F has changed. Replaces the current UI object with the latest version from the UIManager.
Overrides:
updateUI in class JSmartGrid
See Also:
JComponent.updateUI()

getUIClassID

public java.lang.String getUIClassID()
Returns the suffix used to construct the name of the L&F class used to render this component.
Returns:
the string "GridHeaderUI"
Overrides:
getUIClassID in class JSmartGrid
See Also:
JComponent.getUIClassID(), UIDefaults.getUI(javax.swing.JComponent)