public abstract class InsertText extends AbstractComponent
TextArea
component. [Component Reference]
To maintain the line breaks provided originally, this component will break the input into individual lines and insert additional HTML to make each line seperate.
This can be down more simply, using the <pre> HTML element, but that usually renders the text in a non-proportional font.
Constructor and Description |
---|
InsertText() |
Modifier and Type | Method and Description |
---|---|
protected void |
finishLoad()
Sets the mode parameter property to its default,
InsertTextMode.BREAK . |
abstract InsertTextMode |
getMode()
Parameter
|
abstract boolean |
getRaw()
Parameter
|
abstract java.lang.String |
getValue()
Parameter
|
protected void |
renderComponent(IMarkupWriter writer,
IRequestCycle cycle)
Invoked by
AbstractComponent.render(IMarkupWriter, IRequestCycle) to actually render the component
(with any parameter values already set). |
abstract void |
setMode(InsertTextMode mode) |
addAsset, addBody, addComponent, checkActiveLock, cleanupAfterRender, enterActiveState, finishLoad, format, format, format, format, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getComponent, getComponents, getContainedComponent, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isInActiveState, isParameterBound, isRendering, pageEndRender, prepareForRender, render, renderBody, renderInformalParameters, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage, setProperty, toString
public InsertText()
protected void renderComponent(IMarkupWriter writer, IRequestCycle cycle)
AbstractComponent
AbstractComponent.render(IMarkupWriter, IRequestCycle)
to actually render the component
(with any parameter values already set). This is the method that subclasses must implement.renderComponent
in class AbstractComponent
public abstract InsertTextMode getMode()
public abstract void setMode(InsertTextMode mode)
public abstract java.lang.String getValue()
public abstract boolean getRaw()
protected void finishLoad()
InsertTextMode.BREAK
.finishLoad
in class AbstractComponent