com.notuvy.util
Class GenericConfigurationFile.TextValueField

java.lang.Object
  extended by com.notuvy.util.GenericConfigurationFile.Field
      extended by com.notuvy.util.GenericConfigurationFile.TextField
          extended by com.notuvy.util.GenericConfigurationFile.TextValueField
Enclosing class:
GenericConfigurationFile

public static class GenericConfigurationFile.TextValueField
extends GenericConfigurationFile.TextField

Process text and store the value locally in a ValueHolder. Client logic simply interacts with the ValueHolder. It can be initialized with the default value.


Constructor Summary
GenericConfigurationFile.TextValueField(String pName, String pInitialValue)
           
GenericConfigurationFile.TextValueField(String pName, ValueHolder<String> pValue)
           
 
Method Summary
 ValueHolder<String> getValue()
           
protected  String handleGet()
           
protected  void handleSet(String pInput)
           
 
Methods inherited from class com.notuvy.util.GenericConfigurationFile.TextField
handle, setContentIn
 
Methods inherited from class com.notuvy.util.GenericConfigurationFile.Field
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericConfigurationFile.TextValueField

public GenericConfigurationFile.TextValueField(String pName,
                                               String pInitialValue)

GenericConfigurationFile.TextValueField

public GenericConfigurationFile.TextValueField(String pName,
                                               ValueHolder<String> pValue)
Method Detail

getValue

public ValueHolder<String> getValue()

handleSet

protected void handleSet(String pInput)
Specified by:
handleSet in class GenericConfigurationFile.TextField

handleGet

protected String handleGet()
Specified by:
handleGet in class GenericConfigurationFile.TextField


Copyright © 2013. All Rights Reserved.