|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ParseableFacet
Indicates that this class can parse an entry string.
| Method Summary | |
|---|---|
java.lang.String |
parseableTitle(NakedObject obj)
A title for the object that is valid but which may be easier to edit than the title provided by a TitleFacet. |
NakedObject |
parseTextEntry(NakedObject original,
java.lang.String text)
Parses a text entry made by a user and sets the domain object's value. |
| Methods inherited from interface org.nakedobjects.metamodel.facets.Facet |
|---|
alwaysReplace, facetType, getFacetHolder, getUnderlyingFacet, isDerived, isNoop, setFacetHolder, setUnderlyingFacet |
| Method Detail |
|---|
NakedObject parseTextEntry(NakedObject original,
java.lang.String text)
Equivalent to Parser#parseTextEntry(Object, String), though may be implemented through some other mechanism.
InvalidEntryException
TextEntryParseExceptionjava.lang.String parseableTitle(NakedObject obj)
TitleFacet.
The idea here is that the viewer can display a parseable title for an existing object when, for
example, the user initially clicks in the field. So, a date might be rendered via a TitleFacet
as May 2, 2007, but its parseable form might be 20070502.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||