|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
com.irisel.oms.guiom.CLGuiomBase
public abstract class CLGuiomBase
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 |
---|
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_LOCALES
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_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
Constructor Detail |
---|
public CLGuiomBase() throws GuiException
GuiException
Method Detail |
---|
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
public java.lang.String getUser()
getUser
in interface CLDesktop
public void send(int type, java.lang.String name, java.lang.Object value) throws java.lang.Exception
CLDesktop
send
in interface CLDesktop
type
- of the eventname
- of the action of the eventvalue
- array of values
java.lang.Exception
public void send(int type, java.lang.String name, java.lang.Object[] value) throws java.lang.Exception
CLDesktop
send
in interface CLDesktop
java.lang.Exception
public void send(OMSAction action) throws java.lang.Exception
CLDesktop
send
in interface CLDesktop
java.lang.Exception
public void send(OMSEvent evt) throws java.lang.Exception
CLDesktop
send
in interface CLDesktop
java.lang.Exception
public void sendAllFrames(OMSEvent evt)
sendAllFrames
in interface CLDesktop
evt
- 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)
sendFrame
in interface CLDesktop
public void sendFrame(int frameid, int panelid, OMSAction action)
sendFrame
in interface CLDesktop
public void sendFrame(int frameid, int panelid, java.lang.String actioncmd)
sendFrame
in interface CLDesktop
public void sendFrame(int frameid, int panelid, java.lang.String actioncmd, java.lang.Object value)
sendFrame
in interface CLDesktop
public void sendFrame(int frameid, int panelid, java.lang.String actioncmd, java.lang.Object[] value)
sendFrame
in interface CLDesktop
frameid
- is the internal frame unique key.panelid
- is the value for the key OMSAction.PARAM_PANEL_KEYactioncmd
- is the value for the key Action.ACTION_COMMAND_KEYvalue
- is the value for the key OMSAction.PARAM_ARGSpublic 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 addFrame(CLInternalFrame cli)
addFrame
in interface CLDesktop
public void removeFrame(CLInternalFrame cli) throws GuiException
removeFrame
in interface CLDesktop
GuiException
public void removeAllFrames()
public CLInternalFrame getFrame(int id)
CLDesktop
getFrame
in interface 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() 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 int getMode()
getMode
in interface CLDesktop
public void setMode(int mode)
setMode
in interface CLDesktop
public java.lang.String getLang()
getLang
in interface CLDesktop
public void setLang(java.lang.String langcode)
setLang
in interface CLDesktop
public void removeMenuWindowItem(int frameId) throws GuiException
GuiException
public void addMenuWindowItem(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 void frontIfUp(int frameId)
frontIfUp
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()
getConfig
in interface CLDesktop
public void setModule(java.lang.String actionCommand)
setModule
in interface CLDesktop
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()
getSecMgr
in interface CLDesktop
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
public void exit()
exit
in interface CLDesktop
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |