public abstract class CLGuiomBase extends javax.swing.JFrame implements CLDesktop, java.awt.event.ActionListener, OMSEventListener
Modifier and Type | Field and Description |
---|---|
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 |
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
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
CLGuiomBase() |
Modifier and Type | Method and Description |
---|---|
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 |
defaultCursor() |
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 |
getCountry() |
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()
Sends a OMSAction.REFRESH to all frames.
|
void |
refresh(int frameid,
int panelid)
Sends a refresh message to a frame given by id (key) and panel.
|
void |
refreshMenu(CLInternalFrame clInternalFrame) |
void |
refreshMenuWindowItem(CLInternalFrame cli) |
void |
removeAllFrames() |
void |
removeAllToolbars() |
void |
removeFrame(CLInternalFrame cli) |
void |
removeMenuWindowItem(int frameId) |
void |
removeToolbar(javax.swing.JToolBar tb) |
void |
reset() |
void |
restoreCursor() |
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)
Creates an OMSEvent using type, name & values and notifies
the central UI controller (OMSEventListener).
|
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 |
setCountry(java.lang.String country) |
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() |
void |
waitCursor() |
getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setTransferHandler, update
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecorated
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFront
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, transferFocusDownCycle, validate
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, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, 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, 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, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final java.lang.String KEY_DB_TYPE
public static final java.lang.String KEY_DB_SERV
public static final java.lang.String KEY_DB_PORT
public static final java.lang.String KEY_DB_DATABASE
public static final java.lang.String KEY_DB_SCHEMA
public static final java.lang.String KEY_DB_USER
public static final java.lang.String KEY_DB_PASS
public static final java.lang.String KEY_APP_USER
public static final java.lang.String KEY_APP_PASS
public static final java.lang.String KEY_LOGIN_FORM
public static final java.lang.String KEY_WS_PATH
public static final java.lang.String KEY_WS_PORT
public static final java.lang.String KEY_WS_USERNAME
public static final java.lang.String KEY_WS_PASSWORD
public static final java.lang.String KEY_WS_PROXY_HOST
public static final java.lang.String KEY_WS_PROXY_PORT
public static final java.lang.String KEY_WS_PROXY_AUTH_TYPE
public static final java.lang.String KEY_WS_PROXY_USERNAME
public static final java.lang.String KEY_WS_PROXY_PASSWORD
public static final java.lang.String KEY_WS_PROTOCOLS
public static final java.lang.String KEY_WS_SYSTEMS
public static final java.lang.String KEY_LANG
public static final java.lang.String KEY_LOCALES
public static final java.lang.String KEY_COUNTRY
public static final java.lang.String OMS_MENU_NEW_TITLE
public static final java.lang.String OMS_MENU_SELECT_TITLE
public static final java.lang.String OMS_MENU_WINDOW_TITLE
public static final java.lang.String OMS_MENU_WINDOW_KEY_PREFIX
public static final java.lang.String ENTERPRISE_CLIENT_MODE
public static final java.lang.String DATABASE_CLIENT_MODE
public CLGuiomBase() throws GuiException
GuiException
public static java.lang.Class findClass(java.lang.String classname)
public static CLDesktop getDesk()
public static CLBrowser getStaticBrowser()
public CLBrowser.AuthState authenticate(Credentials creds)
public boolean initSession() throws SessionException
SessionException
@Deprecated public void send(int type, java.lang.String name, java.lang.Object value) throws java.lang.Exception
CLDesktop
public void send(int type, java.lang.String name, java.lang.Object[] value) throws java.lang.Exception
CLDesktop
public void send(OMSAction action) throws java.lang.Exception
CLDesktop
public void send(OMSEvent evt) throws java.lang.Exception
CLDesktop
public void sendAllFrames(OMSEvent evt)
sendAllFrames
in interface CLDesktop
evt
- public void defaultCursor()
defaultCursor
in interface CLDesktop
public void waitCursor()
waitCursor
in interface CLDesktop
public void restoreCursor()
restoreCursor
in interface CLDesktop
public void sendAllFrames(OMSAction action)
sendAllFrames
in interface CLDesktop
evt
- public void sendAllFrames(java.lang.String actioncmd)
sendAllFrames
in interface CLDesktop
public void sendAllFrames(java.lang.String actioncmd, java.lang.Object value)
sendAllFrames
in interface CLDesktop
public void sendAllFrames(java.lang.String actioncmd, java.lang.Object[] value)
sendAllFrames
in interface CLDesktop
public void sendFrame(int frameid, int panelid, OMSEvent evt)
public void sendFrame(int frameid, int panelid, OMSAction action)
public void sendFrame(int frameid, int panelid, java.lang.String actioncmd)
public void sendFrame(int frameid, int panelid, java.lang.String actioncmd, java.lang.Object value)
public void sendFrame(int frameid, int panelid, java.lang.String actioncmd, java.lang.Object[] value)
public void clearStatusMsg()
clearStatusMsg
in interface CLDesktop
public void setStatusMsg(java.lang.String s)
setStatusMsg
in interface CLDesktop
public void notifyUser(java.lang.String msg)
notifyUser
in interface CLDesktop
public void enableOSXFullscreen(java.awt.Window window)
window
- public void toggleFullScreen()
toggleFullScreen
in interface CLDesktop
public void refreshMenu(CLInternalFrame clInternalFrame)
refreshMenu
in interface CLDesktop
public void addFrame(CLInternalFrame cli)
public void removeFrame(CLInternalFrame cli) throws GuiException
removeFrame
in interface CLDesktop
GuiException
public void removeAllFrames()
public CLInternalFrame getFrame(int id)
CLDesktop
public java.util.Set<java.lang.Integer> getFrameKeySet()
CLDesktop
getFrameKeySet
in interface CLDesktop
public java.awt.Frame getMainFrame()
getMainFrame
in interface CLDesktop
public CLBrowser getBrowser()
getBrowser
in interface CLDesktop
public java.lang.String[] getDBTypes() throws ConfigException
ConfigException
public void refresh(int frameid, int panelid) throws GuiException
refresh
in interface CLDesktop
GuiException
public void refresh() throws GuiException
refresh
in interface CLDesktop
GuiException
public void reset() throws GuiException
reset
in interface CLDesktop
GuiException
public void initializeDynMenus()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public java.lang.String onEvent(OMSEvent e)
onEvent
in interface OMSEventListener
public java.lang.String getCountry()
public void setCountry(java.lang.String country)
public void removeMenuWindowItem(int frameId) throws GuiException
GuiException
public void addMenuWindowItem(CLInternalFrame cli) throws GuiException
GuiException
public void refreshMenuWindowItem(CLInternalFrame cli) throws GuiException
GuiException
public void addToolbar(javax.swing.JToolBar tb)
addToolbar
in interface CLDesktop
public javax.swing.JToolBar getToolbar(java.lang.String tbname)
getToolbar
in interface CLDesktop
public void addToolbar(Instance menuitem)
addToolbar
in interface CLDesktop
public void removeToolbar(javax.swing.JToolBar tb)
removeToolbar
in interface CLDesktop
public void removeAllToolbars()
removeAllToolbars
in interface CLDesktop
public Console getConsole()
getConsole
in interface CLDesktop
public void setConsole(Console console)
setConsole
in interface CLDesktop
public UIController getController()
CLDesktop
getController
in interface CLDesktop
public void setController(UIController controller)
public Instance getUserInstance()
getUserInstance
in interface CLDesktop
public Instance getEmployee()
getEmployee
in interface CLDesktop
public Instance getEmployeeGroup()
getEmployeeGroup
in interface CLDesktop
public abstract java.lang.String getClientMode()
getClientMode
in interface CLDesktop
public PackageConfiguration getConfig()
public void setModule(java.lang.String actionCommand)
public ComponentMapper getComponentMapper()
getComponentMapper
in interface CLDesktop
public void setComponentMapper(ComponentMapper compMapper)
public Session getSession()
getSession
in interface CLDesktop
public static SecurityManager getSecmanager()
public SecurityManager getSecMgr()
public void saveConfig() throws java.io.IOException
saveConfig
in interface CLDesktop
java.io.IOException
public static void setSecmanager(SecurityManager secmanager)
public void goFullScreen(boolean b)
goFullScreen
in interface CLDesktop
public void exitFullScreen()
exitFullScreen
in interface CLDesktop