|
|||||||||
| Home >> All >> org >> mitre >> [ cvw overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.mitre.cvw
Class OnlineUserListPanel

java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.mitre.cvw.OnlineUserListPanel
- All Implemented Interfaces:
- javax.accessibility.Accessible, java.awt.dnd.DragGestureListener, java.awt.dnd.DropTargetListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, ObjectValues, java.util.Observer, java.io.Serializable
- Direct Known Subclasses:
- AllUserListPanel
- public class OnlineUserListPanel
- extends javax.swing.JPanel
- implements ObjectValues, java.util.Observer, java.awt.dnd.DropTargetListener, java.awt.dnd.DragGestureListener
- extends javax.swing.JPanel
This is the window which shows the list of online users and is updated by the CVW server every 60 seconds.
- Version:
- 1.0
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JPanel |
javax.swing.JPanel.AccessibleJPanel |
| Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
| 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) CVWCoordinator |
applet
|
(package private) java.lang.String[] |
colTitles
|
(package private) int |
curMenu
|
(package private) int |
currentSort
|
private java.awt.dnd.DragSource |
dragSource
|
(package private) java.awt.GridBagLayout |
gridbag
|
(package private) java.lang.String |
legend
|
(package private) javax.swing.JLabel |
legendLabel
|
(package private) MultiList |
listPanel
|
(package private) java.awt.Point |
menuPt
|
static int |
NO_MENU
|
(package private) javax.swing.JLabel |
status
|
(package private) javax.swing.JPanel |
statusPanel
|
(package private) int |
total
|
(package private) java.lang.String |
update
|
(package private) UserMenu |
user_menu
|
(package private) UserMenuControl |
user_menu_control
|
(package private) OnlineUserObject[] |
users
|
(package private) int[] |
widths
|
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_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.mitre.cvw.ObjectValues |
BALLOT, CHECKEDOUTDOC, CHECKOUT, CURRONLINEUSER, CURRUSER, DISCONNECTED, DOC, DOC_SC, DOCBUSY, DOCCHECKIN, DOCCOPY, DOCCREATE, DOCCREATEBACKGROUND, DOCCREATEDATE, DOCCREATOR, DOCCREATORONLY, DOCDELETE, DOCDESC, DOCEDITORS, DOCEXPORT, DOCINFO, DOCMIMETYPE, DOCOPEN, DOCSETDESC, DOCSTATUS, DOCTYPE, DOCUMENT, DROP, FLOOR, FOLDER, FOLDER_SC, FORM, FORMFOLDER, GETALLTYPES, GETCHECKEDDOCS, GETDOCTEXTS, GETDOCTEXTSCO, GETEXTDESC, GROUP, IMAGEMENU, NOTCHECKEDOUTDOC, NOTE, NOTE_SC, ONLINEUSER, PROXY, PROXYWIN, RECORDER, REMOTE, REMOTEUSER, REVERT, REVISION, ROOM, ROOMKEY, SETDOCATTRS, SETDOCNAME, STANDARD, TAKE, UNKNOWN, URL, URL_SC, USER, USERSTAT, WB, WHITEBOARD, WHITEBOARD_SC |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
OnlineUserListPanel()
Constructor |
|
| Method Summary | |
void |
clearContents()
Clears the contents of this window. |
void |
clearStatusLabel()
Clears the status label at the bottom of the panel. |
void |
clickedDismiss()
Closes this window and notifies the CVW server that online users info is no longer desired. |
private void |
doRightMouseMenu(int row,
int x,
int y)
Shows the right mouse menu on a user. |
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 |
dragGestureRecognized(java.awt.dnd.DragGestureEvent dge)
Called when the native platform notifies the virtual machine that a drag-and-drop has been initiated. |
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. |
void |
enableScrolling(boolean b)
|
CVWObject |
getSelectedObject()
Returns the corresponding CVWObject to the row selected. |
OnlineUserObject |
getSelectedOnlineObject()
Returns the corresponding OnlineUserObject to the row selected. |
java.lang.String[] |
getStringArray(OnlineUserObject anObj)
Returns the string array needed for display of a particular OnlineUserObject. |
boolean |
hideMenu()
Hides the current menu. |
void |
init()
Initializes the gui of this window. |
void |
openCVWObject()
|
void |
resetHilights(int hilight,
int start,
OnlineUserObject selectobj)
Resets the scroll position if something was selected, reselect it if it's no longer there don't select anything if nothing was selected, return us to the same row number 10/28/98 dage - taken from DetailList |
void |
setVisible(boolean b)
If showing the window, enable drag and drop; if hiding the window, unregister this window from the drag and drop manager. |
void |
showMenu(int x,
int y,
int row)
Shows the right mouse menu depending on the type of user that is clicked on. |
void |
sortUsers(int field)
Sorts the users by the specified field. |
void |
sortUsersBy(int field)
Sorts the current list of users by the specified field. |
void |
sortUsersBy(int field,
int hilight,
int start,
OnlineUserObject select)
Sorts the users by a specified field saving the currently selected user for display after sort is done. |
void |
update(java.util.Observable ob,
java.lang.Object arg)
Notifies this detail list of when the right mouse selection finished painting so that the right mouse menu can be shown. |
void |
updateList()
Updates the detail list widget with the new user information. |
void |
updateStatusLabel(boolean updating)
Updates the status label at the bottom of the panel, if status is updating, then label text becomes red, otherwise black with count of total number of connected users. |
void |
updateUserList(CVWUser[] users1,
java.lang.String[] rooms1,
int[] times1,
java.lang.String[] messages1,
java.lang.String[] busy)
Updates the detail list with the new information, if there is a drag action in process abort the entire update. |
| Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
NO_MENU
public static final int NO_MENU
- See Also:
- Constant Field Values
users
OnlineUserObject[] users
total
int total
curMenu
int curMenu
currentSort
int currentSort
user_menu_control
UserMenuControl user_menu_control
user_menu
UserMenu user_menu
listPanel
MultiList listPanel
gridbag
java.awt.GridBagLayout gridbag
applet
CVWCoordinator applet
statusPanel
javax.swing.JPanel statusPanel
status
javax.swing.JLabel status
legendLabel
javax.swing.JLabel legendLabel
update
java.lang.String update
legend
java.lang.String legend
colTitles
java.lang.String[] colTitles
widths
int[] widths
menuPt
java.awt.Point menuPt
dragSource
private java.awt.dnd.DragSource dragSource
| Constructor Detail |
OnlineUserListPanel
public OnlineUserListPanel()
- Constructor
| Method Detail |
init
public void init()
- Initializes the gui of this window.
updateStatusLabel
public void updateStatusLabel(boolean updating)
- Updates the status label at the bottom of the panel, if status is
updating, then label text becomes red, otherwise black with count of total
number of connected users.
enableScrolling
public void enableScrolling(boolean b)
clearStatusLabel
public void clearStatusLabel()
- Clears the status label at the bottom of the panel.
updateUserList
public void updateUserList(CVWUser[] users1, java.lang.String[] rooms1, int[] times1, java.lang.String[] messages1, java.lang.String[] busy)
- Updates the detail list with the new information, if there is a drag action in
process abort the entire update.
sortUsersBy
public void sortUsersBy(int field)
- Sorts the current list of users by the specified field.
sortUsersBy
public void sortUsersBy(int field,
int hilight,
int start,
OnlineUserObject select)
- Sorts the users by a specified field saving the currently selected user for
display after sort is done.
sortUsers
public void sortUsers(int field)
- Sorts the users by the specified field.
updateList
public void updateList()
- Updates the detail list widget with the new user information.
resetHilights
public void resetHilights(int hilight,
int start,
OnlineUserObject selectobj)
- Resets the scroll position
if something was selected, reselect it
if it's no longer there don't select anything
if nothing was selected, return us to the same row number
10/28/98 dage - taken from DetailList
getStringArray
public java.lang.String[] getStringArray(OnlineUserObject anObj)
- Returns the string array needed for display of a particular OnlineUserObject.
setVisible
public void setVisible(boolean b)
- If showing the window, enable drag and drop; if hiding the window,
unregister this window from the drag and drop manager.
clickedDismiss
public void clickedDismiss()
- Closes this window and notifies the CVW server that online users info is
no longer desired.
MCP send cvw-system-onusers-interest
clearContents
public void clearContents()
- Clears the contents of this window.
openCVWObject
public void openCVWObject()
doRightMouseMenu
private void doRightMouseMenu(int row,
int x,
int y)
- Shows the right mouse menu on a user.
hideMenu
public boolean hideMenu()
- Hides the current menu.
update
public void update(java.util.Observable ob, java.lang.Object arg)
- Notifies this detail list of when the right mouse selection finished
painting so that the right mouse menu can be shown.
- Specified by:
updatein interfacejava.util.Observer
showMenu
public void showMenu(int x,
int y,
int row)
- Shows the right mouse menu depending on the type of user that is
clicked on.
getSelectedOnlineObject
public OnlineUserObject getSelectedOnlineObject()
- Returns the corresponding OnlineUserObject to the row selected.
getSelectedObject
public CVWObject getSelectedObject()
- Returns the corresponding CVWObject to the row selected.
dragGestureRecognized
public void dragGestureRecognized(java.awt.dnd.DragGestureEvent dge)
- Description copied from interface:
java.awt.dnd.DragGestureListener - Called when the native platform notifies the virtual machine that a
drag-and-drop has been initiated.
- Specified by:
dragGestureRecognizedin interfacejava.awt.dnd.DragGestureListener
dragEnter
public void dragEnter(java.awt.dnd.DropTargetDragEvent dtde)
- Description copied from interface:
java.awt.dnd.DropTargetListener - Called when the cursor hotspot enters a drop site which will accept the
drag.
- Specified by:
dragEnterin interfacejava.awt.dnd.DropTargetListener
dragExit
public void dragExit(java.awt.dnd.DropTargetEvent dte)
- Description copied from interface:
java.awt.dnd.DropTargetListener - Called when the cursor hotspot moves outside of a drop site which will
accept the drag. This could also happen if the drop site is no longer
active, or no longer accepts the drag.
- Specified by:
dragExitin interfacejava.awt.dnd.DropTargetListener
dragOver
public void dragOver(java.awt.dnd.DropTargetDragEvent dtde)
- Description copied from interface:
java.awt.dnd.DropTargetListener - Called when the cursor hotspot moves inside of a drop site which will
accept the drag.
- Specified by:
dragOverin interfacejava.awt.dnd.DropTargetListener
drop
public void drop(java.awt.dnd.DropTargetDropEvent dtde)
- Description copied from interface:
java.awt.dnd.DropTargetListener - Called when the drag operation has terminated with a drop.
- Specified by:
dropin interfacejava.awt.dnd.DropTargetListener
dropActionChanged
public void dropActionChanged(java.awt.dnd.DropTargetDragEvent dtde)
- Description copied from interface:
java.awt.dnd.DropTargetListener - Called when the user modifies the drop gesture. This is often the case
when additional mouse or key events are received during the drag.
- Specified by:
dropActionChangedin interfacejava.awt.dnd.DropTargetListener
|
|||||||||
| Home >> All >> org >> mitre >> [ cvw overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC