|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.rubecula.util.Presentation
com.rubecula.util.StringPresentation
Class to model the presentation of pure text.
Field Summary | |
(package private) static java.lang.String |
_PresentableClass
The name of the class that will be used to create a Presentable from a StringPresentation, when invoking the Presentation.parse() method.
// TODO Check this! |
private java.lang.String |
_S
|
Fields inherited from class com.rubecula.util.Presentation |
_Appearance, $empty, $Stars |
Constructor Summary | |
StringPresentation(java.lang.String s)
|
Method Summary | |
java.lang.String |
audit(java.lang.String label)
Method to return a detailed string from an object for debugging purposes. |
AttrMap |
getAttributes()
Return the attributes with which this presentation was created, or at least the best guess. |
java.lang.String |
getIdentifier()
Method to get the specific identifier for an object. |
java.lang.String |
getPresentableClass()
Method to get the name of the corresponding Presentable class for this Presentation. |
java.lang.String |
toString(int width)
Render this Presentation as a String within the width specified. |
Methods inherited from class com.rubecula.util.Presentation |
audit, audit, parse, toString, updateAppearance |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
static java.lang.String _PresentableClass
Presentation.parse()
method.
// TODO Check this! Ideally we would like to create any implementer of Replaceable.
private final java.lang.String _S
Constructor Detail |
public StringPresentation(java.lang.String s)
Method Detail |
public AttrMap getAttributes() throws PresentationException
getAttributes
in class Presentation
PresentationException
public java.lang.String toString(int width)
toString
in class Presentation
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 audit(java.lang.String label)
Auditable
label
- the label to associate with the data.
If label is non-null, a more detailed audit will be returned (this
normally occurs only at the top level).
public java.lang.String getPresentableClass()
getPresentableClass
in class Presentation
_PresentableClass
.public java.lang.String getIdentifier()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |