|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines the linkage between values in the JQuantity package and user interface classes, such as in com.rubecula.spreadsheet. For example, any subclass com.rubecula.jquantity.BaseNumber implements this interface and so can be converted into a Presentation and back again.
Important Note: this interface is a co-class with the abstract class Presentation (each depends on the other).
Method Summary | |
java.lang.String |
getType()
This method is primarily for development purposes: it yields the name of the class of the presentable object or, in some cases, the class of the presentable object indirectly referenced. |
Presentable |
makePresentableInstance(Presentation presentation)
Instance method to convert a Presentation into a Presentable. |
Presentation |
present(AttrMap attributes)
Convert this Presentable object into a Presentation, according to the set of attributes provided. |
Method Detail |
public Presentation present(AttrMap attributes) throws PresentationException
attributes
- a map of the attributes desired for the construction
of the new presentation (may be empty).
PresentationException
- in case of parsing error.public Presentable makePresentableInstance(Presentation presentation) throws PresentationException
presentation
- of a number to be converted into a Presentable number.
PresentationException
- in case of parsing error.public java.lang.String getType()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |