Example usage for java.awt.event MouseEvent isConsumed

List of usage examples for java.awt.event MouseEvent isConsumed

Introduction

In this page you can find the example usage for java.awt.event MouseEvent isConsumed.

Prototype

public boolean isConsumed() 

Source Link

Document

Returns whether or not this event has been consumed.

Usage

From source file:org.kalypso.ogc.gml.widgets.WidgetManager.java

@Override
public void mousePressed(final MouseEvent e) {
    final IWidget[] widgets = getWidgets();
    for (final IWidget widget : widgets) {
        widget.mousePressed(e);//  ww  w  .  j  a  v  a 2s.c om

        if (e.isConsumed())
            return;
    }
}

From source file:org.kalypso.ogc.gml.widgets.WidgetManager.java

@Override
public void mouseReleased(final MouseEvent e) {
    final IWidget[] widgets = getWidgets();
    for (final IWidget widget : widgets) {
        widget.mouseReleased(e);// w  ww . ja  v  a2 s.c  o m

        if (e.isConsumed())
            return;
    }
}

From source file:org.tinymediamanager.ui.tvshows.TvShowPanel.java

/**
 * Inits the./*  w  w  w  .  j a va2s  .c  o  m*/
 */
private void init() {
    // build menu
    buildMenu();

    // add double click listener
    MouseListener mouseListener = new MouseAdapter() {
        @Override
        public void mousePressed(MouseEvent e) {
            if (e.getClickCount() == 2 && !e.isConsumed() && e.getButton() == MouseEvent.BUTTON1) {
                actionEdit2.actionPerformed(new ActionEvent(e, 0, ""));
            }
        }
    };
    tree.addMouseListener(mouseListener);
}

From source file:VASSAL.build.module.map.PieceMover.java

protected boolean canHandleEvent(MouseEvent e) {
    return !e.isShiftDown() && !e.isControlDown() && !e.isMetaDown() && e.getClickCount() < 2
            && !e.isConsumed();
}