public abstract class AbstractDecorator<S extends IStats> extends java.lang.Object implements IDecorator<S>
| Modifier and Type | Field and Description |
|---|---|
protected static long |
MB
Constant for MegaByte.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDecorator(java.lang.String aName,
java.lang.String[] captionStrings,
java.lang.String[] shortExplanationStrings,
java.lang.String[] explanationStrings)
Creates a new abstract decorator.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(net.anotheria.util.sorter.IComparable anotherComparable,
int method) |
java.util.List<StatCaptionBean> |
getCaptions()
Returns the captions for the stat table.
|
java.lang.String |
getExplanation(java.lang.String caption)
Returns an explanation for a caption.
|
java.lang.String |
getName()
Returns the name of the decorator.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetValuesprotected static final long MB
protected AbstractDecorator(java.lang.String aName,
java.lang.String[] captionStrings,
java.lang.String[] shortExplanationStrings,
java.lang.String[] explanationStrings)
aName - name of the decorator.captionStrings - array with captions.shortExplanationStrings - array with short explanations (mouse over).explanationStrings - array with long explanations.public java.util.List<StatCaptionBean> getCaptions()
IDecoratorgetCaptions in interface IDecorator<S extends IStats>public java.lang.String getName()
IDecoratorgetName in interface IDecorator<S extends IStats>public int compareTo(net.anotheria.util.sorter.IComparable anotherComparable,
int method)
compareTo in interface net.anotheria.util.sorter.IComparablepublic java.lang.String getExplanation(java.lang.String caption)
IDecoratorgetExplanation in interface IDecorator<S extends IStats>Copyright © 2010-2020 anotheria.net. All Rights Reserved.