Mercurial > hg > RemoteEditor > REPSessionManager
changeset 253:450abb5576bb
*** empty log message ***
author | pin |
---|---|
date | Fri, 05 Sep 2008 05:00:59 +0900 |
parents | 526ee0354067 |
children | 27d78262ba5f |
files | rep/RPanel.java |
diffstat | 1 files changed, 27 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/rep/RPanel.java Thu Sep 04 19:27:54 2008 +0900 +++ b/rep/RPanel.java Fri Sep 05 05:00:59 2008 +0900 @@ -3,6 +3,9 @@ import java.awt.Dimension; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; +import java.awt.event.MouseEvent; +import java.awt.event.MouseListener; + import javax.swing.JButton; import javax.swing.JLabel; import javax.swing.JPanel; @@ -16,7 +19,7 @@ import java.util.*; -public class RPanel extends JPanel implements ActionListener { +public class RPanel extends JPanel implements ActionListener, MouseListener { /** * @@ -85,6 +88,7 @@ connectButton.addActionListener(this); selectButton.addActionListener(this); + editor_table.addMouseListener(this); } @@ -94,7 +98,7 @@ listener.buttonPressed(new ConnectButtonEvent(listener, host)); }else if(event.getSource() == selectButton){ - System.out.println("RPanel.actionPerformed():editorSelectedRow = " + editor_table.getSelectedRow()); + System.out.println("RPanel.actionPerformed() : editorSelectedRow = " + editor_table.getSelectedRow()); listener.buttonPressed( new SelectButtonEvent(editorList.get(editor_table.getSelectedRow()), sessionList.get(session_table.getSelectedRow()), listener)); @@ -102,7 +106,7 @@ } public void setTableEditor(int eid, REPSocketChannel<REPCommand> channel) { - System.out.println("RPanel.setTableEditor()"); + System.out.println("RPanel.setTableEditor() : channel = " + channel); Vector<String> editor = new Vector<String>(); e_eid = "Editor : " + eid; e_socketchannel = "SocketChannel : " + channel; @@ -144,7 +148,6 @@ e_tableModel.setRowCount(0); editorList = list; for(Editor editor : list){ - System.out.println(editor.getChannel()); setTableEditor(editor.getEID(), editor.getChannel()); } } @@ -153,4 +156,24 @@ this.listener = listener; } + public void mouseClicked(MouseEvent e) { + System.out.println("RPanel.mouseClicked() : editorChannel = " + editorList.get(editor_table.getSelectedRow()).getChannel()); + } + + public void mouseEntered(MouseEvent e) { + + } + + public void mouseExited(MouseEvent e) { + + } + + public void mousePressed(MouseEvent e) { + + } + + public void mouseReleased(MouseEvent e) { + + } + }