|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sub_arctic.lib.manager
This class provides overall coordination and management functions for the toolkit as well as providing a series of utility functions, and functions that isolate the interface to AWT. This class contains only static members and methods and is never actually instantiated.
Field Summary | |
protected static java.util.Vector |
_all_applets
Set of all AWT applets that top_level interactors are hosted by. |
protected static java.util.Vector |
_all_awt_components
Set of all AWT components that top_level interactors are hosted by. |
protected static java.awt.image.ImageObserver |
_an_observer
An ImageObserver object that does nothing. |
protected static java.awt.Image |
_broken
An image that we provide when a requested image can't be loaded or otherwise has a problem. |
protected static loaded_image |
_broken_image_icon
A loaded_image that we provide when a requested image can't be loaded or otherwise has a problem. |
protected static cycle_handler |
_cycle_handle_object
The current custom constraint handling handling object (if any). |
protected static int |
_cycle_handling_mechanism
The current constraint cycle handling response. |
protected static color_pair |
_default_color_pair
This holds the system's default color pair |
protected static java.awt.Toolkit |
_default_toolkit
Reference to a toolkit object that we can use to create things. |
protected static boolean |
_enable_debug_print
Flag to enable (or disable) printing of debugging messages via debug_print() and/or debug_println(). |
protected static dispatch_handler |
_event_dispatch_handler
|
protected static int |
_event_seq_num
Counter for event sequence numbers. |
protected static java.util.Hashtable |
_extern_constraints_table
Lookup table for associating external constraints with interactors. |
protected static exception_handler |
_handle_object
The current custom exception handling object (if any). |
protected static int |
_handling_mechanism
The current exception handling response. |
protected static long |
_marked_time
Timestamp for last call to mark_time() |
protected static java.util.Hashtable |
_notify_list_table
Lookup table for storage of notify lists on behalf of interactors (this is part of the "external" or "heavyweight" constraint system). |
protected static java.util.Vector |
_policy_list
Set of all input dispatch policies. |
protected static boolean |
_something_is_damaged
Flag indicating something somewhere is damaged. |
protected static java.util.Vector |
_top_level_interactors
Set of all top level interactor objects in the system. |
protected static int[] |
_workaround_table
Table of workaround sets. |
protected static java.util.Vector |
after_dispatch
This is a list of dispatch_agents who would like to be informed whenever an event was successfully dispatched. |
static animation_agent |
animation
Animation agent. |
static click_track_agent |
click_tracker
Click tracker. |
static event_trace_agent |
event_tracer
Event trace dispatch agent. |
static int |
EXCEPTION_CUSTOM
Option flag to handle an unexpected exception by sending the "handle_exception()" message to the object previously registered via "handle_exceptions_with()". |
static int |
EXCEPTION_IGNORE
Option flag to ignore unexpected exceptions -- this is generally a very bad idea, think twice before using this. |
static int |
EXCEPTION_MESSAGE_CRASH
Option flag to handle an unexpected exception by printing the exception message to System.err and then exiting. |
static int |
EXCEPTION_PRINT_MESSAGE
Option flag to handle an unexpected exception by printing the exception message to System.err and then continuing. |
static int |
EXCEPTION_PRINT_STACK
Option flag to handle an unexpected exception by printing a stack trace on System.error and then continuing. |
static int |
EXCEPTION_STACK_CRASH
Option flag to handle an unexpected exception by printing a stack trace on System.error and then exiting. |
static focus_policy_class |
focus_policy
Focus input policy. |
static grow_drag_focus_agent |
grow_drag_focus
Grow-drag focus agent. |
static grow_press_drag_agent |
grow_press_drag
Agent that combines press and grow_drag. |
static inout_drag_focus_agent |
inout_drag_focus
Inout drag focus agent. |
static inout_press_drag_agent |
inout_press_drag
Agent for inout_press_dragging. |
static mon_focus_policy_class |
monitor_focus_policy
Monitor focus input policy. |
static move_drag_focus_agent |
move_drag_focus
Move-drag focus agent. |
static move_press_drag_agent |
move_press_drag
Agent that combines press and move_drag. |
static navigation_agent |
navigation_focus
Navigation focus agent. |
static point_agent_class |
point_agent
Agent that handles the pointable protocol for telling when objects are entered or exited. |
static positional_policy_class |
positional_policy
Positional input policy. |
static click_agent |
press_click_agent
Agent for pressable, clickable, and double_clickable. |
static raw_focus_agent |
raw_focus
Raw input event focus dispatch agent. |
static raw_focus_agent |
raw_monitor
Monitor version of raw focus dispatch agent. |
static raw_positional_agent |
raw_positional
Raw input event positional dispatch agent. |
static selection_agent_class |
selection_agent
Agent for maintaining a currently selected set with mouse presses |
static simple_drag_focus_agent |
simple_drag_focus
Simple drag focus agent. |
static simple_press_drag_agent |
simple_press_drag
Agent that combines press and simple_drag . |
static snap_drag_agent |
snap_drag_focus
Snap-drag focus agent. |
static text_focus_agent |
text_focus
Text focus agent. |
static int |
WA_DYNAMIC
Special platform id to support dynamically added workarounds. |
static int |
WA_IE3
Platform id for workarounds related to MS Internet Explorer 3.x. |
static int |
WA_JDK1_ALL
Platform id for workarounds related to JDK 1.0.x on all machines. |
static int |
WA_JDK1_MAC
Platform id for workarounds related to JDK 1.0.x on the Mac. |
static int |
WA_JDK1_PC
Platform id for workarounds related to JDK 1.0.x on Wintel machines. |
static int |
WA_JDK1_SUN
Platform id for workarounds related to JDK 1.0.x on Sun machines. |
static int |
WA_MAX_PLATFORM_ID
Largest platform id in use |
static int |
WA_NS3_ALL
Platform id for workarounds related to Netscape 3.x on all machines. |
static int |
WA_NS3_MAC
Platform id for workarounds related to Netscape 3.x on the Mac |
static int |
WA_NS3_PC
Platform id for workarounds related to Netscape 3.x on Wintel machines. |
static int |
WA_NS3_SUN
Platform id for workarounds related to Netscape 3.x on Suns |
static int |
WA_REDUNDANT_MOVES
|
static int |
WA_TRACKER_HANGS
|
static int |
WA_USER1
|
static int |
WA_USER10
|
static int |
WA_USER11
|
static int |
WA_USER12
|
static int |
WA_USER13
|
static int |
WA_USER14
|
static int |
WA_USER15
|
static int |
WA_USER16
|
static int |
WA_USER17
|
static int |
WA_USER18
|
static int |
WA_USER19
|
static int |
WA_USER2
|
static int |
WA_USER20
|
static int |
WA_USER21
|
static int |
WA_USER22
|
static int |
WA_USER23
|
static int |
WA_USER24
|
static int |
WA_USER25
|
static int |
WA_USER26
|
static int |
WA_USER27
|
static int |
WA_USER28
|
static int |
WA_USER29
|
static int |
WA_USER3
|
static int |
WA_USER30
|
static int |
WA_USER31
|
static int |
WA_USER32
|
static int |
WA_USER4
|
static int |
WA_USER5
|
static int |
WA_USER6
|
static int |
WA_USER7
|
static int |
WA_USER8
|
static int |
WA_USER9
|
static window_agent |
window_focus
This is the agent for handling the notification of window events. |
static work_agent |
work
This is the agent for handling the work procedures set up for doing multithreaded programming. |
Method Summary | |
static void |
activate_workaround(int platform_id,
int workaround_id)
Activate a specific platform specific workaround. |
static void |
add_to_after_dispatch_list(dispatch_agent agent)
Add an agent to the list of agents interested in the after dispatch hook. |
static void |
add_to_ood_notify(value_provider for_prov,
int for_part,
value_consumer notify_obj,
int notify_part)
Add an element to the notify list being maintained for the given value_provider part. |
static void |
add_top_level(top_level int_obj)
Add a top_level object to the set of active top_level objects. |
static java.applet.Applet |
an_applet()
Return some active AWT applet. |
static java.awt.Component |
an_awt_component()
Return some active AWT component. |
static java.awt.image.ImageObserver |
an_observer()
Return an ImageObserver that does nothing. |
static loaded_image |
broken_image_icon()
Provide a standard "broken image" icon that can be used to substitute for images that couldn't be loaded for some reason or another. |
protected static java.awt.Image |
build_broken_icon()
Build the "broken image" icon from static data. |
static cycle_handler |
cycle_handle_object()
The current custom exception handling object (if any). |
static int |
cycle_handling_mechanism()
The current constraint cycle handling response. |
static void |
debug_print(java.lang.String str_to_print)
Debugging print routine. |
static void |
debug_println(java.lang.String str_to_print)
Debugging print routine. |
static color_pair |
default_color_pair()
This function returns the default color pair for the system. Note: This is now obsolete -- use the style system instead. |
static java.awt.Toolkit |
default_toolkit()
Get a reference the default native toolkit object. |
static boolean |
dispatch_event(java.awt.AWTEvent evt,
top_level top_obj)
This method dispatches a single event (that occurred "inside of" the given top level object) to the appropriate interactor object(s) in the interface. |
static void |
do_redraw(top_level top_obj,
drawable surface)
This method causes a redraw of the given interactor tree (this is normally called on the basis of a redraw request from AWT). |
static void |
drop_extern_constraint(value_consumer cons_obj,
int cons_part)
Remove any association between the given part of a value_consumer and a value_producer. |
static void |
dump_platform_properties()
Helper routine to dump useful system properties to System.out. |
protected static boolean |
enable_debug_print()
Indicate if printing of debugging messages via debug_print() and/or debug_println() is enabled (printing is enabled by default). |
static void |
establish_extern_constraint(value_consumer cons_obj,
int cons_part,
value_provider prov_obj,
int prov_part)
Establish an associative link between the given part of a value_consumer (usually an interactor) and part of a value_provider (usually an external_constraint) that gives it a value. |
static dispatch_handler |
event_dispatch_handler()
Retreive the current event dispatch handler. |
static int |
event_seq_num()
Return the sequence number for the current event. |
static provider_part_ref |
find_extern_constraint(value_consumer cons_obj,
int cons_part)
Get the value_provider and part associated with the given value_consumer part. |
static java.awt.FontMetrics |
get_metrics(java.awt.Font for_font)
Get a FontMetrics object for the given font. |
static java.util.Vector |
get_ood_notify(value_provider for_prov,
int for_part)
Get the notify list being maintained for the given value_provider part. |
static boolean |
handle_cycle(interactor in_obj,
int part_code)
Handle a cycle. |
static void |
handle_cycles_with(int handling_type)
Establish how constraint cycles are handled. |
static void |
handle_cycles_with(int handling_type,
cycle_handler handler)
Establish how constraint cycles are handled. |
static void |
handle_exceptions_with(int handling_type)
Establish how unexpected exceptions are handled. |
static void |
handle_exceptions_with(int handling_type,
exception_handler handler)
Establish how unexpected exceptions are handled. |
static exception_handler |
handle_object()
The current custom exception handling object (if any). |
static void |
handle_unexpected_exception(java.lang.Exception except)
Handle an unexpected exception that arrived at some part of the toolkit. |
static int |
handling_mechanism()
The current exception handling response. |
protected static void |
identify_platform_workarounds()
Do the detective work to determine which platform we are on and hence which set of platform specific work arounds should be enabled. |
static void |
install_policy_after(input_policy add,
input_policy after)
Install a new policy after an existing one (or at the end of the policy list). |
static void |
install_policy_before(input_policy add,
input_policy before)
Install a new policy before an existing one (or at the beginning of the policy list). |
protected static void |
install_standard_policies()
|
static loaded_image |
load_code_image(java.applet.Applet host_ap,
java.lang.String image_file_name)
Load an image from a location named relative to the location of the code (the .class file) for the given applet. |
static loaded_image |
load_doc_image(java.applet.Applet host_ap,
java.lang.String image_file_name)
Load an image from a location named relative to the document that contains the given applet. |
static loaded_image |
load_image(java.net.URL from_url)
Load an image from the given URL. |
static void |
mark_time()
Mark a time for debugging or performance analysis purposes. |
static long |
marked_time()
Timestamp for last call to mark_time() |
static boolean |
need_workaround(int platform_id,
int workaround_id)
Determine if a given platform specific workaround (identified by a platform id and workaround id pair) is needed on the platform we are currently running on. |
static void |
perform_work(work_proc wp,
java.lang.Object arg)
You can call this method from another thread and it will perform the work represented by the work_proc with the system in a safe synchronization state. |
static void |
print_stack_trace()
Debugging routine to print a trace of the current call stack on on System.err, then return. |
static void |
print_stack_trace(java.io.PrintStream strm)
Debugging routine to print a trace of the current call stack on on the given PrintStream, then return. |
static void |
register_awt_component(java.awt.Component awt_comp)
Indicate that an AWT component that will be hosting a sub_arctic top_level object has been created. |
static void |
remove_from_after_dispatch_list(dispatch_agent agent)
Remove an agent from the list of dispatch_agents which are interested in the after dispatch hook. |
static boolean |
remove_ood_notify(value_provider for_prov,
int for_part,
value_consumer notify_obj,
int notify_part)
Remove an element from the notify list being maintained for the given value_provider part. |
static void |
remove_top_level(top_level int_obj)
Remove a top_level object from the set of active top_level objects. |
static void |
report_damage(top_level from_obj)
Report to the system that a top_level object has recorded some damage that requires it to be redrawn. |
static java.lang.String |
sec_str(long timestamp)
Utility routine to convert a time stamp to a string indicating seconds and milliseconds. |
static void |
send_dispatch_result_to_handler(dispatch_result dr)
Send a dispatch_result to the current dispatch handler, if one exists. |
protected static void |
set_enable_debug_print(boolean status)
Enable (or disable) debugging messages via debug_print() and/or debug_println(). |
static void |
set_event_dispatch_handler(dispatch_handler edh)
This function is used to set the dispatch result handler. |
static long |
since_marked_time()
Time since the last call to mark_time() |
static boolean |
something_is_damaged()
Indicate whether there is something in the system that is damaged and needs to be redrawn. |
static void |
timed_debug_println(java.lang.String str)
Debugging print routine to print a string (with newline) with the time corresponding to since_marked_time() appended. |
static int |
unique_int()
Return a positive integer value that is unique among results from this routine (we ignore the fact that this will eventually wrap-around, so if you need one every micro-second, do it yourself with a long). |
static void |
unregister_awt_component(java.awt.Component awt_comp)
Indicate that an AWT component that has been hosting a sub_arctic top_level object is not longer doing so. |
static boolean |
wait_for_image(java.awt.Image img)
Block until the given image is loaded (or there is an error in loading). |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected static java.util.Vector _policy_list
protected static boolean _something_is_damaged
protected static java.util.Vector _top_level_interactors
protected static java.util.Vector _all_awt_components
protected static java.util.Vector _all_applets
protected static java.awt.Toolkit _default_toolkit
protected static java.util.Hashtable _notify_list_table
protected static java.util.Hashtable _extern_constraints_table
protected static dispatch_handler _event_dispatch_handler
public static mon_focus_policy_class monitor_focus_policy
public static event_trace_agent event_tracer
public static raw_focus_agent raw_monitor
public static click_track_agent click_tracker
public static focus_policy_class focus_policy
public static raw_focus_agent raw_focus
public static simple_drag_focus_agent simple_drag_focus
public static move_drag_focus_agent move_drag_focus
public static grow_drag_focus_agent grow_drag_focus
public static snap_drag_agent snap_drag_focus
public static inout_drag_focus_agent inout_drag_focus
public static navigation_agent navigation_focus
public static text_focus_agent text_focus
public static window_agent window_focus
public static work_agent work
public static animation_agent animation
public static positional_policy_class positional_policy
public static raw_positional_agent raw_positional
public static move_press_drag_agent move_press_drag
public static grow_press_drag_agent grow_press_drag
public static inout_press_drag_agent inout_press_drag
public static simple_press_drag_agent simple_press_drag
public static click_agent press_click_agent
public static selection_agent_class selection_agent
public static point_agent_class point_agent
protected static java.util.Vector after_dispatch
protected static int _event_seq_num
protected static java.awt.image.ImageObserver _an_observer
protected static java.awt.Image _broken
protected static loaded_image _broken_image_icon
protected static boolean _enable_debug_print
protected static long _marked_time
public static final int EXCEPTION_STACK_CRASH
public static final int EXCEPTION_PRINT_STACK
public static final int EXCEPTION_MESSAGE_CRASH
public static final int EXCEPTION_PRINT_MESSAGE
public static final int EXCEPTION_CUSTOM
public static final int EXCEPTION_IGNORE
protected static int _handling_mechanism
protected static exception_handler _handle_object
protected static int _cycle_handling_mechanism
protected static cycle_handler _cycle_handle_object
protected static color_pair _default_color_pair
public static int WA_DYNAMIC
public static int WA_USER1
public static int WA_USER2
public static int WA_USER3
public static int WA_USER4
public static int WA_USER5
public static int WA_USER6
public static int WA_USER7
public static int WA_USER8
public static int WA_USER9
public static int WA_USER10
public static int WA_USER11
public static int WA_USER12
public static int WA_USER13
public static int WA_USER14
public static int WA_USER15
public static int WA_USER16
public static int WA_USER17
public static int WA_USER18
public static int WA_USER19
public static int WA_USER20
public static int WA_USER21
public static int WA_USER22
public static int WA_USER23
public static int WA_USER24
public static int WA_USER25
public static int WA_USER26
public static int WA_USER27
public static int WA_USER28
public static int WA_USER29
public static int WA_USER30
public static int WA_USER31
public static int WA_USER32
public static int WA_NS3_ALL
public static int WA_NS3_SUN
public static int WA_NS3_PC
public static int WA_NS3_MAC
public static int WA_TRACKER_HANGS
public static int WA_REDUNDANT_MOVES
public static int WA_JDK1_ALL
public static int WA_JDK1_SUN
public static int WA_JDK1_PC
public static int WA_JDK1_MAC
public static int WA_IE3
public static int WA_MAX_PLATFORM_ID
protected static int[] _workaround_table
Method Detail |
public static java.awt.Toolkit default_toolkit()
protected static void install_standard_policies()
public static void install_policy_after(input_policy add, input_policy after)
input_policy
- add the policy to add.input_policy
- after the policy to put it after. If this is null, we
install at the end of the list.public static void install_policy_before(input_policy add, input_policy before)
input_policy
- add the policy to add.input_policy
- after the policy to put it before. If this is null, we
install at the beginning of the list.public static void add_top_level(top_level int_obj)
top_level
- int_obj the top_level interactor to add.public static void remove_top_level(top_level int_obj)
top_level
- int_obj the top_level interactor to remove.public static void register_awt_component(java.awt.Component awt_comp)
Component
- awt_comp the host component.public static void unregister_awt_component(java.awt.Component awt_comp)
Component
- awt_comp the component that is no longer a host.public static boolean something_is_damaged()
public static void report_damage(top_level from_obj)
top_level
- from_obj the object reporting the damage.public static void add_to_after_dispatch_list(dispatch_agent agent)
dispatch_agent
- agent the agent to add to the list of interested
agents.public static void remove_from_after_dispatch_list(dispatch_agent agent)
dispatch_agent
- agent the agent to remove.public static int event_seq_num()
public static boolean dispatch_event(java.awt.AWTEvent evt, top_level top_obj)
Note: this method is synchronized so that only one event dispatch or redraw can be going on at a time. This is necessary for maintaining the integrity of the overall system dispatch-redraw "loop". However, this is not sufficient to make the whole system thread-safe. Access to various interactor trees should always be done through the work_proc interface.
Event
- evt the event to dispatch.top_level
- the top_level object it occured within.public static void do_redraw(top_level top_obj, drawable surface)
Note: this method is synchronized so that only one event dispatch or redraw can be going on at a time. This is necessary for maintaining the integrity of the overall system dispatch-redraw "loop". However, this is not sufficient to make the whole system thread-safe. Access to various interactor trees should always be done through the work_proc interface.
top_level
- top_obj the top_level object to redraw.drawable
- surface the drawing surface to redraw it on (this
normally refers directly to the screen).public static java.awt.image.ImageObserver an_observer()
public static java.awt.Component an_awt_component()
public static java.applet.Applet an_applet()
public static java.awt.FontMetrics get_metrics(java.awt.Font for_font)
Font
- for_font the font we want the metrics object for.public static loaded_image broken_image_icon()
public static boolean wait_for_image(java.awt.Image img)
Image
- img the image to wait forpublic static loaded_image load_image(java.net.URL from_url)
URL
- from_url the location to load the image from.public static loaded_image load_doc_image(java.applet.Applet host_ap, java.lang.String image_file_name) throws java.net.MalformedURLException
Applet
- host_ap the applet that is within the page we are
fetching relative to.String
- image_file_name the name of the image file.loaded_image
- the resulting image (or the broken image if there was
a problem).public static loaded_image load_code_image(java.applet.Applet host_ap, java.lang.String image_file_name) throws java.net.MalformedURLException
Applet
- host_ap the applet whose code we are fetching
relative to.String
- image_file_name the name of the image file.loaded_image
- the resulting image (or the broken image if there was
a problem).protected static boolean enable_debug_print()
protected static void set_enable_debug_print(boolean status)
boolean
- status flag indicating new enable statuspublic static void debug_print(java.lang.String str_to_print)
String
- str_to_print the string to be printedpublic static void debug_println(java.lang.String str_to_print)
String
- str_to_print the string to be printedpublic static void mark_time()
public static long marked_time()
public static long since_marked_time()
public static java.lang.String sec_str(long timestamp)
long
- timestamp time (as returned by System.currentTimeMillis() to
be formatted.public static void timed_debug_println(java.lang.String str)
String
- str the string to be printedpublic static void print_stack_trace(java.io.PrintStream strm)
PrintStream
- strm where we print the call stack trace.public static void print_stack_trace()
public static int handling_mechanism()
public static exception_handler handle_object()
public static void handle_exceptions_with(int handling_type, exception_handler handler)
int
- handling_type code indicating how to handle an
unexpected exception.exception_handler
- handler the handler object that gets the
exception if handling_type is
EXCEPTION_CUSTOM.public static void handle_exceptions_with(int handling_type)
int
- handling_type code indicating how to handle an
unexpected exception.public static void handle_unexpected_exception(java.lang.Exception except)
Exception
- except the unexpected exception.#handle_exceptions_with()
public static int cycle_handling_mechanism()
public static cycle_handler cycle_handle_object()
public static void handle_cycles_with(int handling_type, cycle_handler handler)
int
- handling_type the code indicating how to handle the
cycle.cycle_handler
- handler the optional handler object used when
handling_type is EXCEPTION_CUSTOM.public static void handle_cycles_with(int handling_type)
int
- handling_type the code indicating how to handle the
cycle.public static boolean handle_cycle(interactor in_obj, int part_code)
interactor
- in_obj the interactor in which the cycle was first
detected.int
- part_code the part within that object where the cycle was
first detected.public static void establish_extern_constraint(value_consumer cons_obj, int cons_part, value_provider prov_obj, int prov_part)
value_consumer
- cons_obj the object being constrained.int
- cons_part the part within that object being
constrained.value_provider
- prov_obj the object (often a constraint) providing
the value.int
- prov_part the part of that object that provides the
value.public static void drop_extern_constraint(value_consumer cons_obj, int cons_part)
value_consumer
- cons_obj the object that was being constrained.int
- cons_part the part within that object that was being
constrained.value_provider
- prov_obj the object (often a constraint) that was
providing the value.int
- prov_part the part of that object that was providing
the value.public static provider_part_ref find_extern_constraint(value_consumer cons_obj, int cons_part)
value_consumer
- cons_obj the consumer object we determining the
provider (typically constraint) for.int
- cons_part the part of that object we are asking
about.public static void add_to_ood_notify(value_provider for_prov, int for_part, value_consumer notify_obj, int notify_part)
value_provider
- for_prov the object (providing a value) which
needs to inform others of changes.int
- for_part the part of that object we are concerned
with.value_consumer
- notify_obj the object we are to notify.int
- notify_part the part of that object we are to notify.public static boolean remove_ood_notify(value_provider for_prov, int for_part, value_consumer notify_obj, int notify_part)
value_provider
- for_prov the object (providing a value) which
had been notifying.int
- for_part the part of that object we are concerned
with.value_consumer
- notify_obj the object we were to notify.int
- notify_part the part of that object we were to
notify.public static java.util.Vector get_ood_notify(value_provider for_prov, int for_part)
value_provider
- for_prov the object we are asking about.int
- for_part the part of that object whose notify list
we want.protected static java.awt.Image build_broken_icon()
public static color_pair default_color_pair()
Note: This is now obsolete -- use the style system instead.
public static int unique_int()
public static void perform_work(work_proc wp, java.lang.Object arg)
work_proc
- wp an object representing what code to run with the
system in a safe state (its really a closure, in
some sense).Object
- arg the argument to pass to the work_proc when the
system reaches a safe state.public static void dump_platform_properties()
protected static void identify_platform_workarounds()
Editorial Comment: The need for this routine is a very clear indication that Java, and in particular AWT, has as of yet utterly and completely failed to deliver on the promise of "write once run everywhere".
public static boolean need_workaround(int platform_id, int workaround_id)
Editorial Comment: The need for this routine is a very clear indication that Java, and in particular AWT, has as of yet utterly and completely failed to deliver on the promise of "write once run everywhere".
int
- platform_id First part of identification of a particular
workaround (this identifies the platform that the
workaround was first associated with).int
- workaround_id Second part of identification of a particular
workaround (this uniquely identifies it within
the group associated with a platform).public static void activate_workaround(int platform_id, int workaround_id)
int
- platform_id First part of identification of the particular
workaround to the activated (this identifies the
platform that the workaround was first associated
with).int
- workaround_id Second part of identification of the particular
workaround to be activated (this uniquely
identifies it within the group associated with a
platform).public static void set_event_dispatch_handler(dispatch_handler edh)
Before using this hook, be sure you understand how the dispatch_handler interface is intended to be used. It is not intended to be used to filter or control the routing of events; if you want this type of behavior, put an agent in the monitor_focus_policy instead.
dispatch_handler
- edh the handler to route dispatches topublic static dispatch_handler event_dispatch_handler()
public static void send_dispatch_result_to_handler(dispatch_result dr)
dispatch_result
- the result of a successful dispatch
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |