com.sas.swing.visuals.tableview
Class DefaultTableHeaderRenderer

com.sas.swing.visuals.tableview.DefaultTableHeaderRenderer
All Implemented Interfaces:
Constants, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.SwingConstants, javax.swing.table.TableCellRenderer
Direct Known Subclasses:
DefaultRowHeaderRenderer, SortHeaderRenderer

public class DefaultTableHeaderRenderer

See Also:
Serialized Form

Field Summary
protected  javax.swing.border.Border focusBorder
           
protected  javax.swing.border.Border headerOutsideBorder
           
protected  javax.swing.border.Border nonFocusBorder
           
 
Fields inherited from class com.sas.swing.visuals.tableview.DefaultTableCellRenderer
border, font, gettingRenderer, isSelected, locale, noFocusBorder, splitCharacter, transform, unselectedBackground, unselectedForeground
 
Fields inherited from class com.sas.swing.visuals.LabelView
alignmentMode, BLOCK, clipped, INDIVIDUAL, leadingContentOffset, lineGap, lineWrap, orientation, preferredSpanSize, replaceNewline, replaceTab, SPAN_FILL, tabSize, topContentOffset, wordWrap
 
Fields inherited from interface com.sas.swing.Constants
CENTER_BOTTOM, CENTER_LEADING, CENTER_LEFT, CENTER_RIGHT, CENTER_TOP, CENTER_TRAILING
 
Constructor Summary
DefaultTableHeaderRenderer()
          Creates a default table cell renderer.
DefaultTableHeaderRenderer(java.lang.Character splitCharacter)
           
 
Method Summary
protected  javax.swing.border.Border createOutsideBorder()
           
 java.awt.Insets getInsets()
          If a border has been set on this component, returns the border's insets; otherwise calls super.getInsets.
 java.awt.Insets getInsets(java.awt.Insets insets)
          Returns an Insets object containing this component's inset values.
 java.awt.Component getTableCellRendererComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, boolean hasFocus, int row, int column)
          Returns the default table cell renderer.
 void updateUI()
          Notification from the UIManager that the look and feel [L&F] has changed.
 
Methods inherited from class com.sas.swing.visuals.tableview.DefaultTableCellRenderer
equals, firePropertyChange, getLocale, getSplitCharacter, getTransform, isOpaque, repaint, repaint, revalidate, setBackground, setBorder, setFont, setForeground, setLocale, setSelected, setSplitCharacter, setTransform, setValue, validate
 
Methods inherited from class com.sas.swing.visuals.LabelView
checkHorizontalKey, checkVerticalKey, getAlignmentMode, getExtendedBeanInfo, getGapBetweenLines, getHorizontalAlignment, getHorizontalTextPosition, getLeadingContentOffset, getLineWrap, getOrientation, getPreferredSpanSize, getTabSize, getTopContentOffset, getUIClassID, getVerticalAlignment, getVerticalTextPosition, getWrapStyleWord, initializeLocalVars, isClipped, setAlignmentMode, setClipped, setGapBetweenLines, setHorizontalAlignment, setHorizontalTextPosition, setLeadingContentOffset, setLineWrap, setOrientation, setPreferredSpanSize, setTabSize, setTopContentOffset, setVerticalAlignment, setVerticalTextPosition, setWrapStyleWord
 

Field Detail

focusBorder

protected javax.swing.border.Border focusBorder

nonFocusBorder

protected javax.swing.border.Border nonFocusBorder

headerOutsideBorder

protected javax.swing.border.Border headerOutsideBorder
Constructor Detail

DefaultTableHeaderRenderer

public DefaultTableHeaderRenderer()
Creates a default table cell renderer.


DefaultTableHeaderRenderer

public DefaultTableHeaderRenderer(java.lang.Character splitCharacter)
Method Detail

createOutsideBorder

protected javax.swing.border.Border createOutsideBorder()

updateUI

public void updateUI()
Notification from the UIManager that the look and feel [L&F] has changed. Replaces the current UI object with the latest version from the UIManager.

Overrides:
updateUI in class DefaultTableCellRenderer
See Also:
JComponent.updateUI()

getTableCellRendererComponent

public java.awt.Component getTableCellRendererComponent(javax.swing.JTable table,
                                                        java.lang.Object value,
                                                        boolean isSelected,
                                                        boolean hasFocus,
                                                        int row,
                                                        int column)
Returns the default table cell renderer.

Specified by:
getTableCellRendererComponent in interface javax.swing.table.TableCellRenderer
Overrides:
getTableCellRendererComponent in class DefaultTableCellRenderer
Parameters:
table - the JTable
value - the value to assign to the cell at [row, column]
isSelected - true if cell is selected
isFocus - true if cell has focus
row - the row of the cell to render
column - the column of the cell to render
Returns:
the default table cell renderer

getInsets

public java.awt.Insets getInsets()
If a border has been set on this component, returns the border's insets; otherwise calls super.getInsets.

Overrides:
getInsets in class javax.swing.JComponent
Returns:
the value of the insets property
See Also:
JComponent.setBorder(javax.swing.border.Border)

getInsets

public java.awt.Insets getInsets(java.awt.Insets insets)
Returns an Insets object containing this component's inset values. The passed-in Insets object will be reused if possible. Calling methods cannot assume that the same object will be returned, however. All existing values within this object are overwritten.

Overrides:
getInsets in class javax.swing.JComponent
Parameters:
insets - the Insets object, which can be reused
See Also:
getInsets()



Copyright © 2009 SAS Institute Inc. All Rights Reserved.