|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.creamtec.ajaxswing.gui.WindowUpdater
public abstract class WindowUpdater
Used to update GUI windows with the data, received from HTTP request. If there is an action to be emulated, WindowUpdater handles it
| Constructor Summary | |
|---|---|
WindowUpdater()
|
|
| Method Summary | |
|---|---|
boolean |
actionOverridden(AbstractDocument page,
ActionData actionData)
Returns true if this action is overidden by a configuration property |
static void |
checkActionOperation(AbstractDocument page,
java.lang.Object actionObject)
Checks if an operation is configured for this action, and if it is, calls ClientAgent.beginOperation(). |
void |
checkAndUpdateEventComponent(HttpRequestData data,
ActionData actionData)
Checks if there is a component that triggered an event. |
boolean |
emulateAction(Document document,
ActionData actionData)
Emulates an action such as a button click, menu item selection or tabbed pane selection change. |
void |
emulateRequest(AbstractDocument page,
HttpRequestData data)
Emulates HTTP request. |
ComponentUpdater |
getComponentUpdater(java.lang.Class className)
Returns the component updater for the given class If a custom component updater is not registered for the given class, a default one is returned Checks recursevly for class tree |
abstract ComponentUpdater |
getDefaultComponentUpdater()
|
static java.lang.String |
getItemString(java.lang.Object item)
Converts the item object to the proper stringified representation. |
void |
initCustomUpdatersAndEmulators(ClientAgent agent)
Loads custom updaters from the application properties file. |
void |
registerActionEmulator(ActionEmulator emulator)
Registers action emulator for all actions |
void |
registerActionEmulator(ActionEmulator emulator,
java.lang.String windowFilter)
Registers action emulator for windows whose title matches the specified filter string |
void |
resizeDesktop(ClientAgent agent,
java.lang.String resizeString)
Resize string should follow the format "resize:width,height" |
void |
unregisterActionEmulator(ActionEmulator emulator)
Removes the registration of action emulator |
void |
updateComponentTreeData(java.awt.Component comp,
HttpRequestData data,
ActionData actionData)
Updates components of the given window with the data |
void |
validateWindows(AbstractDocument page,
java.util.List windows)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WindowUpdater()
| Method Detail |
|---|
public ComponentUpdater getComponentUpdater(java.lang.Class className)
className - component class
public void initCustomUpdatersAndEmulators(ClientAgent agent)
public abstract ComponentUpdater getDefaultComponentUpdater()
public void registerActionEmulator(ActionEmulator emulator)
emulator - ActionEmulator
public void registerActionEmulator(ActionEmulator emulator,
java.lang.String windowFilter)
emulator - ActionEmulatorwindowFilter - the filter string, which can contain text and "*" to specify any text.public void unregisterActionEmulator(ActionEmulator emulator)
emulator - ActionEmulator
public void emulateRequest(AbstractDocument page,
HttpRequestData data)
throws java.lang.Exception
page - HTMLPagedata - HttpRequestData
java.lang.Exception
public void validateWindows(AbstractDocument page,
java.util.List windows)
throws java.lang.Exception
java.lang.Exception
public boolean emulateAction(Document document,
ActionData actionData)
throws java.lang.Exception
emulateAction in interface ActionEmulatorpage - HTMLPageactionData - ActionData
java.lang.Exception
public boolean actionOverridden(AbstractDocument page,
ActionData actionData)
throws java.lang.Exception
page - HTMLPageactionData - ActionData
java.lang.Exception
public static void checkActionOperation(AbstractDocument page,
java.lang.Object actionObject)
page - action keyactionObject - object that the action is being performed on
public void updateComponentTreeData(java.awt.Component comp,
HttpRequestData data,
ActionData actionData)
throws java.lang.Exception
comp - component to be updateddata - request dataactionData - action parameters
java.lang.Exception
public void checkAndUpdateEventComponent(HttpRequestData data,
ActionData actionData)
throws java.lang.Exception
data - HttpRequestDataactionData - ActionData
java.lang.Exception
public void resizeDesktop(ClientAgent agent,
java.lang.String resizeString)
throws AjaxSwingException
AjaxSwingExceptionpublic static java.lang.String getItemString(java.lang.Object item)
item - Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||