1 4 package com.tc.admin; 5 6 import com.tc.admin.common.XObjectTable; 7 import com.tc.admin.common.XObjectTableModel; 8 9 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.getObjectAt(row); 25 Exception e = scm.getConnectionException(); 26 27 if(e != null) { 28 tip = ServerNode.getConnectionExceptionString(e, scm); 29 } 30 } 31 32 return tip; 33 } 34 } 35 | Popular Tags |