JIDE 3.5.15

com.jidesoft.grid
Interface HierarchicalTableComponentFactory


public interface HierarchicalTableComponentFactory

An interface to create a component from the value that returned from HierarchicalTableModel.


Method Summary
 Component createChildComponent(HierarchicalTable table, Object value, int row)
          Creates the child component for the specified row and using the specified value.
 void destroyChildComponent(HierarchicalTable table, Component component, int row)
          Destroys the child component.
 

Method Detail

createChildComponent

Component createChildComponent(HierarchicalTable table,
                               Object value,
                               int row)
Creates the child component for the specified row and using the specified value.

Parameters:
table - the HierarchicalTable
value - the value returned from HierarchicalTableModel.getChildValueAt(int).
row - the actual row index as in the HierarchicalTableModel. Please note, it may or may not the visual row index as you see from the screen especially if you have sorting and filtering enabled in this table.
Returns:
a child component.

destroyChildComponent

void destroyChildComponent(HierarchicalTable table,
                           Component component,
                           int row)
Destroys the child component.

Parameters:
table - the HierarchicalTable
component - the component to be destroyed.
row - the actual row index as in the HierarchicalTableModel. Please note, it may or may not the visual row index as you see from the screen especially if you have sorting and filtering enabled in this table.

JIDE 3.5.15