com.sas.swing.visuals.remotefileselector
Class RemoteFileMetadataNameCellRenderer

com.sas.swing.visuals.remotefileselector.RemoteFileMetadataNameCellRenderer
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.SwingConstants, javax.swing.table.TableCellRenderer

public class RemoteFileMetadataNameCellRenderer
implements javax.swing.table.TableCellRenderer

RemoteFileMetadataNameCellRenderer provides the default name column formatting for the table views.

Since:
3.0
See Also:
Serialized Form

Field Summary
static RemoteFileMetadataNameCellRenderer defaultInstance
          A default instance of the class
protected  javax.swing.ImageIcon icon
          The icon to be used for identifying the file type
protected  java.util.HashMap iconMap
          Stores the previously instanced icons to cut down on object creation
 
Constructor Summary
RemoteFileMetadataNameCellRenderer()
           
 
Method Summary
 java.awt.Component getTableCellRendererComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, boolean cellHasFocus, int row, int column)
          Renders the value to the appropriate string value and assigns the appropriate icon.
 

Field Detail

defaultInstance

public static final RemoteFileMetadataNameCellRenderer defaultInstance
A default instance of the class


icon

protected javax.swing.ImageIcon icon
The icon to be used for identifying the file type


iconMap

protected java.util.HashMap iconMap
Stores the previously instanced icons to cut down on object creation

Constructor Detail

RemoteFileMetadataNameCellRenderer

public RemoteFileMetadataNameCellRenderer()
Method Detail

getTableCellRendererComponent

public java.awt.Component getTableCellRendererComponent(javax.swing.JTable table,
                                                        java.lang.Object value,
                                                        boolean isSelected,
                                                        boolean cellHasFocus,
                                                        int row,
                                                        int column)
Renders the value to the appropriate string value and assigns the appropriate icon.

Specified by:
getTableCellRendererComponent in interface javax.swing.table.TableCellRenderer
Parameters:
table - the object displaying the values
value - the item to be formatted
isSelected - determines if the item is selected
cellHasFocus - determines if the item has focus
row - provides the table row of the item
column - provides the table column of the item
Returns:
the formatted value



Copyright © 2009 SAS Institute Inc. All Rights Reserved.