org.rhq.enterprise.communications.command.param
Class TextFieldRenderingInformation

java.lang.Object
  extended by org.rhq.enterprise.communications.command.param.ParameterRenderingInformation
      extended by org.rhq.enterprise.communications.command.param.TextFieldRenderingInformation
All Implemented Interfaces:
Serializable

public class TextFieldRenderingInformation
extends ParameterRenderingInformation
implements Serializable

Class used to encapsulate information specific to text fields.

Author:
Charles Crouch, John Mazzitelli
See Also:
Serialized Form

Constructor Summary
TextFieldRenderingInformation()
          Defines a default length and height for the text field and sets the keys to null.
TextFieldRenderingInformation(int length, int height)
          Sets the length and height as given but sets the keys to null.
TextFieldRenderingInformation(String labelKey, String descriptionKey)
          Defines a default length and height and sets the keys to the given values.
TextFieldRenderingInformation(String labelKey, String descriptionKey, int length, int height)
          Defines the keys and dimensions to their given values.
 
Method Summary
 void applyResourceBundle(ResourceBundle resourceBundle)
          None of the attributes specific to this class are localizable, so this simply delegates to the superclass's ParameterRenderingInformation.applyResourceBundle(ResourceBundle) method.
 int getFieldHeight()
          Returns the field height.
 int getFieldLength()
          Returns the field length.
 
Methods inherited from class org.rhq.enterprise.communications.command.param.ParameterRenderingInformation
getDescription, getDescriptionKey, getLabel, getLabelKey, isHidden, isObfuscated, isReadOnly, setDescription, setHidden, setLabel, setObfuscated, setReadOnly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextFieldRenderingInformation

public TextFieldRenderingInformation()
Defines a default length and height for the text field and sets the keys to null. See TextFieldRenderingInformation(String, String, int, int) for more information.


TextFieldRenderingInformation

public TextFieldRenderingInformation(int length,
                                     int height)
Sets the length and height as given but sets the keys to null. See TextFieldRenderingInformation(String, String, int, int) for more information.

Parameters:
length -
height -

TextFieldRenderingInformation

public TextFieldRenderingInformation(String labelKey,
                                     String descriptionKey)
Defines a default length and height and sets the keys to the given values. See TextFieldRenderingInformation(String, String, int, int) for more information.

Parameters:
labelKey -
descriptionKey -

TextFieldRenderingInformation

public TextFieldRenderingInformation(String labelKey,
                                     String descriptionKey,
                                     int length,
                                     int height)
Defines the keys and dimensions to their given values. See ParameterRenderingInformation.ParameterRenderingInformation(String, String) for more information.

Parameters:
labelKey -
descriptionKey -
length -
height -
Method Detail

getFieldLength

public int getFieldLength()
Returns the field length.

Returns:
the field length

getFieldHeight

public int getFieldHeight()
Returns the field height.

Returns:
the field height

applyResourceBundle

public void applyResourceBundle(ResourceBundle resourceBundle)
                         throws MissingResourceException
None of the attributes specific to this class are localizable, so this simply delegates to the superclass's ParameterRenderingInformation.applyResourceBundle(ResourceBundle) method.

Overrides:
applyResourceBundle in class ParameterRenderingInformation
Parameters:
resourceBundle - the resource bundle where the key values are found (may be null)
Throws:
MissingResourceException - if a key was not found in the resource bundle
See Also:
ParameterRenderingInformation.applyResourceBundle(ResourceBundle)


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.