public class

Lookup

extends GlobalLookup
java.lang.Object
   ↳ vars.shared.ui.GlobalLookup
     ↳ vars.knowledgebase.ui.Lookup

Class Overview

Lookup contains globally available resources for the Knowledgbebase application. These include:

  • TOPIC - Topic objects used to publish or subscribe to eventbus messages
  • KEY - Keys used to lookup a Dispatcher object
  • static 'get' methods - Used for retrieving shared ui resources such as Dispatcher objects
No buisness logic exists in the lookup other than enforcement of object types that can be stored in a dispatcher. The usage pattern between EventBus messages (used for notification) and Dispatcher objects (which can store values as well as register PropertyChangeListeners is: Objects published to EventBus will be set in the appropriate Dispatcher. However, objects set in a Dispatcher will not send a message via EventBus.

Summary

Constants
Object KEY_DISPATCHER_APPLICATION
Object KEY_DISPATCHER_APPLICATION_FRAME
Object KEY_DISPATCHER_CONCEPT_TREE
Object KEY_DISPATCHER_GUICE_INJECTOR
Object KEY_DISPATCHER_SELECTED_CONCEPT
String RESOURCE_BUNDLE
String TOPIC_APPROVE_HISTORIES The data object should be a Collection
String TOPIC_APPROVE_HISTORY The data object should be a History
String TOPIC_REFRESH_KNOWLEGEBASE Refresh the knowledgebase (purge caceh) and open node to the conceptname provided.
String TOPIC_SELECTED_CONCEPT The data object should be a Concept
String TOPIC_UPDATE_OBSERVATIONS The data object should be a Concept
[Expand]
Inherited Constants
From class vars.shared.ui.GlobalLookup
Public Constructors
Lookup()
Public Methods
static Dispatcher getApplicationDispatcher()
static Dispatcher getApplicationFrameDispatcher()
static Dispatcher getConceptTreeDispatcher()
Stores a reference to the ConceptTree so that other componenets can reference it as needed.
static Dispatcher getGuiceInjectorDispatcher()
static ProgressDialog getProgressDialog()
static Dispatcher getSelectedConceptDispatcher()
You can set this directly but the recommended method for watching for changes to the selected concept is to register an EventTopicSubscriber to the TOPIC_SELECTED_CONCEPT topic.
[Expand]
Inherited Methods
From class vars.shared.ui.GlobalLookup
From class java.lang.Object

Constants

protected static final Object KEY_DISPATCHER_APPLICATION

protected static final Object KEY_DISPATCHER_APPLICATION_FRAME

protected static final Object KEY_DISPATCHER_CONCEPT_TREE

public static final Object KEY_DISPATCHER_GUICE_INJECTOR

protected static final Object KEY_DISPATCHER_SELECTED_CONCEPT

public static final String RESOURCE_BUNDLE

Constant Value: "knowledgebase-app"

public static final String TOPIC_APPROVE_HISTORIES

The data object should be a Collection

Constant Value: "vars.knowledgebase.ui.Lookup-ApproveHistories"

public static final String TOPIC_APPROVE_HISTORY

The data object should be a History

Constant Value: "vars.knowledgebase.ui.Lookup-ApproveHistory"

public static final String TOPIC_REFRESH_KNOWLEGEBASE

Refresh the knowledgebase (purge caceh) and open node to the conceptname provided. Calls this as EventBus.publish(TOPIC_REFRESH_KNOWLEGEBASE, String conceptName)

Constant Value: "vars.knowledgebase.ui.Lookup-RefreshKnowledgebase"

public static final String TOPIC_SELECTED_CONCEPT

The data object should be a Concept

Constant Value: "vars.knowledgebase.ui.Lookup-SelectedConcept"

public static final String TOPIC_UPDATE_OBSERVATIONS

The data object should be a Concept

Constant Value: "vars.knowledgebase.ui.Lookup-UpateObservations"

Public Constructors

public Lookup ()

Public Methods

public static Dispatcher getApplicationDispatcher ()

public static Dispatcher getApplicationFrameDispatcher ()

public static Dispatcher getConceptTreeDispatcher ()

Stores a reference to the ConceptTree so that other componenets can reference it as needed.

public static Dispatcher getGuiceInjectorDispatcher ()

public static ProgressDialog getProgressDialog ()

public static Dispatcher getSelectedConceptDispatcher ()

You can set this directly but the recommended method for watching for changes to the selected concept is to register an EventTopicSubscriber to the TOPIC_SELECTED_CONCEPT topic. THe same for setting the selected concept, publish to the EventBus

Returns
  • A Dispatcher that contains a reference to the currently selected concept.