org.alltimeflashdreamer.filelister.gui
Class FileListerCellRenderer

java.lang.Object
  extended byorg.alltimeflashdreamer.filelister.gui.FileListerCellRenderer
All Implemented Interfaces:
TableCellRenderer

class FileListerCellRenderer
extends Object
implements TableCellRenderer

Title: FileListerCellRenderer

Description: This cell renderer is designed to render the property value column of the SetupFrame.

Organization: All Time Flash Dreamer

Version:
0.5.1
Author:
Copyright (c) 2002-2004 by Florian Steinsiepe

Constructor Summary
(package private) FileListerCellRenderer(FileListerTableModel model)
          Constructor uses the given model pointer to build up the array of components representing the table cell entries.
 
Method Summary
(package private)  JComponent getComponentAt(int iRow, int iColumn)
          Returns the component at the given position out of the internal array of stored components.
(package private)  int getMaximumNameSize()
          Returns the size (in pixels) of the longest property name.
 Component getTableCellRendererComponent(JTable table, Object value, boolean bIsSelected, boolean bHasFocus, int iRow, int iColumn)
          Returns the rendering component of the cell at the given coordinates within the table.
(package private)  void updateValueComponents()
          Updates/Reinitializes the list of value components (only those that are editable).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileListerCellRenderer

FileListerCellRenderer(FileListerTableModel model)
Constructor uses the given model pointer to build up the array of components representing the table cell entries.

Parameters:
model - the table model pointer
Method Detail

getTableCellRendererComponent

public Component getTableCellRendererComponent(JTable table,
                                               Object value,
                                               boolean bIsSelected,
                                               boolean bHasFocus,
                                               int iRow,
                                               int iColumn)
Returns the rendering component of the cell at the given coordinates within the table.

Specified by:
getTableCellRendererComponent in interface TableCellRenderer
Parameters:
table - the JTable to be rendered
value - the cell value
bIsSelected - whether the cell is selected or not
bHasFocus - whether the cell has the focus or not
iRow - which row is to be rendered
iColumn - which column is to be rendered
Returns:
a Component to be filled into the cell

getComponentAt

JComponent getComponentAt(int iRow,
                          int iColumn)
Returns the component at the given position out of the internal array of stored components.

Parameters:
iRow - the row of the component to return
iColumn - the column of the component to return
Returns:
the component at the given position (if the position is out of range, an ArrayIndexOutOfBoundsException is thrown)

updateValueComponents

void updateValueComponents()
Updates/Reinitializes the list of value components (only those that are editable).


getMaximumNameSize

int getMaximumNameSize()
Returns the size (in pixels) of the longest property name.

Returns:
the maximum string width of the properties