Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

alma::acs::gui::loglevel::leveldlg::LogLevelModel Class Reference

Collaboration diagram for alma::acs::gui::loglevel::leveldlg::LogLevelModel:

Collaboration graph
[legend]
List of all members.

Public Types

enum  Column {
  HTML, class, HTML, class,
  HTML, class, HTML, name,
  colClass = namecl
}

Public Member Functions

 LogLevelModel (LogLevelHelper[] levels)
Class<?> getColumnClass (int column)
int getRowCount ()
boolean isCellEditable (int row, int col)
void setValueAt (Object aValue, int row, int column)
void changesApplied ()
Object getValueAt (int row, int column)
LogLevelHelper[] getLevels ()

Package Types


Private Member Functions

void initialize ()
LogTypeHelper getLevelFromObject (Object obj)

Private Attributes

LogLevelHelper[] levels

Detailed Description

The table model for the log levels table

Author:
acaproni


Member Enumeration Documentation

enum alma::acs::gui::loglevel::leveldlg::LogLevelModel::Column
 

Enumeration values:
HTML 
class 
HTML 
class 
HTML 
class 
HTML 
name  Constructor

Parameters:
name The string to show in the table header
cl The class of the items in the column
colClass 


Constructor & Destructor Documentation

alma::acs::gui::loglevel::leveldlg::LogLevelModel::LogLevelModel LogLevelHelper[]  levels  )  [inline]
 

Constructor

Parameters:
levels The levels i.e. the row of the table


Member Function Documentation

void alma::acs::gui::loglevel::leveldlg::LogLevelModel::changesApplied  )  [inline]
 

All the changes made by the user to the log levels have been applied. This method reset the "modified" status of all the LogLevels

Class<?> alma::acs::gui::loglevel::leveldlg::LogLevelModel::getColumnClass int  column  )  [inline]
 

See also:
DefaultTableModel

LogTypeHelper alma::acs::gui::loglevel::leveldlg::LogLevelModel::getLevelFromObject Object  obj  )  [inline, private]
 

Get the level represented by the object. There are two cases:

  • obj is an integer representing the log level (for example 3)
  • obj is a string describing the log (LogTypeHelper.logEntryTypes for example Info) The reason we have two cases is that the value can be set from the LogLevelHelper of from the Combobox of the editor. The former is reprsented by an int and the latter by a String

Parameters:
obj The object representing the log type
Returns:
The log type null if a log type for the given parameter is not found

LogLevelHelper [] alma::acs::gui::loglevel::leveldlg::LogLevelModel::getLevels  )  [inline]
 

Getter

Returns:
The LogLevels[] set by the user

int alma::acs::gui::loglevel::leveldlg::LogLevelModel::getRowCount  )  [inline]
 

See also:
DefaultTableModel

Object alma::acs::gui::loglevel::leveldlg::LogLevelModel::getValueAt int  row,
int  column
[inline]
 

See also:
DefaultTableModel

void alma::acs::gui::loglevel::leveldlg::LogLevelModel::initialize  )  [inline, private]
 

Init the table model data structures

boolean alma::acs::gui::loglevel::leveldlg::LogLevelModel::isCellEditable int  row,
int  col
[inline]
 

See also:
DefaultTableModel

void alma::acs::gui::loglevel::leveldlg::LogLevelModel::setValueAt Object  aValue,
int  row,
int  column
[inline]
 

Set the value of the cell in the given row and col.

Parameters:
aValue The new value to set
row The row of the cell
column The column of the cell


Member Data Documentation

LogLevelHelper [] alma::acs::gui::loglevel::leveldlg::LogLevelModel::levels [private]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:52:58 2009 for ACS Java API by doxygen 1.3.8