com.izforge.izpack.panels
Class UserInputPanel.TextValuePair

java.lang.Object
  extended by com.izforge.izpack.panels.UserInputPanel.TextValuePair
Enclosing class:
UserInputPanel

private static class UserInputPanel.TextValuePair
extends java.lang.Object

This class can be used to associate a text string and a (text) value.


Field Summary
private  java.lang.String text
           
private  java.lang.String value
           
 
Constructor Summary
UserInputPanel.TextValuePair(java.lang.String text, java.lang.String value)
          Constructs a new Text/Value pair, initialized with the text and a value.
 
Method Summary
 java.lang.String getValue()
          This method returns the value that was associated with this object
 void setText(java.lang.String text)
          Sets the text
 void setValue(java.lang.String value)
          Sets the value of this object
 java.lang.String toString()
          This method returns the text that was set for the object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

text

private java.lang.String text

value

private java.lang.String value
Constructor Detail

UserInputPanel.TextValuePair

public UserInputPanel.TextValuePair(java.lang.String text,
                                    java.lang.String value)
Constructs a new Text/Value pair, initialized with the text and a value.

Parameters:
text - the text that this object should represent
value - the value that should be associated with this object
Method Detail

setText

public void setText(java.lang.String text)
Sets the text

Parameters:
text - the text for this object

setValue

public void setValue(java.lang.String value)
Sets the value of this object

Parameters:
value - the value for this object

toString

public java.lang.String toString()
This method returns the text that was set for the object

Overrides:
toString in class java.lang.Object
Returns:
the object's text

getValue

public java.lang.String getValue()
This method returns the value that was associated with this object

Returns:
the object's value