com.irisel.oms.guiom
Class CLGuiomBase

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Frame
                  extended by javax.swing.JFrame
                      extended by com.irisel.oms.guiom.CLGuiomBase
All Implemented Interfaces:
OMSEventListener, CLDesktop, java.awt.event.ActionListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants
Direct Known Subclasses:
CLGuiom, CLWSGuiom

public abstract class CLGuiomBase
extends javax.swing.JFrame
implements CLDesktop, java.awt.event.ActionListener, OMSEventListener

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.BaselineResizeBehavior
 
Field Summary
static java.lang.String DATABASE_CLIENT_MODE
           
static java.lang.String ENTERPRISE_CLIENT_MODE
           
static java.lang.String KEY_APP_PASS
           
static java.lang.String KEY_APP_USER
           
static java.lang.String KEY_COUNTRY
           
static java.lang.String KEY_DB_DATABASE
           
static java.lang.String KEY_DB_PASS
           
static java.lang.String KEY_DB_PORT
           
static java.lang.String KEY_DB_SCHEMA
           
static java.lang.String KEY_DB_SERV
           
static java.lang.String KEY_DB_TYPE
           
static java.lang.String KEY_DB_USER
           
static java.lang.String KEY_LANG
           
static java.lang.String KEY_LOCALES
           
static java.lang.String KEY_LOGIN_FORM
           
static java.lang.String KEY_WS_PASSWORD
           
static java.lang.String KEY_WS_PATH
           
static java.lang.String KEY_WS_PORT
           
static java.lang.String KEY_WS_PROTOCOLS
           
static java.lang.String KEY_WS_PROXY_AUTH_TYPE
           
static java.lang.String KEY_WS_PROXY_HOST
           
static java.lang.String KEY_WS_PROXY_PASSWORD
           
static java.lang.String KEY_WS_PROXY_PORT
           
static java.lang.String KEY_WS_PROXY_USERNAME
           
static java.lang.String KEY_WS_SYSTEMS
           
static java.lang.String KEY_WS_USERNAME
           
static java.lang.String OMS_MENU_NEW_TITLE
           
static java.lang.String OMS_MENU_SELECT_TITLE
           
static java.lang.String OMS_MENU_WINDOW_KEY_PREFIX
           
static java.lang.String OMS_MENU_WINDOW_TITLE
           
 
Fields inherited from class javax.swing.JFrame
EXIT_ON_CLOSE
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
CLGuiomBase()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void addFrame(CLInternalFrame cli)
           
 void addMenuWindowItem(CLInternalFrame cli)
           
 void addToolbar(Instance menuitem)
          Creates a toolbar button, based on a menu item definition, and places it in a toolbar.
 void addToolbar(javax.swing.JToolBar tb)
           
 CLBrowser.AuthState authenticate(Credentials creds)
           
 void clearStatusMsg()
           
 void enableOSXFullscreen(java.awt.Window window)
           
 void exit()
          Override to implement custom behavior on exit
 void exitFullScreen()
           
static java.lang.Class findClass(java.lang.String classname)
           
 void frontIfUp(int frameId)
           
 CLBrowser getBrowser()
          Getter for property browser.
abstract  java.lang.String getClientMode()
           
 ComponentMapper getComponentMapper()
           
 PackageConfiguration getConfig()
           
 Console getConsole()
           
 UIController getController()
          Returns the UI central controller
 java.lang.String[] getDBTypes()
           
static CLDesktop getDesk()
           
 Instance getEmployee()
           
 Instance getEmployeeGroup()
           
 CLInternalFrame getFrame(int id)
          Returns a frame given its key.
 java.util.Set<java.lang.Integer> getFrameKeySet()
          Returns the set of keys for existing frames.
 java.lang.String getLang()
           
 java.awt.Frame getMainFrame()
           
 int getMode()
           
static SecurityManager getSecmanager()
           
 SecurityManager getSecMgr()
           
 Session getSession()
           
static CLBrowser getStaticBrowser()
           
 javax.swing.JToolBar getToolbar(java.lang.String tbname)
           
 java.lang.String getUser()
           
 Instance getUserInstance()
           
 void goFullScreen(boolean b)
           
 void initializeDynMenus()
          Initializes menus that depend on db connection
 boolean initSession()
           
 void notifyUser(java.lang.String msg)
           
 java.lang.String onEvent(OMSEvent e)
           
 void refresh()
           
 void removeAllFrames()
           
 void removeAllToolbars()
           
 void removeFrame(CLInternalFrame cli)
           
 void removeMenuWindowItem(int frameId)
           
 void removeToolbar(javax.swing.JToolBar tb)
           
 void reset()
           
 void saveConfig()
           
 void send(int type, java.lang.String name, java.lang.Object value)
          Deprecated. in favor of send(OMSAction)
 void send(int type, java.lang.String name, java.lang.Object[] value)
          Deprecated. in favor of send(OMSAction)
 void send(OMSAction action)
          Sends the action received as arguments to the central UI controller (OMSEventListener) encapsulated in an OMSEvent.
 void send(OMSEvent evt)
          Sends the event received as arguments to the central UI controller (OMSEventListener).
 void sendAllFrames(OMSAction action)
          Sends an event containing the action to all frames.
 void sendAllFrames(OMSEvent evt)
          Sends the event evt to all frames.
 void sendAllFrames(java.lang.String actioncmd)
          Equivalent to sendAllFrames( actioncmd, null);
 void sendAllFrames(java.lang.String actioncmd, java.lang.Object value)
          Equivalent to sendAllFrames( frameid, panelid, actioncmd, new Object[] {value});
 void sendAllFrames(java.lang.String actioncmd, java.lang.Object[] value)
          For every frame, call sendFrame sending arguments (actioncmd and value).
 void sendFrame(int frameid, int panelid, OMSAction action)
          This method is equivalent to: this.getFrame(frameid).onEvent(new OMSEvent(evtsrc,action));
 void sendFrame(int frameid, int panelid, OMSEvent evt)
          This method is equivalent to: this.getFrame(frameid).onEvent(evt);
 void sendFrame(int frameid, int panelid, java.lang.String actioncmd)
          This method is equivalent to: sendFrame(frameid,panelid,actioncmd,(Object[])new Object[] {value})
 void sendFrame(int frameid, int panelid, java.lang.String actioncmd, java.lang.Object value)
          This method is equivalent to: sendFrame(frameid,panelid,actioncmd,(Object[])new Object[] {value})
 void sendFrame(int frameid, int panelid, java.lang.String actioncmd, java.lang.Object[] value)
          This method sends a OMSEvent to the form specified by id.
 void setComponentMapper(ComponentMapper compMapper)
           
 void setConsole(Console console)
           
 void setController(UIController controller)
           
 void setLang(java.lang.String langcode)
           
 void setMode(int mode)
           
 void setModule(java.lang.String actionCommand)
           
static void setSecmanager(SecurityManager secmanager)
           
 void setStatusMsg(java.lang.String s)
           
 void toggleFullScreen()
           
 
Methods inherited from class javax.swing.JFrame
getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setTransferHandler, update
 
Methods inherited from class java.awt.Frame
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOwnedWindows, getOwner, getOwnerlessWindows, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, paint, postEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setVisible, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusBackward, transferFocusDownCycle, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocusInWindow, resize, resize, setBackground, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.irisel.oms.guiom.interfaces.CLDesktop
exec
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

KEY_DB_TYPE

public static final java.lang.String KEY_DB_TYPE
See Also:
Constant Field Values

KEY_DB_SERV

public static final java.lang.String KEY_DB_SERV
See Also:
Constant Field Values

KEY_DB_PORT

public static final java.lang.String KEY_DB_PORT
See Also:
Constant Field Values

KEY_DB_DATABASE

public static final java.lang.String KEY_DB_DATABASE
See Also:
Constant Field Values

KEY_DB_SCHEMA

public static final java.lang.String KEY_DB_SCHEMA
See Also:
Constant Field Values

KEY_DB_USER

public static final java.lang.String KEY_DB_USER
See Also:
Constant Field Values

KEY_DB_PASS

public static final java.lang.String KEY_DB_PASS
See Also:
Constant Field Values

KEY_APP_USER

public static final java.lang.String KEY_APP_USER
See Also:
Constant Field Values

KEY_APP_PASS

public static final java.lang.String KEY_APP_PASS
See Also:
Constant Field Values

KEY_LOCALES

public static final java.lang.String KEY_LOCALES
See Also:
Constant Field Values

KEY_LOGIN_FORM

public static final java.lang.String KEY_LOGIN_FORM
See Also:
Constant Field Values

KEY_WS_PATH

public static final java.lang.String KEY_WS_PATH
See Also:
Constant Field Values

KEY_WS_PORT

public static final java.lang.String KEY_WS_PORT
See Also:
Constant Field Values

KEY_WS_USERNAME

public static final java.lang.String KEY_WS_USERNAME
See Also:
Constant Field Values

KEY_WS_PASSWORD

public static final java.lang.String KEY_WS_PASSWORD
See Also:
Constant Field Values

KEY_WS_PROXY_HOST

public static final java.lang.String KEY_WS_PROXY_HOST
See Also:
Constant Field Values

KEY_WS_PROXY_PORT

public static final java.lang.String KEY_WS_PROXY_PORT
See Also:
Constant Field Values

KEY_WS_PROXY_AUTH_TYPE

public static final java.lang.String KEY_WS_PROXY_AUTH_TYPE
See Also:
Constant Field Values

KEY_WS_PROXY_USERNAME

public static final java.lang.String KEY_WS_PROXY_USERNAME
See Also:
Constant Field Values

KEY_WS_PROXY_PASSWORD

public static final java.lang.String KEY_WS_PROXY_PASSWORD
See Also:
Constant Field Values

KEY_WS_PROTOCOLS

public static final java.lang.String KEY_WS_PROTOCOLS
See Also:
Constant Field Values

KEY_WS_SYSTEMS

public static final java.lang.String KEY_WS_SYSTEMS
See Also:
Constant Field Values

KEY_LANG

public static final java.lang.String KEY_LANG
See Also:
Constant Field Values

KEY_COUNTRY

public static final java.lang.String KEY_COUNTRY
See Also:
Constant Field Values

OMS_MENU_NEW_TITLE

public static final java.lang.String OMS_MENU_NEW_TITLE
See Also:
Constant Field Values

OMS_MENU_SELECT_TITLE

public static final java.lang.String OMS_MENU_SELECT_TITLE
See Also:
Constant Field Values

OMS_MENU_WINDOW_TITLE

public static final java.lang.String OMS_MENU_WINDOW_TITLE
See Also:
Constant Field Values

OMS_MENU_WINDOW_KEY_PREFIX

public static final java.lang.String OMS_MENU_WINDOW_KEY_PREFIX
See Also:
Constant Field Values

ENTERPRISE_CLIENT_MODE

public static final java.lang.String ENTERPRISE_CLIENT_MODE
See Also:
Constant Field Values

DATABASE_CLIENT_MODE

public static final java.lang.String DATABASE_CLIENT_MODE
See Also:
Constant Field Values
Constructor Detail

CLGuiomBase

public CLGuiomBase()
            throws GuiException
Throws:
GuiException
Method Detail

findClass

public static java.lang.Class findClass(java.lang.String classname)

getDesk

public static CLDesktop getDesk()

getStaticBrowser

public static CLBrowser getStaticBrowser()

authenticate

public CLBrowser.AuthState authenticate(Credentials creds)

initSession

public boolean initSession()
                    throws SessionException
Throws:
SessionException

getUser

public java.lang.String getUser()
Specified by:
getUser in interface CLDesktop

send

public void send(int type,
                 java.lang.String name,
                 java.lang.Object value)
          throws java.lang.Exception
Deprecated. in favor of send(OMSAction)

Description copied from interface: CLDesktop
Creates an OMSEvent using type, name & values and notifies the central UI controller (OMSEventListener). The type and name of the actions are used by the controller to manage / dispatch the event.

Specified by:
send in interface CLDesktop
Parameters:
type - of the event
name - of the action of the event
value - array of values
Throws:
java.lang.Exception

send

public void send(int type,
                 java.lang.String name,
                 java.lang.Object[] value)
          throws java.lang.Exception
Deprecated. in favor of send(OMSAction)

Description copied from interface: CLDesktop
Creates an OMSEvent using type, name & values and notifies the central UI controller (OMSEventListener). The type and name of the actions are used by the controller to manage / dispatch the event.

Specified by:
send in interface CLDesktop
Throws:
java.lang.Exception

send

public void send(OMSAction action)
          throws java.lang.Exception
Description copied from interface: CLDesktop
Sends the action received as arguments to the central UI controller (OMSEventListener) encapsulated in an OMSEvent.

Specified by:
send in interface CLDesktop
Throws:
java.lang.Exception

send

public void send(OMSEvent evt)
          throws java.lang.Exception
Description copied from interface: CLDesktop
Sends the event received as arguments to the central UI controller (OMSEventListener).

Specified by:
send in interface CLDesktop
Throws:
java.lang.Exception

sendAllFrames

public void sendAllFrames(OMSEvent evt)
Sends the event evt to all frames.

Specified by:
sendAllFrames in interface CLDesktop
Parameters:
evt -

sendAllFrames

public void sendAllFrames(OMSAction action)
Sends an event containing the action to all frames. It is equivalent to: sendFrame(new OMSEvent(evtsrc,action));

Specified by:
sendAllFrames in interface CLDesktop
Parameters:
evt -

sendAllFrames

public void sendAllFrames(java.lang.String actioncmd)
Equivalent to sendAllFrames( actioncmd, null);

Specified by:
sendAllFrames in interface CLDesktop

sendAllFrames

public void sendAllFrames(java.lang.String actioncmd,
                          java.lang.Object value)
Equivalent to sendAllFrames( frameid, panelid, actioncmd, new Object[] {value});

Specified by:
sendAllFrames in interface CLDesktop

sendAllFrames

public void sendAllFrames(java.lang.String actioncmd,
                          java.lang.Object[] value)
For every frame, call sendFrame sending arguments (actioncmd and value).

Specified by:
sendAllFrames in interface CLDesktop

sendFrame

public void sendFrame(int frameid,
                      int panelid,
                      OMSEvent evt)
This method is equivalent to: this.getFrame(frameid).onEvent(evt);

Specified by:
sendFrame in interface CLDesktop

sendFrame

public void sendFrame(int frameid,
                      int panelid,
                      OMSAction action)
This method is equivalent to: this.getFrame(frameid).onEvent(new OMSEvent(evtsrc,action));

Specified by:
sendFrame in interface CLDesktop

sendFrame

public void sendFrame(int frameid,
                      int panelid,
                      java.lang.String actioncmd)
This method is equivalent to: sendFrame(frameid,panelid,actioncmd,(Object[])new Object[] {value})

Specified by:
sendFrame in interface CLDesktop

sendFrame

public void sendFrame(int frameid,
                      int panelid,
                      java.lang.String actioncmd,
                      java.lang.Object value)
This method is equivalent to: sendFrame(frameid,panelid,actioncmd,(Object[])new Object[] {value})

Specified by:
sendFrame in interface CLDesktop

sendFrame

public void sendFrame(int frameid,
                      int panelid,
                      java.lang.String actioncmd,
                      java.lang.Object[] value)
This method sends a OMSEvent to the form specified by id. The OMSEvent contains an OMSAction with the following data: OMSAction type is OMSEvent.UI_EVT. The Action's values are:

Specified by:
sendFrame in interface CLDesktop
Parameters:
frameid - is the internal frame unique key.
panelid - is the value for the key OMSAction.PARAM_PANEL_KEY
actioncmd - is the value for the key Action.ACTION_COMMAND_KEY
value - is the value for the key OMSAction.PARAM_ARGS

clearStatusMsg

public void clearStatusMsg()
Specified by:
clearStatusMsg in interface CLDesktop

setStatusMsg

public void setStatusMsg(java.lang.String s)
Specified by:
setStatusMsg in interface CLDesktop

notifyUser

public void notifyUser(java.lang.String msg)
Specified by:
notifyUser in interface CLDesktop

enableOSXFullscreen

public void enableOSXFullscreen(java.awt.Window window)
Parameters:
window -

toggleFullScreen

public void toggleFullScreen()
Specified by:
toggleFullScreen in interface CLDesktop

addFrame

public void addFrame(CLInternalFrame cli)
Specified by:
addFrame in interface CLDesktop

removeFrame

public void removeFrame(CLInternalFrame cli)
                 throws GuiException
Specified by:
removeFrame in interface CLDesktop
Throws:
GuiException

removeAllFrames

public void removeAllFrames()

getFrame

public CLInternalFrame getFrame(int id)
Description copied from interface: CLDesktop
Returns a frame given its key.

Specified by:
getFrame in interface CLDesktop
Returns:

getFrameKeySet

public java.util.Set<java.lang.Integer> getFrameKeySet()
Description copied from interface: CLDesktop
Returns the set of keys for existing frames.

Specified by:
getFrameKeySet in interface CLDesktop
Returns:

getMainFrame

public java.awt.Frame getMainFrame()
Specified by:
getMainFrame in interface CLDesktop
Returns:
the main frame

getBrowser

public CLBrowser getBrowser()
Getter for property browser.

Specified by:
getBrowser in interface CLDesktop
Returns:
Value of property browser.

getDBTypes

public java.lang.String[] getDBTypes()
                              throws ConfigException
Throws:
ConfigException

refresh

public void refresh()
             throws GuiException
Specified by:
refresh in interface CLDesktop
Throws:
GuiException

reset

public void reset()
           throws GuiException
Specified by:
reset in interface CLDesktop
Throws:
GuiException

initializeDynMenus

public void initializeDynMenus()
Initializes menus that depend on db connection


actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

onEvent

public java.lang.String onEvent(OMSEvent e)
Specified by:
onEvent in interface OMSEventListener

getMode

public int getMode()
Specified by:
getMode in interface CLDesktop

setMode

public void setMode(int mode)
Specified by:
setMode in interface CLDesktop

getLang

public java.lang.String getLang()
Specified by:
getLang in interface CLDesktop

setLang

public void setLang(java.lang.String langcode)
Specified by:
setLang in interface CLDesktop

removeMenuWindowItem

public void removeMenuWindowItem(int frameId)
                          throws GuiException
Throws:
GuiException

addMenuWindowItem

public void addMenuWindowItem(CLInternalFrame cli)
                       throws GuiException
Throws:
GuiException

addToolbar

public void addToolbar(javax.swing.JToolBar tb)
Specified by:
addToolbar in interface CLDesktop

getToolbar

public javax.swing.JToolBar getToolbar(java.lang.String tbname)
Specified by:
getToolbar in interface CLDesktop

addToolbar

public void addToolbar(Instance menuitem)
Creates a toolbar button, based on a menu item definition, and places it in a toolbar. The toolbar's name in which the button will be placed, is taken from the menuitem's parent menu name. If the toolbar does not exist, a new one will be created.

Specified by:
addToolbar in interface CLDesktop

removeToolbar

public void removeToolbar(javax.swing.JToolBar tb)
Specified by:
removeToolbar in interface CLDesktop

removeAllToolbars

public void removeAllToolbars()
Specified by:
removeAllToolbars in interface CLDesktop

frontIfUp

public void frontIfUp(int frameId)
Specified by:
frontIfUp in interface CLDesktop

getConsole

public Console getConsole()
Specified by:
getConsole in interface CLDesktop

setConsole

public void setConsole(Console console)
Specified by:
setConsole in interface CLDesktop

getController

public UIController getController()
Description copied from interface: CLDesktop
Returns the UI central controller

Specified by:
getController in interface CLDesktop
Returns:

setController

public void setController(UIController controller)

getUserInstance

public Instance getUserInstance()
Specified by:
getUserInstance in interface CLDesktop

getEmployee

public Instance getEmployee()
Specified by:
getEmployee in interface CLDesktop

getEmployeeGroup

public Instance getEmployeeGroup()
Specified by:
getEmployeeGroup in interface CLDesktop

getClientMode

public abstract java.lang.String getClientMode()
Specified by:
getClientMode in interface CLDesktop

getConfig

public PackageConfiguration getConfig()
Specified by:
getConfig in interface CLDesktop

setModule

public void setModule(java.lang.String actionCommand)
Specified by:
setModule in interface CLDesktop

getComponentMapper

public ComponentMapper getComponentMapper()
Specified by:
getComponentMapper in interface CLDesktop

setComponentMapper

public void setComponentMapper(ComponentMapper compMapper)

getSession

public Session getSession()
Specified by:
getSession in interface CLDesktop

getSecmanager

public static SecurityManager getSecmanager()

getSecMgr

public SecurityManager getSecMgr()
Specified by:
getSecMgr in interface CLDesktop

saveConfig

public void saveConfig()
                throws java.io.IOException
Specified by:
saveConfig in interface CLDesktop
Throws:
java.io.IOException

setSecmanager

public static void setSecmanager(SecurityManager secmanager)

goFullScreen

public void goFullScreen(boolean b)
Specified by:
goFullScreen in interface CLDesktop

exitFullScreen

public void exitFullScreen()
Specified by:
exitFullScreen in interface CLDesktop

exit

public void exit()
Override to implement custom behavior on exit

Specified by:
exit in interface CLDesktop