Bean Builder

com.adventnet.beans.probeans.renderer
Class ProListViewTableHeaderRenderer

java.lang.Object
  |
  +--com.adventnet.beans.probeans.renderer.ProListViewTableHeaderRenderer

public class ProListViewTableHeaderRenderer
extends java.lang.Object
implements javax.swing.table.TableCellRenderer

The ProListViewTableHeaderRenderer

Since:
1.0
Version:
1.0
Author:
Arun Kumar I
See Also:

Constructor Summary
ProListViewTableHeaderRenderer()
          Creates a new ProListViewTableHeaderRenderer instance.
ProListViewTableHeaderRenderer(javax.swing.ImageIcon viewSortUpImage, javax.swing.ImageIcon viewSortDownImage, javax.swing.ImageIcon dataSortUpImage, javax.swing.ImageIcon dataSortDownImage)
          Creates a new ProListViewTableHeaderRenderer instance.
 
Method Summary
 int getDataSortColumn()
          Return's the DataSortColumn of the table.
 javax.swing.ImageIcon getDataSortDownImage()
          Return's the Data SortDown Image.
 java.awt.Color getDataSortHeaderBackground()
          Return's the DataSortHeaderBackground of the table.
 java.awt.Color getDataSortHeaderForeground()
          Return's the DataSortHeaderForeground of the table.
 boolean getDataSortOrder()
          Return's the DataSortOrder of the table.
 javax.swing.ImageIcon getDataSortUpImage()
          Return's the Data SortUp Image.
 int getHeaderHeight()
          Return's the Header Height of the table.
 java.awt.Component getTableCellRendererComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, boolean hasFocus, int row, int column)
          Returns the custom rendering component, overriding the getTableCellRendererComponent method of TableCellRenderer.
 int getViewSortColumn()
          Return's the ViewSortColumn of the table.
 javax.swing.ImageIcon getViewSortDownImage()
          Return's the ViewSort DownImage.
 java.awt.Color getViewSortHeaderBackground()
          Return's the ViewSortHeaderBackground of the table.
 java.awt.Color getViewSortHeaderForeground()
          Return's the ViewSortHeaderForeground of the table.
 boolean getViewSortOrder()
          Return's the state of the ViewSortOrder.
 javax.swing.ImageIcon getViewSortUpImage()
          Return's the ViewSort UpImage.
 void setDataSortColumn(int dataSortColumn)
          Set's the DataSortColumn of the table.
 void setDataSortDownImage(javax.swing.ImageIcon dataSortDownImage)
          Set's a new image as Data SortDown.
 void setDataSortHeaderBackground(java.awt.Color color)
          Set's the DataSortHeaderBackground of the table.
 void setDataSortHeaderFont(java.awt.Font font)
          Set's the DataSortHeaderFont of the table.
 void setDataSortHeaderForeground(java.awt.Color color)
          Set's the DataSortHeaderForeground of the table.
 void setDataSortOrder(boolean dataSortOrder)
          Set's the DataSortOrder of the table.
 void setDataSortUpImage(javax.swing.ImageIcon dataSortUpImage)
          Set's a new image as Data SortUp .
 void setHeaderHeight(int headerHeight)
          Set's the Header Height of the table.
 void setViewSortColumn(int viewSortColumn)
          Set's the ViewSortColumn of the table.
 void setViewSortDownImage(javax.swing.ImageIcon viewSortDownImage)
          Set's a ViewSort DownImage.
 void setViewSortHeaderBackground(java.awt.Color color)
          Set's the ViewSortHeaderBackground of the table.
 void setViewSortHeaderFont(java.awt.Font font)
          Set's the ViewSortHeaderFont of the table.
 void setViewSortHeaderForeground(java.awt.Color color)
          Set's the ViewSortHeaderForeground of the table.
 void setViewSortOrder(boolean viewSortOrder)
          Set's the ViewSortOrder of the table.
 void setViewSortUpImage(javax.swing.ImageIcon viewSortUpImage)
          Set's the ViewSort UpImage .
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProListViewTableHeaderRenderer

public ProListViewTableHeaderRenderer()
Creates a new ProListViewTableHeaderRenderer instance.

ProListViewTableHeaderRenderer

public ProListViewTableHeaderRenderer(javax.swing.ImageIcon viewSortUpImage,
                                      javax.swing.ImageIcon viewSortDownImage,
                                      javax.swing.ImageIcon dataSortUpImage,
                                      javax.swing.ImageIcon dataSortDownImage)
Creates a new ProListViewTableHeaderRenderer instance.
Parameters:
viewSortUpImage - an ImageIcon value
viewSortDownImage - an ImageIcon value
dataSortUpImage - an ImageIcon value
dataSortDownImage - an ImageIcon value
Method Detail

getTableCellRendererComponent

public java.awt.Component getTableCellRendererComponent(javax.swing.JTable table,
                                                        java.lang.Object value,
                                                        boolean isSelected,
                                                        boolean hasFocus,
                                                        int row,
                                                        int column)
