|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.spark.framework.SPARK
The SPARK class is an integral part of the framework and the kit. It is used to handle Widget registration, mouse focus and keyboard focus. $Source: /cvsroot/spark/spark/source/java/net/sourceforge/spark/framework/SPARK.java,v $
$Log: SPARK.java,v $ Revision 1.2 2005/07/24 04:03:28 afettes no message Revision 1.1 2005/07/24 03:55:32 afettes Initial commit to CVS.
net.sourceforge.spark.widgets.SPARKFactory
,
net.sourceforge.spark.widgets.Widget
Field Summary | |
private static SPARKFactory |
FACTORY
The factory used to create new widget instances. |
private static Widget |
KEYBOARD_FOCUS
The widget that currently has the keyboard focus. |
private static Widget |
MOUSE_FOCUS
The widget that currently has the mouse focus. |
private static java.util.Vector |
REGISTERED_TYPES
A list of all valid widget types. |
static java.util.Vector |
REGISTERED_WIDGETS
A set of widgets that have been registered globally. |
Constructor Summary | |
private |
SPARK()
This is a singleton, static only class. |
Method Summary | |
static void |
deregisterWidget(Widget in_widget)
Remove a widget from the global registration list. |
static void |
deregisterWidgetType(java.lang.String in_type)
Remove a widget type frome the allowed type list. |
static SPARKFactory |
getFactory()
Get the factory to be used to create new widget instances. |
static void |
handleKeyboardEvent(org.w3c.dom.svg.SVGEvent evt)
Pass the given Keyboard Event to the widget with keyboard focus. |
static void |
handleMouseEvent(org.w3c.dom.svg.SVGEvent evt)
Pass the given Mouse Event to the widget with mouse focus. |
static boolean |
isWidget(java.lang.String in_type)
Test to see if a given string defines a currently registered widget type. |
static void |
registerWidget(Widget in_widget)
Add a widget to the global registration list. |
static void |
registerWidgetType(java.lang.String in_type)
Add a widget type to the allowed type list. |
static void |
releaseKeyboardFocus(Widget in_widget)
Release the widget from global keyboard focus only if it has current keyboard focus. |
static boolean |
releaseMouseFocus(Widget in_widget)
Release the widget from global mouse focus. |
static void |
requestKeyboardFocus(Widget in_widget)
Let a widget request keyboard focus. |
static boolean |
requestMouseFocus(Widget in_widget)
Let a widget request mouse focus. |
static void |
setFactory(SPARKFactory in_factory)
Set the factory to be used to create new widget instances. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static Widget MOUSE_FOCUS
private static Widget KEYBOARD_FOCUS
private static java.util.Vector REGISTERED_TYPES
public static java.util.Vector REGISTERED_WIDGETS
private static SPARKFactory FACTORY
Constructor Detail |
private SPARK()
Method Detail |
public static boolean requestMouseFocus(Widget in_widget)
in_widget
- The widget requesting keyboard focus.
public static boolean releaseMouseFocus(Widget in_widget)
in_widget
- The widget to be removed from focus.
public static void handleMouseEvent(org.w3c.dom.svg.SVGEvent evt)
public static void requestKeyboardFocus(Widget in_widget)
in_widget
- The widget requesting keyboard focus.public static void releaseKeyboardFocus(Widget in_widget)
in_widget
- The widget.public static void handleKeyboardEvent(org.w3c.dom.svg.SVGEvent evt)
public static void registerWidgetType(java.lang.String in_type)
in_type
- The type to be added.public static void deregisterWidgetType(java.lang.String in_type)
in_type
- The type to be removed.public static boolean isWidget(java.lang.String in_type)
in_type
- The type to test.
public static void registerWidget(Widget in_widget)
in_widget
- The widget to be added.public static void deregisterWidget(Widget in_widget)
in_widget
- The widget to be removed.public static void setFactory(SPARKFactory in_factory)
in_factory
- The factory.public static SPARKFactory getFactory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |