|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfacets.util.Tracer
facets.util.StatefulCore
facets.core.app.HtmlContent
public final class HtmlContent
Stateful container for mutable HTML source.
| Nested Class Summary | |
|---|---|
static class |
HtmlContent.HtmlSelected
Defines start and end of text selection in rendering and source. |
| Constructor Summary | |
|---|---|
HtmlContent(java.lang.String title,
java.lang.String source)
Unique constructor. |
|
| Method Summary | |
|---|---|
Stateful |
copyState()
Implements interface method. |
SSelection |
newSelection(int start,
int stop,
boolean inSource)
|
void |
setState(java.lang.Object src)
Implements interface method. |
java.lang.String |
source()
The HTML currently wrapped, possibly set via setState(Object). |
boolean |
stateEquals(Stateful s)
Invalid stub implementation. |
| Methods inherited from class facets.util.StatefulCore |
|---|
setTitle, stateStamp, title, toString, updateStateStamp |
| Methods inherited from class facets.util.Tracer |
|---|
trace, trace, trace, trace, trace, traceDebug, traceDebug, traceObjectText, traceOutput, traceOutputWithClass |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HtmlContent(java.lang.String title,
java.lang.String source)
title - passed to superclasssource - valid HTML text, non-null but possibly empty| Method Detail |
|---|
public java.lang.String source()
setState(Object).
null but possibly emptypublic void setState(java.lang.Object src)
StatefulCoreDoes not actually set any state, but does change the value returned
by StatefulCore.stateStamp(): if updating itself by calling StatefulCore.updateStateStamp(),
otherwise by casting src to a Stateful
and copying its StatefulCore.stateStamp()
setState in interface StatefulsetState in class StatefulCoresrc - must be non-null and interpretable by the implementation
as state information; it will usually be another instance of the
Stateful's class.public Stateful copyState()
StatefulCoreWrapper for Util.deserializedCopy(Serializable)
copyState in interface StatefulcopyState in class StatefulCorepublic boolean stateEquals(Stateful s)
StatefulCore
stateEquals in interface StatefulstateEquals in class StatefulCores - to compare
public SSelection newSelection(int start,
int stop,
boolean inSource)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||