|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.rubecula.util.Presentation
This is the base class for presentations to the user, particularly in situations where room for the presentation is limited, such as in a spreadsheet cell.
Note: this class is a co-class with the interface Presentable (each depends on the other).
Important Note: in addition to the contract defined below, it is expected that a concrete instance of Presentation can be constructed with a constructor which takes one String argument.
| Field Summary | |
java.lang.String |
_Appearance
This string is purely for debugging purposes. |
static java.lang.String |
$empty
Empty string constant. |
static java.lang.String |
$Stars
A long string of stars. |
| Constructor Summary | |
Presentation()
|
|
| Method Summary | |
java.lang.String |
audit()
Method to return a detailed (unlabeled) string from an arithmetical object for debugging purposes. |
void |
audit(java.io.PrintStream out,
java.lang.String label)
Method to output a string from an arithmetical object for debugging purposes. |
abstract AttrMap |
getAttributes()
Return the attributes with which this presentation was created, or at least the best guess. |
abstract java.lang.String |
getPresentableClass()
Method to get the name of the corresponding Presentable class for this Presentation. |
Presentable |
parse()
Convert this Presentation into a Presentable object. |
java.lang.String |
toString()
Render this Presentation as a String with no width limitation. |
abstract java.lang.String |
toString(int width)
Render this Presentation as a String within the width specified. |
void |
updateAppearance()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.rubecula.util.Auditable |
audit |
| Methods inherited from interface com.rubecula.util.Identifiable |
getIdentifier |
| Field Detail |
public static final java.lang.String $empty
public static final java.lang.String $Stars
public java.lang.String _Appearance
| Constructor Detail |
public Presentation()
| Method Detail |
public Presentable parse()
throws PresentationException
getPresentableClass().
PresentationException - if the presentation cannot be parsed.public abstract java.lang.String getPresentableClass()
public abstract AttrMap getAttributes()
throws PresentationException
PresentationException
public abstract java.lang.String toString(int width)
throws PresentationException
width - the max. number of characters within which to output the
presentation.
PresentationException - if the presentation cannot be rendered
within the given width.public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String audit()
audit in interface Auditable
public void audit(java.io.PrintStream out,
java.lang.String label)
audit in interface Auditableout - the print stream to which audit string is to be sent.label - the label to attach to the data.public void updateAppearance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||