This interface was only implemented in an intermediate developer
release anyway.
Description
The XExtendedToolkit is an extension of the XToolkit interface. It basically
provides access to three event broadcasters which are used for instance
in the context of accessibility. It is, however, not restricted to
accessibility.
The first event broadcaster lets you keep track of the open top-level
windows (frames). To get the set of currently open top-level window use
the getTopWindowCount and
getTopWindow methods.
The second event broadcaster informs its listeners of key events.
Its listeners can, unlike with most other broadcasters/listeners,
consume events, so that other listeners will not be called for consumed
events.
The last event broadcaster sends events on focus changes of all
elements that can have the input focus.
Return a reference to the specified top-level window. Note that the
number of top-level windows may change between a call to
getTopWindowCount() and successive calls to this
function.
Add a new listener that is called for events that involve XTopWindows. After having
obtained the current list of exisiting top-level windows you can
keep this list up-to-date by listening to opened or closed top-level
windows. Wait for activations or deactivations of top-level windows
to keep track of the currently active frame.
Add a new listener that is called on KeyEvents. Every listener is
given the opportunity to consume the event, i.e. prevent the not yet
called listeners from being called.
Return a reference to the specified top-level window. Note that the
number of top-level windows may change between a call to
getTopWindowCount() and successive calls to this
function.
Parameter nIndex
The index should be in the intervall from 0 up to but not
including the number of top-level windows as returned by
getTopWindowCount().
Returns
The returned value is a valid reference to a top-level window.
Throws
IndexOutOfBoundsException
when the specified index is outside the valid range.
Add a new listener that is called for events that involve XTopWindows. After having
obtained the current list of exisiting top-level windows you can
keep this list up-to-date by listening to opened or closed top-level
windows. Wait for activations or deactivations of top-level windows
to keep track of the currently active frame.
Parameter xListener
If this is a valid reference it is inserted into the list of
listeners. It is the task of the caller to not register the
same listener twice (otherwise that listener will be called
twice.)
Add a new listener that is called on KeyEvents. Every listener is
given the opportunity to consume the event, i.e. prevent the not yet
called listeners from being called.
Parameter xHandler
If this is a valid reference it is inserted into the list of
handlers. It is the task of the caller to not register the
same handler twice (otherwise that listener will be called
twice.)
Add a new listener that is called on FocusEvents. Use this focus
broadcaster to keep track of the object that currently has the input
focus.
Parameter xListener
If this is a valid reference it is inserted into the list of
listeners. It is the task of the caller to not register the
same listener twice (otherwise that listener will be called
twice.)