Method Summary |
|
public void | addPropertyChangeListener(PropertyChangeListener l) Adds a PropertyChangeListener to receive notification of
application-level property changes. |
public TaskQueueHandle | createTaskQueue() Creates a new task queue. |
final public Window | doInit() Initializes the ApplicationInstance . |
final public void | doValidation() Validates all components registered with the application. |
public void | enqueueCommand(Command command) Queues the given stateless Command for execution on the
current client/server synchronization. |
public void | enqueueTask(TaskQueueHandle taskQueue, Runnable task) Enqueues a task to be run during the next client/server
synchronization. |
protected void | firePropertyChange(String propertyName, Object oldValue, Object newValue) Reports a bound property change. |
public String | generateId() Generates an identifier which is unique within this
ApplicationInstance . |
final public static String | generateSystemId() Generates a system-level identifier (an identifier which is unique to all
ApplicationInstance s). |
final public static ApplicationInstance | getActive() Returns a reference to the ApplicationInstance that is
relevant to the current thread, or null if no instance is relevant. |
public Component | getComponentByRenderId(String renderId) Retrieves the component currently registered with the application
with the specified render id. |
public Object | getContextProperty(String propertyName) Returns the value of a contextual property.
Contextual properties are typically set by an application
container, e.g., the Web Container, in order to provide
container-specific information. |
public Window | getDefaultWindow() Returns the default window of the application. |
public Component | getFocusedComponent() Returns the presently focused component, if known. |
public LayoutDirection | getLayoutDirection() Returns the application instance's default
LayoutDirection . |
public Locale | getLocale() Returns the application instance's default Locale . |
public Component | getModalContextRoot() Retrieves the root component of the current modal context, or null
if no modal context exists. |
public Style | getStyle(Class componentClass, String styleName) Retrieves the style for the specified specified class of
component / style name. |
public UpdateManager | getUpdateManager() |
public boolean | hasQueuedTasks() Determines if there are any queued tasks in any of the task
queues associated with this ApplicationInstance .
This method may be overridden by an application in order to check
on the status of long-running operations and enqueue tasks
just-in-time. |
final public boolean | hasTaskQueues() Determines if this ApplicationInstance currently has any
active tasks queues, which might be monitoring external events. |
abstract public Window | init() Invoked to initialize the application, returning the default window. |
void | notifyComponentPropertyChange(Component parent, String propertyName, Object oldValue, Object newValue) Notifies the UpdateManager in response to a component
property change or child addition/removal.
This method is invoked directly from Component s
(rather than using a PropertyChangeListener ) in the interest
of memory efficiency. |
public void | processInput(String propertyName, Object propertyValue) Processes client input specific to the ApplicationInstance
received from the UpdateManager . |
public void | processQueuedTasks() Processes all queued tasks. |
void | registerComponent(Component component) Registers a component with the ApplicationInstance . |
public void | removePropertyChangeListener(PropertyChangeListener l) Removes a PropertyChangeListener from receiving
notification of application-level property changes. |
public void | removeTaskQueue(TaskQueueHandle taskQueueHandle) Removes the task queue described the specified
TaskQueueHandle . |
final public static void | setActive(ApplicationInstance applicationInstance) Sets the ApplicationInstance that is relevant to the
current thread. |
public void | setContextProperty(String propertyName, Object propertyValue) Sets a contextual property. |
public void | setFocusedComponent(Component newValue) Sets the presently focused component. |
public void | setLocale(Locale newValue) Sets the default locale of the application. |
public void | setStyleSheet(StyleSheet styleSheet) Sets the StyleSheet of this
ApplicationInstance . |
void | unregisterComponent(Component component) Unregisters a component from the ApplicationInstance . |
boolean | verifyModalContext(Component component) Verifies that a Component is within the modal context,
i.e., that if a modal Component is present, that it either
is or is a child of that Component . |