|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbyucc.jhdl.util.BVFormat.FieldFormat
Abstract class used for formatting fields.
Field Summary | |
protected int |
minWidth
Optional minimum width for a field. |
Constructor Summary | |
protected |
FieldFormat(int minWidth)
Constructor for the FieldFormat object. |
Method Summary | |
java.lang.String |
formatField(BV field)
Method called by the user to format a field. |
protected abstract java.lang.String |
formatField(BV field,
boolean fractional)
This method is written by the subclasses of FieldFormat. |
int |
getMinWidth()
Accessor method for minWidth. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int minWidth
Constructor Detail |
protected FieldFormat(int minWidth)
minWidth
- Optional minimum width. A value less than or equal to
zero means that there is no minumum width.Method Detail |
public int getMinWidth()
public final java.lang.String formatField(BV field)
field
- This BV is the entire BV. The correct ranges will be gotten by
subclasses of this class.protected abstract java.lang.String formatField(BV field, boolean fractional)
field
- This BV is the entire BV. The correct ranges will need to be
gotten by subclasses of this class.fractional
- Tells whether or not this field represents a
fraction (if true) or a whole number (if false).
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |