JIDE 3.5.15

com.jidesoft.pivot
Class HeaderExpandablePanel

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.CellRendererPane
              extended by com.jidesoft.grid.CellRendererPaneEx
                  extended by com.jidesoft.grid.ExpandablePanel
                      extended by com.jidesoft.pivot.HeaderExpandablePanel
All Implemented Interfaces:
RendererWrapper, ImageObserver, MenuContainer, Serializable, Accessible

public class HeaderExpandablePanel
extends ExpandablePanel

The component used by HeaderTable which has a "+/-" button.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.CellRendererPane
CellRendererPane.AccessibleCellRendererPane
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
 
Fields inherited from class com.jidesoft.grid.ExpandablePanel
_collapsedIcon, _disabledBackground, _disabledForeground, _expandedIcon, _hasFocus, _isSelected, _node, _table, LEFT_MARGIN, TEXT_ICON_GAP, VERTICAL_CENTER_ALIGNMENT
 
Fields inherited from class com.jidesoft.grid.CellRendererPaneEx
_actualRenderer
 
Fields inherited from class javax.swing.CellRendererPane
accessibleContext
 
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
HeaderExpandablePanel(JTable table, Component actualRenderer, Icon expandedIcon, Icon collapsedIcon, Color disabledBackground, Color disabledForeground)
           
HeaderExpandablePanel(JTable table, Icon expandedIcon, Icon collapsedIcon, Color disabledBackground, Color disabledForeground)
           
 
Method Summary
 boolean isExpandIconVisible(JTable table)
           
protected  void paintBackground(Graphics g)
          Paints the background.
protected  void paintBorder(Graphics g)
           
protected  int paintIcon(Graphics g, int start)
          Paints icon if necessary.
 
Methods inherited from class com.jidesoft.grid.ExpandablePanel
getMinimumSize, getPreferredSize, getToolTipText, initComponents, isHasFocus, isSelected, isSynthIcon, isSynthIconClassName, paint, paintDecoration, paintFocus, setBackground, setFont, setForeground, setHasFocus, setNode, setSelected
 
Methods inherited from class com.jidesoft.grid.CellRendererPaneEx
getActualRenderer, getBorder, isPaintBackground, setActualRenderer, setPaintBackground
 
Methods inherited from class javax.swing.CellRendererPane
addImpl, getAccessibleContext, invalidate, paintComponent, paintComponent, paintComponent, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMousePosition, insets, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HeaderExpandablePanel

public HeaderExpandablePanel(JTable table,
                             Icon expandedIcon,
                             Icon collapsedIcon,
                             Color disabledBackground,
                             Color disabledForeground)

HeaderExpandablePanel

public HeaderExpandablePanel(JTable table,
                             Component actualRenderer,
                             Icon expandedIcon,
                             Icon collapsedIcon,
                             Color disabledBackground,
                             Color disabledForeground)
Method Detail

paintBorder

protected void paintBorder(Graphics g)
Overrides:
paintBorder in class CellRendererPaneEx

paintIcon

protected int paintIcon(Graphics g,
                        int start)
Description copied from class: ExpandablePanel
Paints icon if necessary.

Overrides:
paintIcon in class ExpandablePanel
Parameters:
g - the Graphics instance
start - the start X offset to paint the icon
Returns:
the start X offset to paint text after painting icon.

isExpandIconVisible

public boolean isExpandIconVisible(JTable table)
Overrides:
isExpandIconVisible in class ExpandablePanel

paintBackground

protected void paintBackground(Graphics g)
Description copied from class: ExpandablePanel
Paints the background.

Overrides:
paintBackground in class ExpandablePanel
Parameters:
g - the Graphics instance

JIDE 3.5.15