public class

GlobalLookup

extends Object
java.lang.Object
   ↳ vars.shared.ui.GlobalLookup
Known Direct Subclasses

Class Overview

Central lookup for coordinating shared UI resources.

Summary

Constants
DateFormat DATE_FORMAT_LOCAL Formats the dates using whatever the local timezone is.
DateFormat DATE_FORMAT_UTC Standard format for all Dates used in SIMPA.
Object KEY_DISPATCHER_SELECTED_FRAME
Object KEY_DISPATCHER_USERACCOUNT
EventTopicSubscriber LOGGING_SUBSCRIBER
String TOPIC_EXIT
String TOPIC_FATAL_ERROR Subscribers to this topic will get and Exception as the data
String TOPIC_NONFATAL_ERROR Subscribers to this topic will get a String as the data
String TOPIC_USERACCOUNT
String TOPIC_WARNING
Public Constructors
GlobalLookup()
Public Methods
static Dispatcher getSelectedFrameDispatcher()
Reference to a Dispatcher that should be used to manage the currently selected frame
static File getSettingsDirectory()
The local directory used for storing preferences (e.g.
static Dispatcher getUserAccountDispatcher()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final DateFormat DATE_FORMAT_LOCAL

Formats the dates using whatever the local timezone is. TImezone info is displayed by this formatter

public static final DateFormat DATE_FORMAT_UTC

Standard format for all Dates used in SIMPA. No timezone is displayed. THe date will be formatted for the UTC timezone

protected static final Object KEY_DISPATCHER_SELECTED_FRAME

protected static final Object KEY_DISPATCHER_USERACCOUNT

public static final EventTopicSubscriber LOGGING_SUBSCRIBER

public static final String TOPIC_EXIT

Constant Value: "vars.shared.ui.GlobalLookup-Exit"

public static final String TOPIC_FATAL_ERROR

Subscribers to this topic will get and Exception as the data

Constant Value: "vars.shared.ui.GlobalLookup-TopicFatalError"

public static final String TOPIC_NONFATAL_ERROR

Subscribers to this topic will get a String as the data

Constant Value: "vars.shared.ui.GlobalLookup-TopicNonfatalError"

public static final String TOPIC_USERACCOUNT

Constant Value: "vars.shared.ui.GlobalLookup-UserAccount"

public static final String TOPIC_WARNING

Constant Value: "vars.shared.ui.GlobalLookup-TopicWarning"

Public Constructors

public GlobalLookup ()

Public Methods

public static Dispatcher getSelectedFrameDispatcher ()

Reference to a Dispatcher that should be used to manage the currently selected frame

Returns
  • A Dispatcher referring to a java.awt.Frame object

public static File getSettingsDirectory ()

The local directory used for storing preferences (e.g. ~/.vars)

public static Dispatcher getUserAccountDispatcher ()

Returns
  • A Dispatcher referring to a vars.UserAccount object. The intent is that this is the currently used UserAccount in a UI application