com.izforge.izpack.panels
Class ValidatePackSelections.TextValuePair

java.lang.Object
  extended bycom.izforge.izpack.panels.ValidatePackSelections.TextValuePair
Enclosing class:
ValidatePackSelections

protected static class ValidatePackSelections.TextValuePair
extends Object

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


Constructor Summary
ValidatePackSelections.TextValuePair(String text, String value)
          Constructs a new Text/Value pair, initialized with the text and a value.
 
Method Summary
 String getValue()
          This method returns the value that was associated with this object
 void setText(String text)
          Sets the text
 void setValue(String value)
          Sets the value of this object
 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
 

Constructor Detail

ValidatePackSelections.TextValuePair

public ValidatePackSelections.TextValuePair(String text,
                                            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(String text)
Sets the text

Parameters:
text - the text for this object

setValue

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

Parameters:
value - the value for this object

toString

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

Returns:
the object's text

getValue

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

Returns:
the object's value


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.