org.openbp.jaspira.option
Class LocalizableOptionString

java.lang.Object
  extended by org.openbp.jaspira.option.LocalizableOptionString

public class LocalizableOptionString
extends java.lang.Object

A simple wrapper class that holds an arbitrary value and its display text. The display text is returned by the toString method, so it can be used conveniently to display the object.

Author:
Jens Ferchland

Constructor Summary
LocalizableOptionString(java.lang.String displayText, java.lang.Object value)
          Constructor.
 
Method Summary
 java.lang.String getDisplayText()
          Gets the display text.
 java.lang.Object getValue()
          Gets the option value.
 java.lang.String toString()
          Returns the display text as string representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalizableOptionString

public LocalizableOptionString(java.lang.String displayText,
                               java.lang.Object value)
Constructor.

Parameters:
displayText - Display text
value - Option value
Method Detail

toString

public java.lang.String toString()
Returns the display text as string representation of this object.

Overrides:
toString in class java.lang.Object

getDisplayText

public java.lang.String getDisplayText()
Gets the display text.


getValue

public java.lang.Object getValue()
Gets the option value.



Copyright © 2011. All Rights Reserved.