com.izforge.izpack.panels.userinput.field
Class Choice

java.lang.Object
  extended by com.izforge.izpack.panels.userinput.field.Choice

public class Choice
extends Object

A pair of values. The key identifies the pair, and the value is used for display purposes.

Author:
Tim Anderson

Constructor Summary
Choice(String key, String value)
           
Choice(String key, String value, String conditionId)
          Constructs a Choice.
 
Method Summary
 String getConditionId()
          Returns the optional condition ID.
 String getKey()
          Returns the key, otherwise known as the true value.
 String getTrueValue()
          Returns the 'true' value, otherwise known as the key.
 String getValue()
          Returns the display value.
 String toString()
          Returns the display value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Choice

public Choice(String key,
              String value,
              String conditionId)
Constructs a Choice.

Parameters:
key - the key
value - the display value

Choice

public Choice(String key,
              String value)
Method Detail

getKey

public String getKey()
Returns the key, otherwise known as the true value.

Returns:
the key

getTrueValue

public String getTrueValue()
Returns the 'true' value, otherwise known as the key.

Returns:
the 'true' value

getValue

public String getValue()
Returns the display value.

Returns:
the display value

getConditionId

public String getConditionId()
Returns the optional condition ID.

Returns:
the condition ID, might be null

toString

public String toString()
Returns the display value.

Overrides:
toString in class Object
Returns:
the display value


Copyright © 2018. All rights reserved.