|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.guiseframework.platform.AbstractDepictor<C>
com.guiseframework.platform.AbstractComponentDepictor<C>
com.guiseframework.platform.web.AbstractWebComponentDepictor<C>
com.guiseframework.platform.web.AbstractDecoratedWebComponentDepictor<C>
com.guiseframework.platform.web.WebTextControlDepictor<V,C>
V - The type of value represented in the control.C - The type of component being depicted.public class WebTextControlDepictor<V,C extends TextControl<V>>
Strategy for rendering a text control as an XHTML <input> element or an XHTML <textarea> element.
This view will change the XHTML element rendered based upon the number of rows requested by the text control.
This implementation automatically converts between the controls LF end-of-line representation and the CRLF required by HTML <textarea>.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.guiseframework.platform.AbstractComponentDepictor |
|---|
AbstractComponentDepictor.DepictedCompositeComponentListener |
| Nested classes/interfaces inherited from class com.guiseframework.platform.AbstractDepictor |
|---|
AbstractDepictor.DepictedPropertyChangeListener |
| Field Summary | |
|---|---|
static java.lang.String |
XSTANDARD_CLASS_ID
The XStandard class ID. |
static com.globalmentor.net.ContentType |
XSTANDARD_CONTENT_TYPE
The content type for XStandard objects. |
| Fields inherited from class com.guiseframework.platform.web.AbstractWebComponentDepictor |
|---|
BODY_END_PATTERN, BODY_START_PATTERN |
| Fields inherited from class com.guiseframework.platform.AbstractComponentDepictor |
|---|
childPropertyChangeListener |
| Fields inherited from interface com.guiseframework.platform.Depictor |
|---|
GENERAL_PROPERTY |
| Constructor Summary | |
|---|---|
WebTextControlDepictor()
Default constructor using the XHTML <input> element. |
|
| Method Summary | |
|---|---|
protected void |
depictBegin()
Begins the rendering process. |
protected void |
depictBody()
Renders the body of the component. |
java.lang.String |
getBodyLocalName()
Determines the local name of the body XML element. |
protected java.lang.String |
getInputType()
Determines the XHTML input type to use for getting input from the user. |
boolean |
isEmptyBodyElementAllowed()
Determines whether an empty body element can be created if there is no content. |
void |
processEvent(PlatformEvent event)
Processes an event from the platform. |
protected void |
writeDecoratorBegin()
Writes the beginning part of the outer decorator element. |
protected void |
writeDecoratorEnd()
Writes the ending part of the outer decorator element. |
| Methods inherited from class com.guiseframework.platform.web.AbstractDecoratedWebComponentDepictor |
|---|
depictEnd, getBodyNamespaceURI |
| Methods inherited from class com.guiseframework.platform.AbstractComponentDepictor |
|---|
depictChild, depictChildren, depictedObjectPropertyChange, getDepictedCompositeComponentListener, getErrorMessage, installed, uninstalled |
| Methods inherited from class com.guiseframework.platform.AbstractDepictor |
|---|
getDepictedObject, getDepictedPropertyChangeListener, getIgnoredProperties, getModifiedProperties, getSession, isDepicted, setDepicted, setPropertyModified |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.guiseframework.platform.Depictor |
|---|
getDepictedObject, getSession, installed, isDepicted, setDepicted, uninstalled |
| Field Detail |
|---|
public static final com.globalmentor.net.ContentType XSTANDARD_CONTENT_TYPE
public static final java.lang.String XSTANDARD_CLASS_ID
| Constructor Detail |
|---|
public WebTextControlDepictor()
<input> element.
| Method Detail |
|---|
public java.lang.String getBodyLocalName()
<input> element if exactly one row is specified, otherwise the local name of the XHTML <textarea>.
getBodyLocalName in class AbstractDecoratedWebComponentDepictor<C extends TextControl<V>>null if this component should not be rendered as an element.public boolean isEmptyBodyElementAllowed()
true for <input> and false for <textarea>.
isEmptyBodyElementAllowed in class AbstractDecoratedWebComponentDepictor<C extends TextControl<V>>getBodyLocalName()protected java.lang.String getInputType()
public void processEvent(PlatformEvent event)
processEvent in interface Depictor<C extends TextControl<V>>processEvent in class AbstractComponentDepictor<C extends TextControl<V>>event - The event to be processed.
java.lang.IllegalArgumentException - if the given event is a relevant DepictEvent with a source of a different depicted object.
protected void depictBegin()
throws java.io.IOException
depictBegin in class AbstractDecoratedWebComponentDepictor<C extends TextControl<V>>java.io.IOException - if there is an error rendering the component.
protected void depictBody()
throws java.io.IOException
depictBody in class AbstractWebComponentDepictor<C extends TextControl<V>>java.io.IOException - if there is an error rendering the component.AbstractComponentDepictor.depictChildren()
protected void writeDecoratorBegin()
throws java.io.IOException
writeDecoratorBegin in class AbstractDecoratedWebComponentDepictor<C extends TextControl<V>>java.io.IOException - if there is an error rendering the component.
protected void writeDecoratorEnd()
throws java.io.IOException
writeDecoratorEnd in class AbstractDecoratedWebComponentDepictor<C extends TextControl<V>>java.io.IOException - if there is an error rendering the component.AbstractWebComponentDepictor.writeErrorMessage()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||