Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mitre.cvw
Class CVWCoordinator  view CVWCoordinator download CVWCoordinator.java

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Window
              extended byjava.awt.Frame
                  extended byjavax.swing.JFrame
                      extended byorg.mitre.cvw.CVWCoordinator
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, CmdEntryClient, java.awt.dnd.DropTargetListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, RoomScrollbackClient, javax.swing.RootPaneContainer, java.io.Serializable, UserClient, javax.swing.WindowConstants

public class CVWCoordinator
extends javax.swing.JFrame
implements CmdEntryClient, UserClient, RoomScrollbackClient, java.awt.event.ActionListener, java.awt.dnd.DropTargetListener

This is the class which represents the main window of the client. This is a singleton class. It also has been the dumping ground for all functions that have no home.

Version:
1.0

Nested Class Summary
 
Nested classes inherited from class javax.swing.JFrame
javax.swing.JFrame.AccessibleJFrame
 
Nested classes inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame
 
Nested classes inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
(package private)  javax.swing.JCheckBoxMenuItem audioMenuItem
           
(package private)  javax.swing.JLabel audioStat
           
(package private)  Authenticator author
           
(package private)  AVController avcontroller
           
(package private)  java.awt.Font boldFont
           
(package private)  CVWCache cache
          create instantiation of hastable object
(package private)  javax.swing.JButton carryButton
           
(package private)  java.lang.String[] cmdArray
           
(package private)  javax.swing.JToolBar cmdBtnPanel
           
(package private)  java.util.Hashtable cmdChoiceStrings
           
static int CMDCOUNT
           
(package private)  CmdEntryPanel cmdEntry
           
(package private)  CVWCmdMgr cmdMgr
           
(package private)  java.awt.Container contentPane
           
(package private)  javax.swing.JButton contentsButton
           
(package private)  javax.swing.JCheckBoxMenuItem contentsMenuItem
           
(package private)  ContentsCoordinator contentsPanel
           
(package private)  CVWProxy currentProxy
           
(package private)  CVWRoom currentRoom
           
(package private)  CVWUser currentUser
           
(package private)  int cvwCmd
           
(package private)  CVWPreferences cvwPrefs
           
static boolean DEBUG
           
(package private)  java.lang.StringBuffer delayText
           
(package private)  boolean delayTextReceiving
           
(package private)  java.lang.String delayTextType
           
(package private)  javax.swing.JPanel docPanel
           
(package private)  javax.swing.JButton docServIcon
           
(package private)  java.awt.Image docServImage
           
(package private)  javax.swing.JPanel doublePanel
           
(package private)  boolean doubleShow
           
static boolean DRAGDROP
           
private  java.awt.dnd.DropTarget dropTarget
           
(package private)  int DSport
           
(package private)  java.lang.String DSserver
           
(package private)  java.lang.String DSurl
           
(package private)  javax.swing.JButton feedbackButton
           
(package private)  java.net.URL feedbackURL
           
(package private)  javax.swing.JPanel focusPanel
           
(package private)  GroupManager groupManager
           
(package private)  javax.swing.JMenu helpMenu
           
(package private)  java.awt.Color highlightColor
           
(package private)  javax.swing.JButton homeButton
           
(package private)  javax.swing.JLabel idleStat
           
(package private)  java.awt.Image image
           
(package private)  javax.swing.JButton importButton
           
private static CVWCoordinator jcvw
          Class (static) methods ******************
private  JCVWApplic jCVWApp
           
(package private)  CVWServer localServer
           
(package private)  boolean loggedIn
           
(package private)  LoginDialog loginDiag
           
(package private)  javax.swing.JButton mapButton
           
(package private)  CVWMap mapWindow
           
(package private)  java.util.Hashtable mapWindowHash
           
(package private)  java.lang.String[] mapWindowNames
           
(package private)  java.lang.String mapWindowType
           
static boolean MCPDEBUG
           
(package private)  javax.swing.JMenuBar menuBar
           
(package private)  javax.swing.JButton mitreLogo
           
(package private)  RoomScrollback mudText
           
(package private)  int mudTextLineCount
           
(package private)  int namesReturnedFromCmd
           
(package private)  javax.swing.JButton newButton
           
(package private)  javax.swing.JButton onlineButton
           
(package private)  javax.swing.JPanel outerPanel
           
(package private)  javax.swing.JButton pageBtn
           
(package private)  javax.swing.JButton pagesButton
           
(package private)  boolean pagesButtonEnabled
           
(package private)  javax.swing.JMenuItem pagesMenuItem
           
(package private)  java.lang.String password
           
(package private)  javax.swing.JButton pasteTextButton
           
(package private)  javax.swing.JButton pasteURLButton
           
(package private)  java.awt.Font plainFont
           
(package private)  boolean processing
           
(package private)  javax.swing.JPanel quitPanel
           
(package private)  java.awt.Dimension rememberSize
           
(package private)  java.lang.String roomName
           
(package private)  java.lang.String roomNum
           
(package private)  CVWServerComm serverComm
           
(package private)  java.lang.String serverName
           
(package private)  boolean showAllPanels
           
(package private)  StatusBar statusBar
           
(package private)  javax.swing.JCheckBoxMenuItem statusBarMenuItem
           
(package private)  javax.swing.JToggleButton TaudioButton
           
(package private)  TextProcessor textProc
           
(package private)  javax.swing.JToggleButton TidleButton
           
(package private)  javax.swing.JCheckBoxMenuItem toolbarMenuItem
           
(package private)  javax.swing.JPanel toolbarPanel
           
(package private)  javax.swing.JPanel topPanel
           
(package private)  javax.swing.JToggleButton TvideoButton
           
(package private)  CVWObjNum userID
           
(package private)  java.lang.String username
           
(package private)  int userNameCountFromCmd
           
(package private)  java.lang.String[] userNamesFromCmd
           
(package private)  java.lang.String userNamesFromTextResult
           
(package private)  java.lang.String userPriv
           
(package private)  javax.swing.JButton usersButton
           
(package private)  javax.swing.JCheckBoxMenuItem usersMenuItem
           
(package private)  ImageApp usersPanel
           
(package private)  javax.swing.JCheckBoxMenuItem videoMenuItem
           
(package private)  javax.swing.JLabel videoStat
           
(package private)  javax.swing.JMenu viewMenu
           
(package private)  java.util.Vector visiblePanels
           
(package private)  boolean waitingForLoginName
           
(package private)  java.lang.String waitingForTakeResult
           
(package private)  boolean waitingForUserDesc
           
(package private)  boolean waitingForUserName
           
(package private)  boolean waitingForUserObject
           
(package private)  java.lang.String waitingName
           
(package private)  CVWUser waitingUser
           
(package private)  WindowMgr winMgr
           
 
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.Window
 
Fields inherited from class java.awt.Container
 
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
CVWCoordinator()
           
 
Method Summary
 void aboutCVWCommand()
          Opens the about cvw dialog
 void actionPerformed(java.awt.event.ActionEvent e)
          Listener for menu action events
 void addCmdEntry(int cmd, java.lang.String per)
           
 void admitUserCommand()
          User selected the "Admit User" menu selection
 void admitUserCommand(CVWObject obj)
          Starts the admit user to room process.
 void admitUserCommand(java.awt.Frame frame, CVWObject obj)
          Starts the admit user to room process.
 void adtoolCommand()
          Start Admin Tool methods
 void allUsersCommand()
          Start to open the all user static list window, if already open, then just bring to front.
 void audioVisualOn(boolean b)
          Set whether audio is visually on/off.
 void auditCommand()
          Opens the "My Items" window.
 void buildEmptyMenuBar()
          Build the basic menu bar when the user is not logged in.
 void buildMenuBar()
          Build the menu bar of the main cvw window.
 void carryingCommand()
          Opens the current user's carrying folder.
 void changeSize(java.awt.Container cont, boolean b)
          Toggles the visibility of the a panel.
static java.awt.Rectangle checkWindowMeasurements(java.awt.Rectangle r)
          Checks the window measurements of a given rectangle and makes sure that the window does not go past the user screen bounds, if it does adjust it so that it doesnt.
 void clearHighlightColor()
          Clears the current text communication highlight color of the scrollback.
 void clearMenuBar()
          Clear the main window menu bar.
 void clearSystemMsg()
           
 void confirmPrefsFromServer(java.lang.String err, java.lang.String errMsg)
          Process the results of changing the preferences on the server.
 void consoleCommand()
          Shows the java console for DEBUGGING purposes.
 void contentsChange(java.lang.String objNums, java.lang.String ownerNames)
          Invoked when the contents of a room changes.
 javax.swing.JButton createButton(java.lang.String imageFile, java.lang.String toolTip)
           
 void createHelpMenu()
          Create the Help menu
 javax.swing.JToggleButton createToggleButton(java.lang.String imageFile, java.lang.String toolTip)
           
 void currentRoomOpen(int metaDataType)
          Starts the process of opening the get info dialog box for the current room.
 void debugCommand()
          Toggles the debugging feature between on and off.
 boolean delayTextReceiving()
          Query to see if currently in process of receiving delayed text communication
 void destroy()
          Kills the connection to the CVW server.
 void displayDocServInUseError()
          Display the general error message when the doc server is in use.
 void displayDocServInUseError(java.lang.String specMsg)
          Displays a specific error message when doc server is in use.
 void displayDocServNotInstalled()
          Display error when doc server is not available.
 void displayError(java.awt.Frame frame, java.lang.String errorString)
          Displays an error in a dialog box.
 void displayError(java.awt.Frame frame, java.lang.String errorString, java.lang.String title)
          Displays an error in a dialog box.
 void displayError(java.awt.Frame frame, java.lang.String errorString, java.lang.String title, boolean modal)
          Displays an error in a dialog box.
 void displayError(java.lang.String errorString)
          Displays an error in a dialog box.
 void displayError(java.lang.String errorString, boolean modal)
          Displays an error in a dialog box.
 void displayError(java.lang.String errorString, java.lang.String title)
          Displays an error in a dialog box.
 void displayError(java.lang.String errorString, java.lang.String title, boolean modal)
          Displays an error in a dialog box.
 void displayMudText(java.lang.String theLine)
          Displays text in the scrollback.
 void displayPrvCommMsg(java.lang.String messageString)
          Displays private text communication messages in the scrollback.
 void displayPrvSysMsg(java.lang.String messageString)
          Displays private system messages in the scrollback.
 void displayPubCommMsg(java.lang.String messageString)
          Displays public text communication messages in the scrollback.
 void displayPubSysMsg(java.lang.String messageString)
          Displays public system messages in the scrollback.
 void displayScrollbackError(java.lang.String errorString)
          Displays an error in the scrollback.
 boolean docServerAvailable(java.lang.String serverName)
          Checks to see if doc server can be accessed, if not notify the user.
 boolean docServerAvailable(java.lang.String nodeName, boolean notifyUser)
          Checks to see if system utilities can be accessed, notify the user if not and if the parameter passed in is true, so that the user is only notified once of the problem.
 void dragEnter(java.awt.dnd.DropTargetDragEvent dtde)
          Called when the cursor hotspot enters a drop site which will accept the drag.
 void dragExit(java.awt.dnd.DropTargetEvent dte)
          Called when the cursor hotspot moves outside of a drop site which will accept the drag.
 void dragOver(java.awt.dnd.DropTargetDragEvent dtde)
          Called when the cursor hotspot moves inside of a drop site which will accept the drag.
 void drop(java.awt.dnd.DropTargetDropEvent dtde)
          Called when the drag operation has terminated with a drop.
 void dropActionChanged(java.awt.dnd.DropTargetDragEvent dtde)
          Called when the user modifies the drop gesture.
 boolean exitCommand()
          Invoked when the exit menu option is selected.
 void feedbackCommand()
          Currently not in use.
 void findCommand()
          User selected the Find...
static javax.swing.JFrame findFrame(java.awt.Component comp)
          Takes a component and returns a reference to the JFrame that contains the component.
 void frameDismissed(java.awt.Frame f)
          Invoked when the user dismisses a popup text communication message window.
 java.util.Vector getCmdChoiceMenuItems()
          Method of the CmdEntryClient to set up the available commands available to this particular CmdEntryPanel gui
 CVWCmdMgr getCmdMgr()
          Return the current instance of the CVWCmdMgr
 java.awt.Color getCommHighlightColor(boolean prv)
          Returns the text communication high light color set as the preference of the current user.
 java.awt.Color getCurrentHighlightColor()
          Returns the current text communication highlight color of the scrollback.
 CVWProxy getCurrentProxy()
          Returns the proxy CVWObject for the current user.
 CVWObject getCurrentRoom()
          Returns the room the the user is currently in
 CVWObject getCurrentUser()
          return an instance of the CVWUser object representing the current logged in user
 java.awt.dnd.DropTarget getCVWDropTarget()
          Returns the current instance of CVWCoordinator, this is a singleton class.
static java.awt.Image getDocServIcon()
          Return the image representing communication to the document server
 java.awt.Image getImageFromFile(java.lang.String imageFileName)
          Returns an image given a relative path by appending the system dir to the relative path.
static CVWCoordinator getInstance()
          Returns the current instance of CVWCoordinator, this is a singleton class.
 JCVWApplic getJCVWApp()
          Returns the current instance of the JCVWApplic class.
static java.awt.Point getJCVWCenter()
          Returns the center point of this main window.
static java.awt.Dimension getJCVWSize()
          Returns the size of this main window.
static java.awt.Point getJCVWXY()
          Returns the current location of this main window.
 CVWMap getMapWindow(java.lang.String mapWindowType)
           
 java.awt.Dimension getMinimumSize()
          Returns the minimum size of this main window.
 javax.swing.JFrame getObjectFrame(javax.swing.JFrame f, java.lang.String oNum)
          Get the frame which contains the object given the object number.
 javax.swing.JFrame getObjectFrame(java.lang.String oNum)
          Get the frame which contains the object given the object number
 java.lang.String getParameter(java.lang.String parm)
          Returns the parameter given a string, left over from the applet world.
 java.awt.Dimension getPreferredSize()
          Returns the preferred size of this main window.
 CVWPreferences getPrefs()
          Returns the instance of CVWPreferences for the current user.
 RoomScrollback getRoomScrollback()
          Return the room scrollback.
 java.lang.String getServerName()
          Accessor for the CVW server name
 StatusBar getStatusBar()
           
 java.lang.String getTextPasteMCP()
          Returns the base MCP command for pasting text to this main window.
 TextProcessor getTextProcessor()
          Returns the text processor associated with this main window, as mandated by RoomScrollbackClient.
 java.lang.String getURLPasteMCP()
          Returns the base MCP command for pasting urls to this main window.
 java.awt.Color getUserHilightColor(java.lang.String objNum)
          Returns the text communication high light color for a sender set as the preference of the current user.
 java.awt.Image getUserImage(java.lang.String fileName)
          Returns the user image given a user image file name.
 void groupsCommand()
          Opens the group manager viewer, user has selected the "View Group Manager" menu item
 void handleConfirmationResponse(boolean answer, java.lang.String type)
          This is a callback for ConfirmationDialog class, NOT CURRENTLY USED.
 void handleDeleteResponse(boolean answer, java.lang.String objNum)
          This is a callback for ConfirmationDialog class, NOT CURRENTLY USED.
 void homeCommand()
          User pushed the home button.
 void idleCommand()
          User pushed idle button, if currently in idle state, unidle with server, otherwise idle with default idle message
 void idleCommand(java.lang.String text)
          Start the idle process with the text as idle message
 void init(JCVWApplic applet)
          Initializes some basic attributes.
 void initClientIDResult(java.lang.String error, java.lang.String thisVersion, java.lang.String servVersion, java.lang.String url)
          check the server version compared to the current version currently this code is dependent on format 3.0b<rev>
MCP receive cvw-init-id-client-result
 void initCmdButtonPanel()
          Create the toolbar command button panel, and the room location panel
 void initCmdHashtable()
          Initialize all the CVWCommands available
 void initFonts()
          Set up plain, bold fonts to be used by any object
 void initGUI()
          Initializes the gui of this main window.
 void initiatePhoneRequest()
          Initiates a private point to point audio conference using the command entry area pull down menu option.
 void initiatePhoneRequest(CVWObject obj)
          Initiates a private point to point audio conference with the user with the passed in object number.
 void initMapWindows()
          Set up all the map windows for use.
 void initMCP()
          Initializes the mcp version and sets up an authentication key to the CVW server.
 void initServerID(java.lang.String name, java.lang.String id)
          The CVW server sends its current name.
 void initUserID(java.lang.String name, CVWObjNum objNum, java.lang.String priv, java.lang.String quota)
          When user successfully connects to CVW server, the name, object number, and priviledges are sent to client.
 void login(java.lang.String uname, java.lang.String pswd)
          User entered name and password into the login dialog.
 void loginCommand()
          Invoked when the user selects the "Login" menu item
 void loginFailed(java.lang.String msg)
          Processes a login failure.
 boolean logoutCommand()
          Invoked when the logout menu item is selected.
 void makePanelVisible(java.awt.Container cont)
          Toggles the visibility of the a panel, depending on its current state.
 void makePanelVisible(java.awt.Container cont, boolean b)
          Toggles the visibility of the a panel, depending on the boolean value passed in.
 void mapCommand()
          Opens the map window, if already open, then just bring to front.
 void menuCommand(java.lang.String menuItem)
          Invoked the appropriate command method when a menu item is selected.
 void moveCommand()
          Invoked when the user uses the command entry area to perform a "Join" or a "Go To" command
 void moveError(MCPCommand mcpCommand)
          Processes any errors from CVW server when trying to move.
 void moveTo(java.lang.String moveParm)
          Sends the move mcp command to the CVW server.
 void moveToRoom(CVWObjNum objNum)
          Moves the user to a room given a room object number.
 void moveToRoom(java.lang.String name)
          Moves the user to a room given a room name.
 void moveToUser(CVWObject obj)
           
 void moveToUser(CVWObjNum objNum)
          Moves the user to a room where another user is located, given the object number of that user.
 void moveToUser(java.lang.String name)
          Moves the user to a room where another user is located given the name of that user.
 void objectContents(java.lang.String contents, java.lang.String ownerNames)
          Invoked when the contents of the user's carrying folder changes.
 void objectContents(java.lang.String object, java.lang.String contents, java.lang.String ownerNames)
          Invoked when the contents of an object changes, ie.
 void onlineUsersCommand()
          Start to open the online users window tool, if already open, then just bring to front.
 void openURL(java.lang.String urlStr)
          Invoked when user double clicks on URL in scrollback or in room
 void passwordCommand()
          Opens the set password dialog
 void passwordResult(java.lang.String oNum, java.lang.String error, java.lang.String oldpwd, java.lang.String newpwd)
          Process results of setting the password
MCP receive cvw-user-password-set-result
 void pasteTextToRoomCommand()
          User pushed the paste text button or selected it from the menu.
 void pasteTextToUser(CVWObject obj)
          User selected "Paste Text" on the right mouse menu of user.
 void pasteURLToRoomCommand()
          User pushed the paste url button or selected it from the menu.
 void prefsCommand()
          Shows the preferrence window, checking first to see if it is already open, if not open it and then register it with the window manager as a TOOL.
 void processAuthorization(java.lang.String cmd, MCPCommand mcpCommand)
          Process all cvw auth methods via the CVWAuthenticator
MCP receive cvw-auth
 void processDebugKey(java.lang.String key)
          Processes hot keys setup for debug purposes Since KeyBoardActions only support string as command need to process on the first character.
protected  void processKeyEvent(java.awt.event.KeyEvent e)
          Called when a key event is dispatched and component events are enabled.
 void processProtocol(MCPCommand mcp)
          Receives the protocol mcp from the CVW server
MCP receive protocol-end
MCP receive protocol
protected  void processWindowEvent(java.awt.event.WindowEvent e)
          2/24/00 dage - using WindowListener and WindowAdapter didnt work when the user said cancel if documents were opened for editing.
 void proxyCommand()
          Opens the proxy window, showing the preferred configuration.
 void quitCommand()
          Invoked when the socket to the CVW server in the NetThread is closed.
 void refreshAllLayout()
          After panels are hidden and shown, refresh the main window.
 void requestPrefsFromServer()
          Request the current user preferences stored on the CVW server.
 void resetConnectionToServer()
          This will reset the connection to the cvw server
 void roomChange(int floorIndex, java.lang.String newRoomNum, java.lang.String rName)
          Invoked when the user moves into a new room, CVW server sends information about the new room.
 void roomContentsCommand(boolean b)
          Hides and shows the room contents panel depending on the boolean value sent in.
 void roomContentsCommand<