|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hivemind.impl.BaseLocatable
org.apache.tapestry.AbstractComponent
org.apache.tapestry.dojo.AbstractWidget
org.apache.tapestry.dojo.html.InlineEditBox
public abstract class InlineEditBox
Wraps a dojo InlineEditBox widget.
Manages a single string value that when hovered over can be edited "inline" in the document wherever it is referenced. Supports various modes of operation (ie disable/enabled), as well as textarea or single line style edits.
Some of the commonly used widget functions to listen to are:
Field Summary | |
---|---|
static String |
TEXT_AREA_MODE
Multi line editing text mode. |
static String |
TEXT_MODE
Default single line editing text mode. |
Fields inherited from class org.apache.tapestry.AbstractComponent |
---|
_body, _bodyCount |
Constructor Summary | |
---|---|
InlineEditBox()
|
Method Summary | |
---|---|
abstract boolean |
getDoFade()
|
abstract IEngineService |
getEngine()
Injected. |
abstract IActionListener |
getListener()
|
abstract ListenerInvoker |
getListenerInvoker()
Injected. |
abstract int |
getMinHeight()
|
abstract int |
getMinWidth()
|
abstract String |
getMode()
|
abstract Object |
getParameters()
|
abstract IScript |
getScript()
Injected. |
List |
getUpdateComponents()
If set, will be used to update/refresh portions of a response during XHR requests. |
String |
getUpdateUrl()
Callback url used by client side widget to update server component. |
abstract String |
getValue()
|
boolean |
isAsync()
Used to specify whether or not the result of this invocation should be returned asynchronously or use normal browser page reload semantics. |
abstract boolean |
isDisabled()
|
boolean |
isJson()
Used to specify that the return invocation of the response created should be in the "http://json.org" format. |
void |
renderWidget(IMarkupWriter writer,
IRequestCycle cycle)
Similar to the semantics involved with normal AbstractComponent.renderComponent
method writing component state to the output stream. |
abstract void |
setStateful(boolean value)
|
abstract void |
setValue(String value)
|
void |
trigger(IRequestCycle cycle)
Invoked by the direct service to have the component perform the appropriate action. |
Methods inherited from class org.apache.tapestry.dojo.AbstractWidget |
---|
getDestroy, renderComponent, setDestroy |
Methods inherited from class org.apache.hivemind.impl.BaseLocatable |
---|
getLocation, setLocation |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.tapestry.IDirect |
---|
isStateful |
Methods inherited from interface org.apache.tapestry.IComponent |
---|
addAsset, addBody, addComponent, enterActiveState, finishLoad, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getClientId, getComponent, getComponents, getContainedComponent, getContainer, getEventInvoker, getExtendedId, getId, getIdPath, getListeners, getMessages, getNamespace, getPage, getSpecification, getSpecifiedId, getTemplateTagName, isRendering, peekClientId, renderBody, setBinding, setClientId, setContainedComponent, setContainer, setId, setNamespace, setPage, setTemplateTagName |
Methods inherited from interface org.apache.tapestry.IRender |
---|
render |
Methods inherited from interface org.apache.hivemind.LocationHolder |
---|
setLocation |
Methods inherited from interface org.apache.hivemind.Locatable |
---|
getLocation |
Methods inherited from interface org.apache.tapestry.IDirectEvent |
---|
isStateful, triggerEvent |
Field Detail |
---|
public static final String TEXT_MODE
mode
parameter.
public static final String TEXT_AREA_MODE
mode
parameter.
Constructor Detail |
---|
public InlineEditBox()
Method Detail |
---|
public abstract String getValue()
public abstract void setValue(String value)
public abstract String getMode()
public abstract int getMinWidth()
public abstract int getMinHeight()
public abstract boolean getDoFade()
public abstract boolean isDisabled()
public abstract IActionListener getListener()
public abstract Object getParameters()
public abstract void setStateful(boolean value)
public void renderWidget(IMarkupWriter writer, IRequestCycle cycle)
AbstractComponent.renderComponent
method writing component state to the output stream.
renderWidget
in interface IWidget
writer
- The markup writer used to write any output.cycle
- The corresponding request.public String getUpdateUrl()
public List getUpdateComponents()
For instance, if you have a page listing projects and you wanted to update an
Any
components contents whenever one of the project links was clicked
you would use a DirectLink
with the parameters:
updateComponents="{'projectDetails'}" async="true"
getUpdateComponents
in interface IDynamicInvoker
public boolean isAsync()
Async being true means responses will be encoded as XML using XmlHttpRequests. If you would like
your request/response to be in another format - like JSON - you must also specify the additional
parameter IDynamicInvoker.isJson()
. Without setting the IDynamicInvoker.getUpdateComponents()
parameter
this parameter is pretty useless.
isAsync
in interface IDynamicInvoker
IDynamicInvoker.isJson()
public boolean isJson()
IDynamicInvoker.getUpdateComponents()
parameter
this parameter is pretty useless.
isJson
in interface IDynamicInvoker
org.apache.tapestry.IJSONRender}
public void trigger(IRequestCycle cycle)
DirectLink
component will
notify its listener.
trigger
in interface IDirect
cycle
- The current request.public abstract IEngineService getEngine()
public abstract IScript getScript()
public abstract ListenerInvoker getListenerInvoker()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |