org.keridwen.modelling.global.parameters.ui
Class ParameterTableManager

java.lang.Object
  extended by org.keridwen.modelling.global.parameters.ui.ParameterTableManager

public class ParameterTableManager
extends Object

Author:
J.Forest, Artenum SARL

Constructor Summary
ParameterTableManager(String parameterListName)
          Main constructor.
 
Method Summary
 void addRow(String name, String type, Object value, String unit, String desc, GlobalParameter.VerbosityLevel verbosity)
          Add a new row at the bottom of the table.
 String getParameterListName()
          Get the name of the list of GlobalParameter with wich one the present table is loaded with.
 org.keridwen.modelling.global.parameters.ui.ParameterTableModel getRealModel()
          Return the real model, i.e before hidding rows, linked to the present renderer.
 TableRowSorter<TableModel> getRowSorter()
           
 JTable getTable()
          Get the table linked to the present renderer.
 void removeSelectedRow()
          Allow to remove the selected row.
 void setParameterListName(String parameterListName)
          Set the name of the list of GlobalParameter with wich one the present table is loaded with.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParameterTableManager

public ParameterTableManager(String parameterListName)
Main constructor.

Parameters:
parameterListName -
Method Detail

addRow

public void addRow(String name,
                   String type,
                   Object value,
                   String unit,
                   String desc,
                   GlobalParameter.VerbosityLevel verbosity)
Add a new row at the bottom of the table.

Parameters:
name - - KeyName of the given parameter
type - - type as String of the given parameter
value - - Value of the given parameter.
unit - - Unit as string
desc - - description of the givne parameter.
verbosity - - Level of verbosity.

getTable

public JTable getTable()
Get the table linked to the present renderer.

Returns:
The linked table.

removeSelectedRow

public void removeSelectedRow()
Allow to remove the selected row.


setParameterListName

public void setParameterListName(String parameterListName)
Set the name of the list of GlobalParameter with wich one the present table is loaded with.

Parameters:
parameterListName - - Name of the parameters list.

getParameterListName

public String getParameterListName()
Get the name of the list of GlobalParameter with wich one the present table is loaded with.

Returns:
Name of the parameters list.

getRealModel

public org.keridwen.modelling.global.parameters.ui.ParameterTableModel getRealModel()
Return the real model, i.e before hidding rows, linked to the present renderer.

Returns:
the real model.

getRowSorter

public TableRowSorter<TableModel> getRowSorter()


Copyright © 2012-2013 Artenum. All Rights Reserved.