com.gridsystems.config.tools.console
Class Field

java.lang.Object
  extended by com.gridsystems.config.tools.console.Field
Direct Known Subclasses:
ConnectorField, ConstantField, GroupField, MessageField, SelectionField, ValueField

public abstract class Field
extends java.lang.Object

Base abstract class for console edition fields.

Version:
1.0
Author:
Rodrigo Ruiz Aguayo

Field Summary
protected  java.util.ResourceBundle bundle
          The resource bundle to use by this field.
 
Constructor Summary
Field(java.util.ResourceBundle bundle)
          Creates a new instance that will use the specified resource bundle.
 
Method Summary
abstract  java.lang.String[] getContents()
          Gets the contents of this field.
 java.lang.String getString(java.lang.String key)
          Gets an internationalized string by key name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bundle

protected java.util.ResourceBundle bundle
The resource bundle to use by this field.

Constructor Detail

Field

public Field(java.util.ResourceBundle bundle)
Creates a new instance that will use the specified resource bundle.

Parameters:
bundle - The bundle to use
Method Detail

getString

public java.lang.String getString(java.lang.String key)
Gets an internationalized string by key name.

Parameters:
key - The key name for the string
Returns:
The string associated to the specified key

getContents

public abstract java.lang.String[] getContents()
Gets the contents of this field.

Returns:
The contents of this field


Copyright © 2007-2008 Grid Systems, S.A.. All Rights Reserved.