|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Console
This interface defines what an administration console is. This interface should be used in the following manner:
An application should have a class that implements this interface. When the application starts it will create a single instance of the class, and register that instance with the ConsoleManager class.
Any other objects/components that need access to areas of the console call the ConsoleManager
and request the instance of the object that implements the Console interface
.
Notes:
ConsoleManager
Field Summary | |
---|---|
static int |
ID_ACTIONS_MENU |
static int |
ID_CLOSE_MENU |
static int |
ID_EDIT_MENU |
static int |
ID_EDITCOPY_MENU |
static int |
ID_EDITCUT_MENU |
static int |
ID_EDITORS_MENU |
static int |
ID_EDITPASTE_MENU |
static int |
ID_EDITREDO_MENU |
static int |
ID_EDITUNDO_MENU |
static int |
ID_EMAIL_MENU |
static int |
ID_EXIT_MENU |
static int |
ID_EXPORTTOXML_MENU |
static int |
ID_FILE_MENU |
static int |
ID_HELP_MENU |
static int |
ID_NEW_MENU |
static int |
ID_OPEN_MENU |
static int |
ID_PAGESETUP_MENU |
static int |
ID_PRINT_MENU |
static int |
ID_PRINTPREVIEW_MENU |
static int |
ID_SAVE_MENU |
static int |
ID_SAVEAS_MENU |
static int |
ID_TOOLS_MENU |
static int |
ID_VIEW_MENU |
static int |
ID_WINDOW_MENU |
static int |
ID_WIZARD_MENU |
Method Summary | |
---|---|
void |
addEASServerListener(EASServerListener listener) |
void |
addFrameListener(java.awt.event.WindowListener l) |
boolean |
connectServer(java.lang.String server, java.lang.String user, java.lang.String password, boolean sslEnabled) |
boolean |
disconnectServer() |
void |
fireEASServerConnected() |
void |
fireEASServerDisconnected() |
javax.swing.JMenu |
getActionMenu() gets a reference to the console's action menu. |
java.lang.String |
getDefaultCaption() gets a default caption for dialog boxes, message boxes, etc. |
CDesktopPane |
getDesktopPane() gets a reference to the work area panel that the console is required to provide. |
javax.swing.JMenu |
getEditMenu() gets a reference to the console's edit menu. |
javax.swing.JMenu |
getFileMenu() gets a reference to the console's file menu. |
java.awt.Component |
getFocusOwner() Returns the current component that has the focus |
java.awt.Component |
getFrameComponent() gets a reference to the top-level frame window. |
javax.swing.JMenu |
getHelpMenu() gets a reference to the console's help menu. |
javax.swing.ImageIcon |
getIcon() Returns the frame icon if any |
MessagePanel |
getMessagePane() gets a reference to the console's message panel. |
javax.swing.JTabbedPane |
getNavigationPane() gets a reference to the tabbed panel in the navigation pane. |
java.io.OutputStream |
getOutputStreamForFile(java.lang.String category, java.lang.String filename) |
javax.swing.JMenuBar |
getPrimaryMenuBar() gets a reference to the console's main menu bar. |
javax.swing.JTree |
getPrimaryTree() gets a reference to the primary tree in the navigation panel. |
java.io.Reader |
getReaderForFile(java.lang.String category, java.lang.String filename, java.lang.String charset) |
javax.swing.JRootPane |
getRootPane() |
java.lang.String |
getSettingsPath() gets a path that can be used for a user's individual preferences. |
StatusBar |
getStatusBar() gets a reference to the console's status bar. |
java.lang.String |
getTitle() Gives the frame title |
CToolBar |
getToolbar() gets a reference to the console's tool bar. |
javax.swing.JMenu |
getToolsMenu() gets a reference to the console's tools menu. |
javax.swing.JMenu |
getViewMenu() gets a reference to the console's view menu. |
javax.swing.JMenu |
getWindowMenu() gets a reference to the console's window menu. |
boolean |
isConnected() |
void |
mergeActionMenu(java.awt.Component[] items) asks console object to merge these items on to the action menu. |
void |
mergeMenus(CInternalFrame f) lets the console object know that it needs to merge menus. |
void |
mergeMenus(java.awt.Component[] items) lets the console object know that it needs to merge menus. |
java.lang.String |
readSettings(java.lang.String filename) |
void |
removeEASServerListener(EASServerListener listener) |
void |
removeFrameListener(java.awt.event.WindowListener l) |
void |
resetBusyCursor() Resets the busy cursor to the default |
java.lang.String |
retrieveData(java.lang.String key) |
boolean |
retrieveData(java.lang.String key, java.lang.StringBuffer value) provides a persistence mechanism for retrieving stored data. |
void |
setActive() Makes the frame visible and brings the frame to the front. |
void |
setBusyCursor() Sets up the busy cursor |
void |
showMessagePanel(boolean bShow) |
void |
showNavigation(boolean bShow) |
void |
showOptions(java.lang.Class initialTab) shows the console optiontab |
void |
showStatusbar(boolean bShow) |
void |
showToolbar(boolean bShow) |
boolean |
storeData(java.lang.String key, java.lang.String value) provides a persistence mechanism for storing data. |
void |
unmergeActionMenu(java.lang.Object owner) asks the console object to menu items owned by this object from the action menu. |
void |
unmergeMenus(CInternalFrame f) lets the console object know that it needs to remove merged menus. |
void |
writeSettings(java.lang.String filename, java.lang.String content) |
Field Detail |
---|
static final int ID_FILE_MENU
static final int ID_EDIT_MENU
static final int ID_VIEW_MENU
static final int ID_ACTIONS_MENU
static final int ID_TOOLS_MENU
static final int ID_WINDOW_MENU
static final int ID_HELP_MENU
static final int ID_NEW_MENU
static final int ID_OPEN_MENU
static final int ID_CLOSE_MENU
static final int ID_SAVE_MENU
static final int ID_SAVEAS_MENU
static final int ID_PAGESETUP_MENU
static final int ID_EXPORTTOXML_MENU
static final int ID_PRINTPREVIEW_MENU
static final int ID_PRINT_MENU
static final int ID_WIZARD_MENU
static final int ID_EDITORS_MENU
static final int ID_EMAIL_MENU
static final int ID_EXIT_MENU
static final int ID_EDITUNDO_MENU
static final int ID_EDITREDO_MENU
static final int ID_EDITCUT_MENU
static final int ID_EDITCOPY_MENU
static final int ID_EDITPASTE_MENU
Method Detail |
---|
CDesktopPane getDesktopPane()
javax.swing.JTabbedPane getNavigationPane()
javax.swing.JTree getPrimaryTree()
CToolBar getToolbar()
StatusBar getStatusBar()
MessagePanel getMessagePane()
java.awt.Component getFrameComponent()
javax.swing.JMenuBar getPrimaryMenuBar()
javax.swing.JMenu getFileMenu()
javax.swing.JMenu getEditMenu()
javax.swing.JMenu getViewMenu()
javax.swing.JMenu getActionMenu()
javax.swing.JMenu getToolsMenu()
javax.swing.JMenu getWindowMenu()
javax.swing.JMenu getHelpMenu()
void mergeMenus(CInternalFrame f)
void unmergeMenus(CInternalFrame f)
void mergeMenus(java.awt.Component[] items)
void mergeActionMenu(java.awt.Component[] items)
void unmergeActionMenu(java.lang.Object owner)
java.lang.String getDefaultCaption()
java.lang.String getSettingsPath()
void showNavigation(boolean bShow)
void showMessagePanel(boolean bShow)
void showToolbar(boolean bShow)
void showStatusbar(boolean bShow)
boolean storeData(java.lang.String key, java.lang.String value)
key
- unique identifier for data to be stored.value
- string representation of the data to be stored.retrieveData(java.lang.String, java.lang.StringBuffer)
boolean retrieveData(java.lang.String key, java.lang.StringBuffer value)
key
- unique identifier for data to be retrieved.value
- buffer to place the data in.storeData(java.lang.String, java.lang.String)
java.lang.String retrieveData(java.lang.String key)
void showOptions(java.lang.Class initialTab)
void addFrameListener(java.awt.event.WindowListener l)
void removeFrameListener(java.awt.event.WindowListener l)
boolean disconnectServer()
boolean connectServer(java.lang.String server, java.lang.String user, java.lang.String password, boolean sslEnabled)
boolean isConnected()
javax.swing.ImageIcon getIcon()
void setActive()
java.lang.String getTitle()
java.awt.Component getFocusOwner()
void setBusyCursor()
void resetBusyCursor()
java.io.Reader getReaderForFile(java.lang.String category, java.lang.String filename, java.lang.String charset) throws java.io.IOException
java.io.IOException
java.io.OutputStream getOutputStreamForFile(java.lang.String category, java.lang.String filename) throws java.io.IOException
java.io.IOException
javax.swing.JRootPane getRootPane()
void addEASServerListener(EASServerListener listener)
void removeEASServerListener(EASServerListener listener)
void fireEASServerDisconnected()
void fireEASServerConnected()
void writeSettings(java.lang.String filename, java.lang.String content) throws java.io.IOException
java.io.IOException
java.lang.String readSettings(java.lang.String filename) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |