VLab Common 1.2

pl.psnc.vlab.util.gui.table.model.info
Class AbstractColumnType

java.lang.Object
  extended by pl.psnc.vlab.util.gui.table.model.info.AbstractColumnType
All Implemented Interfaces:
IColumnInfo, BundleInfo
Direct Known Subclasses:
CustomColumnType

public abstract class AbstractColumnType
extends java.lang.Object
implements BundleInfo, IColumnInfo

AbstractColumnType class - describes JTable column type. Each column is described by column name, type. Column names are internationalised.

Author:
Dominik Stoklosa (~osa~)
Email address
osa@man.poznan.pl

Field Summary
protected  BundleHelper bundleHelper
          Stores instance of field: bundleHelper
 
Constructor Summary
AbstractColumnType(java.lang.String nameKey, java.lang.Class<?> type)
          Creates new ColumnType
AbstractColumnType(java.lang.String nameKey, java.lang.Class<?> type, ColumnDecorator decorator)
          Creates new ColumnType
AbstractColumnType(java.lang.String nameKey, java.lang.Class<?> type, ColumnDecorator decorator, java.util.Comparator<?> comparator)
          Creates new ColumnType
 
Method Summary
abstract  java.lang.String getBundle()
          Get bundle with the i18n keys for the given exception
 AbstractColumnType getColumnType()
          Get column type, instance of AbstractColumnType
 java.util.Comparator<?> getComparator()
          Get value of field: comparator
 ColumnDecorator getDecorator()
          Get value of decorator
 java.lang.String getName()
          Get ColumnType name
 java.lang.Class<?> getType()
          Get value of type
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

bundleHelper

protected BundleHelper bundleHelper
Stores instance of field: bundleHelper

Constructor Detail

AbstractColumnType

public AbstractColumnType(java.lang.String nameKey,
                          java.lang.Class<?> type)
Creates new ColumnType

Parameters:
nameKey - column name i18n key
type - column type

AbstractColumnType

public AbstractColumnType(java.lang.String nameKey,
                          java.lang.Class<?> type,
                          ColumnDecorator decorator)
Creates new ColumnType

Parameters:
nameKey - column name i18n key
type - column type
decorator - decorator class

AbstractColumnType

public AbstractColumnType(java.lang.String nameKey,
                          java.lang.Class<?> type,
                          ColumnDecorator decorator,
                          java.util.Comparator<?> comparator)
Creates new ColumnType

Parameters:
nameKey - column name i18n key
type - column type
decorator - decorator class
comparator - comparator class
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getBundle

public abstract java.lang.String getBundle()
Description copied from interface: BundleInfo
Get bundle with the i18n keys for the given exception

Specified by:
getBundle in interface BundleInfo
Returns:
bundle name for the given exception

getColumnType

public AbstractColumnType getColumnType()
Description copied from interface: IColumnInfo
Get column type, instance of AbstractColumnType

Specified by:
getColumnType in interface IColumnInfo
Returns:
column type, instance of AbstractColumnType

getName

public java.lang.String getName()
Get ColumnType name

Returns:
column name

getType

public java.lang.Class<?> getType()
Get value of type

Returns:
the type

getDecorator

public ColumnDecorator getDecorator()
Get value of decorator

Returns:
the decorator

getComparator

public java.util.Comparator<?> getComparator()
Get value of field: comparator

Returns:
the comparator

VLab Common 1.2

Copyright 2004 by VLAB Dominik Stoklosa.