|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object creamtec.webcream.examples.CustomControlProcessor
public class CustomControlProcessor
Example of implementing a custom renderer, custom updater and action emulator See WebCream documentation and javadoc for more information.
Constructor Summary | |
---|---|
CustomControlProcessor()
|
Method Summary | |
---|---|
boolean |
emulateAction(HTMLPage page,
ActionData actionData)
Called by WebCream to emulate a standard or custom action |
void |
postUpdateComponent(java.awt.Component comp,
HttpRequestData data,
ActionData actionData)
Called by WebCream 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 WebCream 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 ComponentRenderer
document
- 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 ComponentUpdater
comp
- 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(HTMLPage page, ActionData actionData) throws java.lang.Exception
emulateAction
in interface ActionEmulator
java.lang.Exception
public void postUpdateComponent(java.awt.Component comp, HttpRequestData data, ActionData actionData)
ComponentUpdater
postUpdateComponent
in interface ComponentUpdater
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |