01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.admin;
05:
06: import com.tc.admin.common.XObjectTable;
07: import com.tc.admin.common.XObjectTableModel;
08:
09: import java.awt.Point;
10: import java.awt.event.MouseEvent;
11:
12: public class ClusterMemberTable extends XObjectTable {
13: public ClusterMemberTable() {
14: super ();
15: }
16:
17: public String getToolTipText(MouseEvent event) {
18: String tip = null;
19: Point p = event.getPoint();
20: int row = rowAtPoint(p);
21:
22: if (row != -1) {
23: XObjectTableModel model = (XObjectTableModel) getModel();
24: ServerConnectionManager scm = (ServerConnectionManager) model
25: .getObjectAt(row);
26: Exception e = scm.getConnectionException();
27:
28: if (e != null) {
29: tip = ServerNode.getConnectionExceptionString(e, scm);
30: }
31: }
32:
33: return tip;
34: }
35: }
|