moapi.gui
Class StdFormatters.SuffixFormat

java.lang.Object
  extended by moapi.gui.StdFormatters.SuffixFormat
All Implemented Interfaces:
DisplayStringFormatter
Enclosing class:
StdFormatters

public static final class StdFormatters.SuffixFormat
extends java.lang.Object
implements DisplayStringFormatter

Formatting class for a given suffix with a space between

Since:
0.6

Constructor Summary
StdFormatters.SuffixFormat(java.lang.String suffix)
          Creates a string formatter with a suffix
 
Method Summary
 java.lang.String manipulate(ModOption option, java.lang.String value)
          Format the input into a readable string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StdFormatters.SuffixFormat

public StdFormatters.SuffixFormat(java.lang.String suffix)
Creates a string formatter with a suffix

Parameters:
suffix - Suffix to add to all values
Method Detail

manipulate

public java.lang.String manipulate(ModOption option,
                                   java.lang.String value)
Format the input into a readable string

Specified by:
manipulate in interface DisplayStringFormatter
Parameters:
option - The option we are manipulating
value - Current value of button
Returns:
Display string, such as with a suffix, prefix, etc