com.notuvy.util
Class DependentText

java.lang.Object
  extended by com.notuvy.util.DependentText
All Implemented Interfaces:
ValueChangeHandler<Boolean>
Direct Known Subclasses:
DependentText.Label, DependentText.Menu, DependentText.ToolTip

public abstract class DependentText
extends Object
implements ValueChangeHandler<Boolean>

Use one of two text values depending on a boolean flag.

Author:
murali

Nested Class Summary
static class DependentText.Label
           
static class DependentText.Menu
           
static class DependentText.ToolTip
           
 
Constructor Summary
DependentText(String pTextTrue, String pTextFalse)
           
 
Method Summary
 String getTextFalse()
           
 String getTextTrue()
           
 void handleInitialValue(Boolean pValue)
          Handle the initial value in the ValueHolder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.notuvy.util.ValueChangeHandler
handleValueChange
 

Constructor Detail

DependentText

public DependentText(String pTextTrue,
                     String pTextFalse)
Method Detail

getTextTrue

public String getTextTrue()

getTextFalse

public String getTextFalse()

handleInitialValue

public void handleInitialValue(Boolean pValue)
Description copied from interface: ValueChangeHandler
Handle the initial value in the ValueHolder. Note that this is necessary because when a handler is attached to a holder, there is no change in value in the holder. This method is used to have the handle initialize.

Specified by:
handleInitialValue in interface ValueChangeHandler<Boolean>
Parameters:
pValue - The initial value.


Copyright © 2013. All Rights Reserved.