VLab Common 1.2

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

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

public class CustomColumnType
extends AbstractColumnType

CustomColumnType class - describes JTable column type. Each column is described by column name, type. Column names are internationalised. The i18n messages are stored in the given bundle file.

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

Field Summary
 
Fields inherited from class pl.psnc.vlab.util.gui.table.model.info.AbstractColumnType
bundleHelper
 
Constructor Summary
CustomColumnType(java.lang.String nameKey, java.lang.Class<?> type, ColumnDecorator decorator, java.util.Comparator<?> comparator, java.lang.String bundlePath)
          Creates new ColumnType
CustomColumnType(java.lang.String nameKey, java.lang.Class<?> type, ColumnDecorator decorator, java.lang.String bundlePath)
          Creates new ColumnType
CustomColumnType(java.lang.String nameKey, java.lang.Class<?> type, java.lang.String bundlePath)
          Creates new ColumnType
 
Method Summary
 java.lang.String getBundle()
          Get bundle with the i18n keys for the given exception
 
Methods inherited from class pl.psnc.vlab.util.gui.table.model.info.AbstractColumnType
getColumnType, getComparator, getDecorator, getName, getType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CustomColumnType

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

Parameters:
nameKey - column name i18n key
type - column type
bundlePath - path to the resource bundle file

CustomColumnType

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

Parameters:
nameKey - column name i18n key
type - column type
decorator - decorator class
bundlePath - path to the resource bundle file

CustomColumnType

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

Parameters:
nameKey - column name i18n key
type - column type
decorator - decorator class
comparator - comparator class
bundlePath - path to the resource bundle file
Method Detail

getBundle

public 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
Specified by:
getBundle in class AbstractColumnType
Returns:
bundle name for the given exception

VLab Common 1.2

Copyright 2004 by VLAB Dominik Stoklosa.