Skip navigation links


com.essbase.eas.console
Class ConsoleFrame

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.essbase.eas.ui.frame.CFrame
                          extended by com.essbase.eas.console.ConsoleFrame

All Implemented Interfaces:
Console, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants

public class ConsoleFrame
extends CFrame
implements Console

This is the application window for Tomcat. It implements the Console interface and is the main "repository" for any plug-in components.

Since:
6.2.0
Version:
7.1.0
Author:
Hank Cox
See Also:
Serialized Form

Nested Class Summary

 

Nested classes/interfaces inherited from class javax.swing.JFrame
javax.swing.JFrame.AccessibleJFrame

 

Nested classes/interfaces inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame

 

Nested classes/interfaces inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow

 

Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer

 

Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy

 

Field Summary
protected  java.util.Properties commandLineProperties
           
protected  ConsolePanel consolePanel
           
protected  boolean firstTime
           
protected  boolean noLogin
           
protected  java.lang.String pwd
           
protected  java.lang.String server
           
protected  java.lang.String user
           
protected  boolean useToken
           

 

Fields inherited from class com.essbase.eas.ui.frame.CFrame
ACTION_MENU, busyCursorCount, compTable, defaultBounds, defaultCaption, DESKTOP, FILE_MENU, framePanel, HEIGHT_KEY, HELP_MENU, MSG_PANEL, NAV_PANE, PRIM_TREE, resources, splash, STATUS_BAR, TOOL_BAR, TOOLS_MENU, VIEW_MENU, WIDTH_KEY, windowAdapter, WINDOWS_MENU, XLOC_KEY, YLOC_KEY

 

Fields inherited from class javax.swing.JFrame
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled

 

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 com.essbase.eas.client.intf.Console
ID_ACTIONS_MENU, ID_CLOSE_MENU, ID_EDIT_MENU, ID_EDITCOPY_MENU, ID_EDITCUT_MENU, ID_EDITORS_MENU, ID_EDITPASTE_MENU, ID_EDITREDO_MENU, ID_EDITUNDO_MENU, ID_EMAIL_MENU, ID_EXIT_MENU, ID_EXPORTTOXML_MENU, ID_FILE_MENU, ID_HELP_MENU, ID_NEW_MENU, ID_OPEN_MENU, ID_PAGESETUP_MENU, ID_PRINT_MENU, ID_PRINTPREVIEW_MENU, ID_SAVE_MENU, ID_SAVEAS_MENU, ID_TOOLS_MENU, ID_VIEW_MENU, ID_WINDOW_MENU, ID_WIZARD_MENU

 

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
ConsoleFrame()
           
ConsoleFrame(javax.swing.JWindow splash, java.lang.String server, java.lang.String user, java.lang.String pwd, boolean noLogin)
           
ConsoleFrame(javax.swing.JWindow splash, java.lang.String server, java.lang.String user, java.lang.String pwd, boolean noLogin, boolean useToken, java.util.Properties props)
           

 

Method Summary
 void addEASServerListener(EASServerListener listener)
           
 boolean connectServer(java.lang.String server, java.lang.String user, java.lang.String password, boolean sslEnabled)
           
protected  CFramePanel createFramePanel()
           
 boolean disconnectServer()
           
 void dispose()
           
 void fileExitAction(java.awt.event.ActionEvent e)
           
 void fireEASServerConnected()
           
 void fireEASServerDisconnected()
           
 EasRootPane getEasRootPane()
           
 javax.swing.ImageIcon getIcon()
          Returns the frame icon if any
 java.io.InputStream getInputStreamForFile(java.lang.String category, java.lang.String filename)
           
 java.lang.String getInstallPath()
           
 java.io.OutputStream getOutputStreamForFile(java.lang.String category, java.lang.String filename)
           
 java.io.Reader getReaderForFile(java.lang.String category, java.lang.String filename, java.lang.String charset)
           
 void helpAboutAction(java.awt.event.ActionEvent e)
           
protected  void init()
           
 boolean isConnected()
           
protected  void loadSettings(java.util.Properties settings)
           
protected  void processWindowEvent(java.awt.event.WindowEvent e)
           
 java.lang.String readFileFromInstallPath(java.lang.String category, java.lang.String filename, java.lang.String charset)
           
 void removeEASServerListener(EASServerListener listener)
           
protected  void saveSettings()
           
 void serverConnectState(java.lang.Object obj)
           
 void setDefaultCaption()
           
protected  void setIconImage()
           
protected  void setRootPane(javax.swing.JRootPane root)
           
 void showMasthead(boolean value)
           
 void showOptions(java.lang.Class<?> initialTab)
          shows the console optiontab
 void viewMastheadAction(java.awt.event.ActionEvent e)
           
 void viewMastheadStateHandler(java.lang.Object obj)
           
protected  void windowClosed(java.awt.event.WindowEvent e)
           
protected  void windowClosing()
           
protected  void windowOpened()
           
 boolean writeFileToInstallPath(java.lang.String category, java.lang.String filename, java.lang.String contents, java.lang.String charset, boolean writeHeader)
           

 

Methods inherited from class com.essbase.eas.ui.frame.CFrame
addFrameListener, addFramePanel, callFrameMethod, callMethod, getActionMenu, getDefaultCaption, getDesktopPane, getEditMenu, getFileMenu, getFrame, getFrameComponent, getFrameComponent, getFrameComponent, getFrameComponent, getFrameInitialTitle, getHelpMenu, getMessagePane, getNavigationPane, getPrimaryMenuBar, getPrimaryTree, getSettingsPath, getStatusBar, getToolbar, getToolsMenu, getViewMenu, getWindowMenu, loadSettings, mergeActionMenu, mergeMenus, mergeMenus, readSettings, removeFrameListener, removeSplashWindow, resetBusyCursor, retrieveData, retrieveData, saveSettings, setActive, setBusyCursor, setCursor, setFrameComponent, show, showMessagePanel, showNavigation, showStatusbar, showToolbar, storeData, unmergeActionMenu, unmergeMenus, updateMenuBar, writeSettings

 

Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPaneCheckingEnabled, 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, 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, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setBounds, setBounds, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setVisible, 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, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree

 

Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Methods inherited from interface com.essbase.eas.client.intf.Console
addFrameListener, getActionMenu, getDefaultCaption, getDesktopPane, getEditMenu, getFileMenu, getFocusOwner, getFrameComponent, getHelpMenu, getMessagePane, getNavigationPane, getPrimaryMenuBar, getPrimaryTree, getRootPane, getSettingsPath, getStatusBar, getTitle, getToolbar, getToolsMenu, getViewMenu, getWindowMenu, mergeActionMenu, mergeMenus, mergeMenus, readSettings, removeFrameListener, resetBusyCursor, retrieveData, retrieveData, setActive, setBusyCursor, showMessagePanel, showNavigation, showStatusbar, showToolbar, storeData, unmergeActionMenu, unmergeMenus, writeSettings

 

Methods inherited from interface java.awt.MenuContainer
getFont, postEvent

 

Field Detail

firstTime

protected boolean firstTime

consolePanel

protected ConsolePanel consolePanel

server

protected java.lang.String server

user

protected java.lang.String user

pwd

protected java.lang.String pwd

noLogin

protected boolean noLogin

useToken

protected boolean useToken

commandLineProperties

protected java.util.Properties commandLineProperties

Constructor Detail

ConsoleFrame

public ConsoleFrame()

ConsoleFrame

public ConsoleFrame(javax.swing.JWindow splash,
                    java.lang.String server,
                    java.lang.String user,
                    java.lang.String pwd,
                    boolean noLogin)

ConsoleFrame

public ConsoleFrame(javax.swing.JWindow splash,
                    java.lang.String server,
                    java.lang.String user,
                    java.lang.String pwd,
                    boolean noLogin,
                    boolean useToken,
                    java.util.Properties props)

Method Detail

init

protected void init()
Overrides:
init in class CFrame

createFramePanel

protected CFramePanel createFramePanel()
Overrides:
createFramePanel in class CFrame

fileExitAction

public void fileExitAction(java.awt.event.ActionEvent e)
Overrides:
fileExitAction in class CFrame

showOptions

public void showOptions(java.lang.Class<?> initialTab)
Description copied from interface: Console
shows the console optiontab
Specified by:
showOptions in interface Console
Overrides:
showOptions in class CFrame

helpAboutAction

public void helpAboutAction(java.awt.event.ActionEvent e)

windowClosed

protected void windowClosed(java.awt.event.WindowEvent e)
Overrides:
windowClosed in class CFrame

windowClosing

protected void windowClosing()
Overrides:
windowClosing in class CFrame

windowOpened

protected void windowOpened()
Overrides:
windowOpened in class CFrame

saveSettings

protected void saveSettings()
Overrides:
saveSettings in class CFrame

loadSettings

protected void loadSettings(java.util.Properties settings)
Overrides:
loadSettings in class CFrame

dispose

public void dispose()
Overrides:
dispose in class CFrame

processWindowEvent

protected void processWindowEvent(java.awt.event.WindowEvent e)
Overrides:
processWindowEvent in class javax.swing.JFrame

serverConnectState

public void serverConnectState(java.lang.Object obj)

disconnectServer

public boolean disconnectServer()
Specified by:
disconnectServer in interface Console
Overrides:
disconnectServer in class CFrame

connectServer

public boolean connectServer(java.lang.String server,
                             java.lang.String user,
                             java.lang.String password,
                             boolean sslEnabled)
Specified by:
connectServer in interface Console
Overrides:
connectServer in class CFrame

setRootPane

protected void setRootPane(javax.swing.JRootPane root)
Overrides:
setRootPane in class javax.swing.JFrame

getEasRootPane

public EasRootPane getEasRootPane()

viewMastheadAction

public void viewMastheadAction(java.awt.event.ActionEvent e)

showMasthead

public void showMasthead(boolean value)

viewMastheadStateHandler

public void viewMastheadStateHandler(java.lang.Object obj)

getIcon

public javax.swing.ImageIcon getIcon()
Description copied from interface: Console
Returns the frame icon if any
Specified by:
getIcon in interface Console
Overrides:
getIcon in class CFrame
Returns:
frame icon

setIconImage

protected void setIconImage()
Overrides:
setIconImage in class CFrame

getInstallPath

public java.lang.String getInstallPath()

getInputStreamForFile

public java.io.InputStream getInputStreamForFile(java.lang.String category,
                                                 java.lang.String filename)
                                          throws java.io.IOException
Throws:
java.io.IOException

getReaderForFile

public java.io.Reader getReaderForFile(java.lang.String category,
                                       java.lang.String filename,
                                       java.lang.String charset)
                                throws java.io.IOException
Specified by:
getReaderForFile in interface Console
Overrides:
getReaderForFile in class CFrame
Returns:
Throws:
java.io.IOException

getOutputStreamForFile

public java.io.OutputStream getOutputStreamForFile(java.lang.String category,
                                                   java.lang.String filename)
                                            throws java.io.IOException
Specified by:
getOutputStreamForFile in interface Console
Overrides:
getOutputStreamForFile in class CFrame
Throws:
java.io.IOException

readFileFromInstallPath

public java.lang.String readFileFromInstallPath(java.lang.String category,
                                                java.lang.String filename,
                                                java.lang.String charset)
                                         throws java.io.IOException
Throws:
java.io.IOException

writeFileToInstallPath

public boolean writeFileToInstallPath(java.lang.String category,
                                      java.lang.String filename,
                                      java.lang.String contents,
                                      java.lang.String charset,
                                      boolean writeHeader)
                               throws java.io.IOException
Throws:
java.io.IOException

setDefaultCaption

public void setDefaultCaption()

isConnected

public boolean isConnected()
Specified by:
isConnected in interface Console
Overrides:
isConnected in class CFrame

addEASServerListener

public void addEASServerListener(EASServerListener listener)
Specified by:
addEASServerListener in interface Console
Overrides:
addEASServerListener in class CFrame

removeEASServerListener

public void removeEASServerListener(EASServerListener listener)
Specified by:
removeEASServerListener in interface Console
Overrides:
removeEASServerListener in class CFrame

fireEASServerDisconnected

public void fireEASServerDisconnected()
Specified by:
fireEASServerDisconnected in interface Console
Overrides:
fireEASServerDisconnected in class CFrame

fireEASServerConnected

public void fireEASServerConnected()
Specified by:
fireEASServerConnected in interface Console
Overrides:
fireEASServerConnected in class CFrame

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.