|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnextapp.echo.AbstractComponent
net.sf.jzeno.echo.components.CustomComponent
net.sf.jzeno.echo.components.AsyncComponent
public abstract class AsyncComponent
Nested Class Summary | |
---|---|
static class |
AsyncComponent.AsyncService
|
static class |
AsyncComponent.PropertyChangeDetector
|
Field Summary |
---|
Constructor Summary | |
---|---|
AsyncComponent()
|
|
AsyncComponent(java.lang.Class beanClass,
java.lang.String property,
java.lang.String constructionHints)
|
Method Summary | |
---|---|
protected java.lang.String |
createUpdateScript(java.lang.String valueScript,
boolean immediate)
|
protected abstract void |
renderHtml(java.io.PrintWriter out)
Render your component into HTML here. |
protected abstract void |
renderJavascript(java.io.PrintWriter out)
Return some javascript that you which to execute for the current rendering of your component. |
protected abstract void |
renderJavascriptLibrary(java.io.PrintWriter out)
If you whish to use some javascript functions/libraries you can return those in this method. |
protected abstract void |
update(java.lang.String input)
If you want to send information from you client back to the server to update state there, you can use the createUpdateScript function to generate a javascript function-call that will trigger an update. |
Methods inherited from class net.sf.jzeno.echo.components.CustomComponent |
---|
addValidator, fireActionEvent, fireActionEvent, fireActionEvent, getActionCommand, getBean, getBeanClass, getDecorator, getNullObject, getProperty, getValidationErrors, getValidators, getValue, isBound, isMarkedInvalid, isReadOnly, isRequired, isValid, markInvalid, markValid, preRender, rebind, removeValidator, setActionCommand, setBean, setBeanClass, setDecorator, setNullObject, setProperty, setReadOnly, setRequired, setValue, traceValue, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AsyncComponent()
public AsyncComponent(java.lang.Class beanClass, java.lang.String property, java.lang.String constructionHints)
Method Detail |
---|
protected java.lang.String createUpdateScript(java.lang.String valueScript, boolean immediate)
protected abstract void renderHtml(java.io.PrintWriter out)
Render your component into HTML here.
protected abstract void renderJavascriptLibrary(java.io.PrintWriter out)
If you whish to use some javascript functions/libraries you can return those in this method. If you return null, no javascript will be available to you rendered HTML. The implementation could take the form of returning a string constant, or it could load a .js file from disk, and return the content, or it could load a JavaScript library as a resource from you application classpath, etc...
protected abstract void update(java.lang.String input)
If you want to send information from you client back to the server to update state there, you can use the createUpdateScript function to generate a javascript function-call that will trigger an update.
input
- protected abstract void renderJavascript(java.io.PrintWriter out)
Return some javascript that you which to execute for the current rendering of your component.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |