org.sourcejammer.client.gui
Class SJPrimaryWindow

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Window
                    |
                    +--java.awt.Frame
                          |
                          +--javax.swing.JFrame
                                |
                                +--org.sourcejammer.client.gui.SJPrimaryWindow
All Implemented Interfaces:
javax.accessibility.Accessible, Actions, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable, javax.swing.WindowConstants

public class SJPrimaryWindow
extends javax.swing.JFrame
implements Actions

Title: $FileName: SJPrimaryWindow.java$

Version:
$VerNum: 18$
Author:
$AuthorName: Rob MacGrogan$

$Description: $
$KeyWordsOff: $
See Also:
Serialized Form

Field Summary
private static javax.swing.JLabel connectLabel
           
private  javax.swing.JPopupMenu currentFilePopup
           
private  javax.swing.JPopupMenu localFilePopup
           
private static javax.swing.JPopupMenu mFilePopupMenu
           
private static javax.swing.JSplitPane mjMain
           
private static javax.swing.JScrollPane mjMessagePane
           
private static javax.swing.JTextArea mjMessages
           
private static FileTable mjPrimaryTable
           
private static ProjectTree mjProjectTree
           
private static javax.swing.JSplitPane mjTopPanel
           
private static javax.swing.JPopupMenu mProjectPopupMenu
           
private static javax.swing.JScrollPane scrollPaneLeft
           
private static javax.swing.JLabel statusLabel
           
 
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 org.sourcejammer.client.gui.action.Actions
act_ABOUT, act_ADD_EDIT_ARCHIVE_CONF_INFO, act_ADD_FILE, act_ADD_SELECTED_FILES, act_ADD_USER_TO_ARCHIVE_CONTROLLERS, act_ADD_USER_TO_ARCHIVE_USERS, act_CHANGE_FILE_DESCRIPTION, act_CHANGE_PASSWORD, act_CHECK_IN_FILES, act_CHECK_OUT_FILES, act_CHECK_OUT_RPT, act_CLEAR_MESSAGES, act_CONNECT, act_CONNECT_LIST_ARCHIVES, act_DELETE_ARCHIVE_CONF_INFO, act_DELETE_ARCHIVE_ON_SERVER, act_DELETE_LOCAL_FILES, act_DISCONNECT, act_DISPLAY_PROJECT_DETAILS, act_EXIT, act_FORCE_CHECK_IN, act_GET_CHANGE_LIST, act_GET_COMPLETE_USER_LIST, act_GET_FILE_INFO, act_GET_FILE_VERSION, act_GET_FILES, act_GET_FILES_IN_PROJECT, act_GET_LABELED_VERSION, act_GET_PROJECT, act_K_LOOK_AND_FEEL, act_LIST_ARCHIVES, act_LIST_ARCHIVES_ON_SERVER, act_LIST_ARCHIVES_ON_SERVER_DELETE, act_MAINTAIN_ARCHIVE_USERS, act_MAKE_ARCHIVE, act_MAKE_LABELED_VERSION, act_MAKE_PROJECT, act_MAKE_USER, act_METAL_LOOK_AND_FEEL, act_MOTIF_LOOK_AND_FEEL, act_MOVE_COPY_FILE, act_MOVE_COPY_PROJECT, act_PERMANENTLY_DELETE, act_PROXY_SETTINGS, act_REBUILD_LABEL, act_REFRESH_PROJECT, act_REMOVE_FILES, act_REMOVE_PROJECT, act_REMOVE_USER, act_REMOVE_USER_FROM_ARCHIVE_CONTROLLERS, act_REMOVE_USER_FROM_ARCHIVE_USERS, act_RENAME_FILE, act_RENAME_PROJECT, act_RESTORE_REMOVED, act_RETREIVE_FILE_INFO, act_ROLLBACK_TO_PREV_VERSION, act_SET_DEFAULT_DIR, act_SHOW_ARCHIVE_PROPS, act_SHOW_USER_GUIDE, act_TOGGLE_LOCAL_REMOTE_SYNC_VIEW, act_TOGGLE_USER_ADMIN_STATUS, act_UNDO_CHECK_OUT, act_VIEW_DELETE_REMOVED, act_VIEW_FILE, act_VIEW_LABELED_VERSIONS, act_VIEW_REMOVED, act_VIEW_RESTORE_REMOVED, act_VIEW_VERSION_COMMENT, act_VISUAL_DIFF, act_WINDOWS_LOOK_AND_FEEL
 
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
SJPrimaryWindow()
           
 
Method Summary
private  void addActionToToolBar(javax.swing.JToolBar tools, javax.swing.Action act, int index)
           
private  void addNonMenuActions()
           
private  javax.swing.JMenu buildArchiveMenu()
           
private  javax.swing.JMenu buildConnectionMenu(javax.swing.JToolBar tools)
           
private  javax.swing.JPopupMenu buildFileMenu(javax.swing.JMenuBar menus, javax.swing.JToolBar tools)
           
private  javax.swing.JPopupMenu buildFilePopup()
           
private  javax.swing.JPopupMenu buildLocalFilePopup()
           
private  javax.swing.JPanel buildMenuBar()
           
private  javax.swing.JMenuItem buildMenuItem(javax.swing.Action act)
           
private  javax.swing.JPopupMenu buildProjectMenu(javax.swing.JMenuBar menus, javax.swing.JToolBar tools)
          Adds menu to bar and returns popup menu.
private  javax.swing.JPopupMenu buildProjectPopup()
           
private  javax.swing.JMenu buildToolsMenu()
           
private  javax.swing.JMenu buildViewMenu()
           
 javax.swing.JPopupMenu getCurrentFilePopupMenu()
           
private  java.net.URL getIconLocation()
           
 int getMainPanelDividerLocation()
           
 javax.swing.JTextArea getMessageArea()
           
 javax.swing.JScrollPane getMessagePane()
           
 javax.swing.JTable getPrimaryTable()
           
 javax.swing.JPopupMenu getProjectPopupMenu()
           
 javax.swing.JTree getProjectTree()
           
 int getTopPanelDividerLocation()
           
private  void initializeTableColumns()
           
private  javax.swing.JMenu makeMenu(java.lang.String text)
           
 void repaintImmediately()
           
 void setProjectTree(ProjectTree tree)
           
static void updateConnectInfo(java.lang.String msg)
          Updates the connection info
 void updatePopupUI()
           
static void updateStatus(java.lang.String msg)
          Updates the Status Message
 void useLocalFilePopup()
           
 void useStandardFilePopup()
           
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Frame
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setIconImage, 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, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, 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, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setFocusTraversalKeys, setFocusTraversalPolicy, 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, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, 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, isOpaque, 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, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

mjProjectTree

private static ProjectTree mjProjectTree

mjPrimaryTable

private static FileTable mjPrimaryTable

mjMain

private static javax.swing.JSplitPane mjMain

mjTopPanel

private static javax.swing.JSplitPane mjTopPanel

scrollPaneLeft

private static javax.swing.JScrollPane scrollPaneLeft

mProjectPopupMenu

private static javax.swing.JPopupMenu mProjectPopupMenu

mFilePopupMenu

private static javax.swing.JPopupMenu mFilePopupMenu

mjMessages

private static javax.swing.JTextArea mjMessages

mjMessagePane

private static javax.swing.JScrollPane mjMessagePane

statusLabel

private static javax.swing.JLabel statusLabel

connectLabel

private static javax.swing.JLabel connectLabel

currentFilePopup

private javax.swing.JPopupMenu currentFilePopup

localFilePopup

private javax.swing.JPopupMenu localFilePopup
Constructor Detail

SJPrimaryWindow

public SJPrimaryWindow()
Method Detail

getCurrentFilePopupMenu

public javax.swing.JPopupMenu getCurrentFilePopupMenu()

useLocalFilePopup

public void useLocalFilePopup()

useStandardFilePopup

public void useStandardFilePopup()

getTopPanelDividerLocation

public int getTopPanelDividerLocation()

getMainPanelDividerLocation

public int getMainPanelDividerLocation()

updatePopupUI

public void updatePopupUI()

getIconLocation

private java.net.URL getIconLocation()

updateStatus

public static void updateStatus(java.lang.String msg)
Updates the Status Message


updateConnectInfo

public static void updateConnectInfo(java.lang.String msg)
Updates the connection info


buildConnectionMenu

private javax.swing.JMenu buildConnectionMenu(javax.swing.JToolBar tools)

buildProjectPopup

private javax.swing.JPopupMenu buildProjectPopup()

buildProjectMenu

private javax.swing.JPopupMenu buildProjectMenu(javax.swing.JMenuBar menus,
                                                javax.swing.JToolBar tools)
Adds menu to bar and returns popup menu.


buildArchiveMenu

private javax.swing.JMenu buildArchiveMenu()

buildMenuItem

private javax.swing.JMenuItem buildMenuItem(javax.swing.Action act)

makeMenu

private javax.swing.JMenu makeMenu(java.lang.String text)

buildLocalFilePopup

private javax.swing.JPopupMenu buildLocalFilePopup()

buildFilePopup

private javax.swing.JPopupMenu buildFilePopup()

buildFileMenu

private javax.swing.JPopupMenu buildFileMenu(javax.swing.JMenuBar menus,
                                             javax.swing.JToolBar tools)

addActionToToolBar

private void addActionToToolBar(javax.swing.JToolBar tools,
                                javax.swing.Action act,
                                int index)

addNonMenuActions

private void addNonMenuActions()

buildToolsMenu

private javax.swing.JMenu buildToolsMenu()

buildViewMenu

private javax.swing.JMenu buildViewMenu()

buildMenuBar

private javax.swing.JPanel buildMenuBar()

getMessagePane

public javax.swing.JScrollPane getMessagePane()

getProjectTree

public javax.swing.JTree getProjectTree()

setProjectTree

public void setProjectTree(ProjectTree tree)

getMessageArea

public javax.swing.JTextArea getMessageArea()

getPrimaryTable

public javax.swing.JTable getPrimaryTable()

initializeTableColumns

private void initializeTableColumns()

getProjectPopupMenu

public javax.swing.JPopupMenu getProjectPopupMenu()

repaintImmediately

public void repaintImmediately()


Copyright 2003 Soucejammer project.