com.partnersoft.v3x.apps.Staker.interfaces
Class PaddingTranslator

java.lang.Object
  extended by com.partnersoft.v3x.apps.Staker.interfaces.PaddingTranslator
All Implemented Interfaces:
Translator, java.io.Serializable

public class PaddingTranslator
extends java.lang.Object
implements Translator

This will return the value padded to a sertain number of spaces. It takes the optional argument padOrientation ("prepend" or "append") that will determine wether the translator prepends or appends the spaces. By default, the translator will prepend spaces.

See Also:
Serialized Form

Constructor Summary
PaddingTranslator()
           
 
Method Summary
 java.lang.Object getFieldWidth()
           
 java.lang.Object getPadOrientation()
           
 void setFieldWidth(java.lang.Object newFieldWidth)
           
 void setPadOrientation(java.lang.Object newPadOrientation)
           
 java.lang.Object translate(java.lang.Object original)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PaddingTranslator

public PaddingTranslator()
Method Detail

translate

public java.lang.Object translate(java.lang.Object original)
Specified by:
translate in interface Translator

getFieldWidth

public java.lang.Object getFieldWidth()

setFieldWidth

public void setFieldWidth(java.lang.Object newFieldWidth)

getPadOrientation

public java.lang.Object getPadOrientation()

setPadOrientation

public void setPadOrientation(java.lang.Object newPadOrientation)