com.metamatrix.console.ui
Class ViewManager

java.lang.Object
  extended by com.metamatrix.console.ui.ViewManager

public class ViewManager
extends java.lang.Object

ViewManager is a developer's API to the metaMatrix console's framework. It is a central point of controlling such things as initializing the GUI, refreshing, and retrieving the currently active panel. (Note that this class consists mostly of static helper methods.)

Author:
Steve Jacobs

Field Summary
static javax.swing.ImageIcon CONSOLE_ICON
           
static java.awt.Image CONSOLE_ICON_IMAGE
           
 
Constructor Summary
ViewManager()
           
 
Method Summary
static void clearStatus()
           
static void endBusy()
          Should be called after the operation that startBusy was called for.
static void endBusySyncronize()
           
static void fireApplicationEvent(java.util.EventObject event)
           
static javax.swing.JFrame getMainFrame()
           
static void init(ConnectionInfo connection)
           
static void setLoggingPreferences()
           
static void setStatus(java.lang.String statusMessage)
           
static void startBusy()
          Should be called before any operation that will take a long time.
static void startBusySyncronize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONSOLE_ICON

public static final javax.swing.ImageIcon CONSOLE_ICON

CONSOLE_ICON_IMAGE

public static java.awt.Image CONSOLE_ICON_IMAGE
Constructor Detail

ViewManager

public ViewManager()
Method Detail

init

public static void init(ConnectionInfo connection)

getMainFrame

public static javax.swing.JFrame getMainFrame()

setStatus

public static void setStatus(java.lang.String statusMessage)

clearStatus

public static void clearStatus()

fireApplicationEvent

public static void fireApplicationEvent(java.util.EventObject event)

setLoggingPreferences

public static void setLoggingPreferences()

startBusy

public static void startBusy()
Should be called before any operation that will take a long time. This will make the GUI indicate business.


startBusySyncronize

public static void startBusySyncronize()

endBusy

public static void endBusy()
Should be called after the operation that startBusy was called for. It may be wise to put this method invocation in a finally{} block in case, for example, a remote method invocation fails.


endBusySyncronize

public static void endBusySyncronize()


Copyright © 2009. All Rights Reserved.