|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.creamtec.ajaxswing.examples.CustomControlProcessor
public class CustomControlProcessor
Example of implementing a custom renderer, custom updater and action emulator See AjaxSwing documentation and javadoc for more information.
| Constructor Summary | |
|---|---|
CustomControlProcessor()
|
|
| Method Summary | |
|---|---|
boolean |
emulateAction(Document document,
ActionData actionData)
Called by AjaxSwing to emulate a standard or custom action |
void |
initializeDocument(Document document)
Called by to provide a one-time initialization of the page after the page has been created |
void |
postUpdateComponent(java.awt.Component comp,
HttpRequestData data,
ActionData actionData)
Called by AjaxSwing after the component and it's subtree of children has been updated |
void |
renderComponent(Document document,
java.lang.Object component)
The implementation must add code to the document that represents the component. |
boolean |
updateComponent(java.awt.Component comp,
HttpRequestData data,
ActionData actionData)
Called by AjaxSwing to apply the data from HTML page to the GUI component |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CustomControlProcessor()
| Method Detail |
|---|
public void renderComponent(Document document,
java.lang.Object component)
throws java.lang.Exception
ComponentRenderer
renderComponent in interface ComponentRendererdocument - such as HTML page that is being renderedcomponent - GUI component that needs to be rendered. Can be subclasses of java.awt.Component
or other components such as JMenuItem
java.lang.Exception
public boolean updateComponent(java.awt.Component comp,
HttpRequestData data,
ActionData actionData)
throws java.lang.Exception
updateComponent in interface ComponentUpdatercomp - component that should be updateddata - data submitted by the browser. The data for each component depends on how it was represeted in HTML
by ComponentRendereractionData - data structure that controls how the action will be emulated
java.lang.Exception
public boolean emulateAction(Document document,
ActionData actionData)
throws java.lang.Exception
emulateAction in interface ActionEmulatorjava.lang.Exception
public void postUpdateComponent(java.awt.Component comp,
HttpRequestData data,
ActionData actionData)
ComponentUpdater
postUpdateComponent in interface ComponentUpdaterpublic void initializeDocument(Document document)
ComponentRenderer
initializeDocument in interface ComponentRenderer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||