Class Cleanup
This commit is contained in:
parent
02749d6913
commit
68da280933
|
@ -18,6 +18,7 @@
|
|||
|
||||
package the.bytecode.club.bytecodeviewer.gui.components.listeners;
|
||||
|
||||
import java.awt.event.MouseAdapter;
|
||||
import java.awt.event.MouseEvent;
|
||||
import java.awt.event.MouseListener;
|
||||
|
||||
|
@ -25,29 +26,21 @@ import java.awt.event.MouseListener;
|
|||
* @author Konloch
|
||||
* @since 6/25/2021
|
||||
*/
|
||||
public class MouseClickedListener implements MouseListener
|
||||
public class MouseClickedListener extends MouseAdapter
|
||||
{
|
||||
private final MouseClickedEvent mouseClickedEvent;
|
||||
|
||||
public MouseClickedListener(MouseClickedEvent mouseClickedEvent) {this.mouseClickedEvent = mouseClickedEvent;}
|
||||
public MouseClickedListener(MouseClickedEvent mouseClickedEvent)
|
||||
{
|
||||
this.mouseClickedEvent = mouseClickedEvent;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void mouseClicked(MouseEvent e) {
|
||||
mouseClickedEvent.mouseClicked(e);
|
||||
super.mouseClicked(e);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void mouseEntered(MouseEvent arg0) { }
|
||||
|
||||
@Override
|
||||
public void mouseExited(MouseEvent arg0) { }
|
||||
|
||||
@Override
|
||||
public void mousePressed(MouseEvent arg0) { }
|
||||
|
||||
@Override
|
||||
public void mouseReleased(MouseEvent e) { }
|
||||
|
||||
public interface MouseClickedEvent
|
||||
{
|
||||
void mouseClicked(MouseEvent e);
|
||||
|
|
Loading…
Reference in New Issue
Block a user