Returns the custom rendering component, overriding the getTableCellRendererComponent method of TableCellRenderer.
Specified by:
getTableCellRendererComponent in interface javax.swing.table.TableCellRenderer
Parameters:
table - a JTable value
value - an Object value
isSelected - a boolean value
hasFocus - a boolean value
row - an int value
column - an int value
Returns:
a Component value

setDataSortUpImage

public void setDataSortUpImage(javax.swing.ImageIcon dataSortUpImage)
Set's a new image as Data SortUp .
Parameters:
dataSortUpImage - an ImageIcon value

setDataSortDownImage

public void setDataSortDownImage(javax.swing.ImageIcon dataSortDownImage)
Set's a new image as Data SortDown.
Parameters:
dataSortDownImage - an ImageIcon value

getDataSortDownImage

public javax.swing.ImageIcon getDataSortDownImage()
Return's the Data SortDown Image.
Returns:
an ImageIcon value

getDataSortUpImage

public javax.swing.ImageIcon getDataSortUpImage()
Return's the Data SortUp Image.
Returns:
an ImageIcon value

setViewSortDownImage

public void setViewSortDownImage(javax.swing.ImageIcon viewSortDownImage)
Set's a ViewSort DownImage.
Parameters:
viewSortDownImage - an ImageIcon value

getViewSortUpImage

public javax.swing.ImageIcon getViewSortUpImage()
Return's the ViewSort UpImage.
Returns:
an ImageIcon value

setViewSortUpImage

public void setViewSortUpImage(javax.swing.ImageIcon viewSortUpImage)
Set's the ViewSort UpImage .
Parameters:
viewSortUpImage - an ImageIcon value

getViewSortDownImage

public javax.swing.ImageIcon getViewSortDownImage()
Return's the ViewSort DownImage.
Returns:
an ImageIcon value

setViewSortOrder

public void setViewSortOrder(boolean viewSortOrder)
Set's the ViewSortOrder of the table.
Parameters:
viewSortOrder - a boolean value

getViewSortOrder

public boolean getViewSortOrder()
Return's the state of the ViewSortOrder.
Returns:
a boolean value

setDataSortOrder

public void setDataSortOrder(boolean dataSortOrder)
Set's the DataSortOrder of the table.
Parameters:
dataSortOrder - a boolean value

getDataSortOrder

public boolean getDataSortOrder()
Return's the DataSortOrder of the table.
Returns:
a boolean value

setHeaderHeight

public void setHeaderHeight(int headerHeight)
Set's the Header Height of the table.
Parameters:
headerHeight - an int value

getHeaderHeight

public int getHeaderHeight()
Return's the Header Height of the table.
Returns:
an int value

setViewSortColumn

public void setViewSortColumn(int viewSortColumn)
Set's the ViewSortColumn of the table.
Parameters:
viewSortColumn - an int value

getViewSortColumn

public int getViewSortColumn()
Return's the ViewSortColumn of the table.
Returns:
an int value

setDataSortColumn

public void setDataSortColumn(int dataSortColumn)
Set's the DataSortColumn of the table.
Parameters:
dataSortColumn - an int value

getDataSortColumn

public int getDataSortColumn()
Return's the DataSortColumn of the table.
Returns:
an int value

setViewSortHeaderBackground

public void setViewSortHeaderBackground(java.awt.Color color)
Set's the ViewSortHeaderBackground of the table.
Parameters:
color - a Color value

getViewSortHeaderBackground

public java.awt.Color getViewSortHeaderBackground()
Return's the ViewSortHeaderBackground of the table.
Returns:
a Color value

setDataSortHeaderBackground

public void setDataSortHeaderBackground(java.awt.Color color)
Set's the DataSortHeaderBackground of the table.
Parameters:
color - a Color value

getDataSortHeaderBackground

public java.awt.Color getDataSortHeaderBackground()
Return's the DataSortHeaderBackground of the table.
Returns:
a Color value

setViewSortHeaderForeground

public void setViewSortHeaderForeground(java.awt.Color color)
Set's the ViewSortHeaderForeground of the table.
Parameters:
color - a Color value

getViewSortHeaderForeground

public java.awt.Color getViewSortHeaderForeground()
Return's the ViewSortHeaderForeground of the table.
Returns:
a Color value

setDataSortHeaderForeground

public void setDataSortHeaderForeground(java.awt.Color color)
Set's the DataSortHeaderForeground of the table.
Parameters:
color - a Color value

getDataSortHeaderForeground

public java.awt.Color getDataSortHeaderForeground()
Return's the DataSortHeaderForeground of the table.
Returns:
a Color value

setViewSortHeaderFont

public void setViewSortHeaderFont(java.awt.Font font)
Set's the ViewSortHeaderFont of the table.
Parameters:
font - a Font value

setDataSortHeaderFont

public void setDataSortHeaderFont(java.awt.Font font)
Set's the DataSortHeaderFont of the table.
Parameters:
font - a Font value

Bean Builder

© 2001 - 2002 AdventNet Inc. Visit us at: http://www.adventnet.com