org.kabeja.ui.impl
Class ProcessingUI

java.lang.Object
  extended by org.kabeja.ui.impl.ProcessingUI
All Implemented Interfaces:
ApplicationMenuBar, ApplicationToolBar, Component, ProcessingUIComponent, Serviceable, Startable

public class ProcessingUI
extends java.lang.Object
implements Serviceable, Startable, ProcessingUIComponent, ApplicationToolBar, ApplicationMenuBar


Nested Class Summary
 class ProcessingUI.SwitchAction
           
 
Field Summary
protected  java.util.List components
           
protected  javax.swing.JFrame frame
           
protected  ProcessingManager manager
           
protected  ServiceManager serviceManager
           
 
Fields inherited from interface org.kabeja.ui.ApplicationToolBar
SERVICE
 
Fields inherited from interface org.kabeja.ui.ApplicationMenuBar
MENU_ID_EDIT, MENU_ID_FILE, MENU_ID_HELP, MENU_ID_VIEW, SERVICE
 
Constructor Summary
ProcessingUI()
           
 
Method Summary
 void addAction(javax.swing.Action action)
           
 void addAction(java.awt.Component component)
           
 void addViewComponent(ViewComponent component)
           
 boolean hasMenu(java.lang.String id)
           
protected  void initialize()
           
 void setAction(java.lang.String menuID, javax.swing.Action action)
           
 void setJMenuItem(java.lang.String menuID, javax.swing.JMenuItem item)
           
 void setMenu(java.lang.String menuID, javax.swing.JMenu menu)
           
 void setProcessingManager(ProcessingManager manager)
          Set the current @see ProcessingManager of the application.
 void setServiceManager(ServiceManager manager)
          Set the @see ServiceManager of the application.
 void setVisible(boolean b)
           
protected  void shutdown()
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serviceManager

protected ServiceManager serviceManager

manager

protected ProcessingManager manager

frame

protected javax.swing.JFrame frame

components

protected java.util.List components
Constructor Detail

ProcessingUI

public ProcessingUI()
Method Detail

initialize

protected void initialize()

setVisible

public void setVisible(boolean b)

addViewComponent

public void addViewComponent(ViewComponent component)

setServiceManager

public void setServiceManager(ServiceManager manager)
Description copied from interface: Serviceable
Set the @see ServiceManager of the application.

Specified by:
setServiceManager in interface Serviceable

setProcessingManager

public void setProcessingManager(ProcessingManager manager)
Description copied from interface: ProcessingUIComponent
Set the current @see ProcessingManager of the application. Could be called multiple times.

Specified by:
setProcessingManager in interface ProcessingUIComponent

start

public void start()
Specified by:
start in interface Startable

stop

public void stop()
Specified by:
stop in interface Startable

addAction

public void addAction(javax.swing.Action action)
Specified by:
addAction in interface ApplicationToolBar

addAction

public void addAction(java.awt.Component component)
Specified by:
addAction in interface ApplicationToolBar

hasMenu

public boolean hasMenu(java.lang.String id)
Specified by:
hasMenu in interface ApplicationMenuBar

setAction

public void setAction(java.lang.String menuID,
                      javax.swing.Action action)
Specified by:
setAction in interface ApplicationMenuBar

setJMenuItem

public void setJMenuItem(java.lang.String menuID,
                         javax.swing.JMenuItem item)
Specified by:
setJMenuItem in interface ApplicationMenuBar

setMenu

public void setMenu(java.lang.String menuID,
                    javax.swing.JMenu menu)
Specified by:
setMenu in interface ApplicationMenuBar

shutdown

protected void shutdown()