[Bprocessor-commit] /gl/src/net/sourceforge/bprocessor/gl/tool CreateSpaceActionListener.java, 1.16
Status: Pre-Alpha
Brought to you by:
henryml
|
From: rimestad <rim...@us...> - 2007-04-10 20:57:50
|
Update of /cvsroot/bprocessor//gl/src/net/sourceforge/bprocessor/gl/tool In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv26855/src/net/sourceforge/bprocessor/gl/tool Modified Files: CreateSpaceActionListener.java Log Message: removed code and altered to use of MouseAdapter Index: CreateSpaceActionListener.java =================================================================== RCS file: /cvsroot/bprocessor//gl/src/net/sourceforge/bprocessor/gl/tool/CreateSpaceActionListener.java,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** CreateSpaceActionListener.java 31 Jan 2007 15:22:06 -0000 1.16 --- CreateSpaceActionListener.java 10 Apr 2007 20:57:44 -0000 1.17 *************** *** 16,21 **** import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseEvent; - import java.awt.event.MouseListener; import net.sourceforge.bprocessor.model.Project; --- 16,21 ---- import java.awt.event.ActionEvent; import java.awt.event.ActionListener; + import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import net.sourceforge.bprocessor.model.Project; *************** *** 28,32 **** * The create functional space action listener for the domain popupmenu. */ ! public class CreateSpaceActionListener implements ActionListener, MouseListener { /** The logger */ private static Logger log = Logger.getLogger(CreateSpaceActionListener.class); --- 28,32 ---- * The create functional space action listener for the domain popupmenu. */ ! public class CreateSpaceActionListener extends MouseAdapter implements ActionListener { /** The logger */ private static Logger log = Logger.getLogger(CreateSpaceActionListener.class); *************** *** 85,90 **** } } - - /** --- 85,88 ---- *************** *** 92,95 **** --- 90,94 ---- * @param event The MouseEvent */ + @Override public void mouseClicked(MouseEvent event) { cta.startEditing(); *************** *** 97,137 **** } - - /** - * Not in use - * @param event The MouseEvent - */ - public void mouseEntered(MouseEvent event) { - // TODO Auto-generated method stub - - } - - /** - * Not in use - * @param event The MouseEvent - */ - public void mouseExited(MouseEvent event) { - // TODO Auto-generated method stub - - } - - /** - * Not in use - * @param event The MouseEvent - */ - public void mousePressed(MouseEvent event) { - // TODO Auto-generated method stub - - } - - /** - * Not in use - * @param event The MouseEvent - */ - public void mouseReleased(MouseEvent event) { - // TODO Auto-generated method stub - - } - /** * My action listener --- 96,99 ---- *************** *** 144,148 **** */ public void actionPerformed(ActionEvent e) { ! String name = ((JButton) e.getSource()).getLabel(); if (name.equalsIgnoreCase("Ok")) { if (cta.attribute().getClassification() != null) { --- 106,110 ---- */ public void actionPerformed(ActionEvent e) { ! String name = ((JButton) e.getSource()).getText(); if (name.equalsIgnoreCase("Ok")) { if (cta.attribute().getClassification() != null) { *************** *** 169,178 **** } } ! dialog.show(false); } } if (name.equalsIgnoreCase("Cancel")) { ! dialog.show(false); } --- 131,140 ---- } } ! dialog.setVisible(false); } } if (name.equalsIgnoreCase("Cancel")) { ! dialog.setVisible(false); } |