Java 类com.google.gwt.user.client.ui.MouseListener 实例源码

项目:FallenGalaxy    文件:JSComponent.java   
public void addMouseListener(MouseListener listener) {
    if (mouseListeners == null) {
        sinkEvents(Event.MOUSEEVENTS);
        mouseListeners = new MouseListenerCollection();
    }
    mouseListeners.add(listener);
}
项目:FallenGalaxy    文件:Canvas.java   
/**
 * Removes a previously added listener interface.
 * 
 * @param listener
 * @see com.google.gwt.user.client.ui.SourcesMouseEvents#removeMouseListener(MouseListener)
 */
public void removeMouseListener(MouseListener listener) {
    if (listener == null) {
        throw new IllegalArgumentException();
    }
    if (mouseListeners != null) {
        mouseListeners.remove(listener);
    }
}
项目:appinventor-extensions    文件:MockComponent.java   
/**
 * Adds the specified mouse-listener to this component's widget.
 * The listener will be notified of mouse events.
 */
@Override
public final void addMouseListener(MouseListener listener) {
  mouseListeners.add(listener);
}
项目:appinventor-extensions    文件:MockComponent.java   
/**
 * Removes the specified mouse-listener from this component's widget.
 */
@Override
public final void removeMouseListener(MouseListener listener) {
  mouseListeners.remove(listener);
}
项目:FallenGalaxy    文件:JSComponent.java   
public void removeMouseListener(MouseListener listener) {
    if (mouseListeners != null)
        mouseListeners.remove(listener);
}
项目:gwittir    文件:SoftScrollbar.java   
protected MouseListener getBarListener() {
    return barListener;
}
项目:gwittir    文件:SoftScrollbar.java   
protected MouseListener getHigherListener() {
    return this.higherListener;
}
项目:gwittir    文件:SoftScrollbar.java   
protected MouseListener getLowerListener() {
    return this.lowerListener;
}
项目:gwittir    文件:SoftAnimatedScrollbar.java   
protected MouseListener getHigherListener() {
    return this.higherListener;
}
项目:gwittir    文件:SoftAnimatedScrollbar.java   
protected MouseListener getLowerListener() {
    return this.lowerListener;
}
项目:gwittir    文件:SoftAnimatedHorizontalScrollbar.java   
protected MouseListener getHigherListener() {
    return this.higherListener;
}
项目:gwittir    文件:SoftAnimatedHorizontalScrollbar.java   
protected MouseListener getLowerListener() {
    return this.lowerListener;
}
项目:gwittir    文件:SoftScrollArea.java   
public void addMouseListener(MouseListener listener) {
    this.fp.addMouseListener(listener );
}
项目:gwittir    文件:SoftScrollArea.java   
public void removeMouseListener(MouseListener listener) {
    this.fp.removeMouseListener( listener );
}
项目:gwittir    文件:SoftHorizontalScrollbar.java   
protected MouseListener getBarListener() {
    return barListener;
}
项目:gwittir    文件:SoftHorizontalScrollbar.java   
protected MouseListener getHigherListener() {
    return this.higherListener;
}
项目:gwittir    文件:SoftHorizontalScrollbar.java   
protected MouseListener getLowerListener() {
    return this.lowerListener;
}
项目:gwittir    文件:SoftButton.java   
public void addMouseListener(MouseListener listener) {
    this.softBase.addMouseListener(listener);
}
项目:gwittir    文件:SoftButton.java   
public void removeMouseListener(MouseListener listener) {
    this.softBase.removeMouseListener(listener);
}
项目:gwittir    文件:Image.java   
public void addMouseListener(MouseListener listener) {
    this.base.addMouseListener( listener );
}
项目:gwittir    文件:Image.java   
public void removeMouseListener(MouseListener listener) {
    this.base.removeMouseListener( listener );
}
项目:gwittir    文件:Label.java   
public void addMouseListener(MouseListener listener) {
    this.base.addMouseListener(listener);
}
项目:gwittir    文件:Label.java   
public void removeMouseListener(MouseListener listener) {
    this.base.removeMouseListener(listener);
}
项目:gwittir    文件:ReflectedImage.java   
public void addMouseListener(MouseListener listener) {
    this.base.addMouseListener( listener );
}
项目:gwittir    文件:ReflectedImage.java   
public void removeMouseListener(MouseListener listener) {
    this.base.addMouseListener( listener );
}
项目:FallenGalaxy    文件:Canvas.java   
/**
 * Adds a listener interface to receive mouse events such as:
 * <ul>
 * <li><code>Event.ONMOUSEDOWN</code>
 * <li><code>Event.ONMOUSEUP</code>
 * <li><code>Event.ONMOUSEMOVE</code>
 * <li><code>Event.ONMOUSEOVER</code>
 * <li><code>Event.ONMOUSEOUT</code>
 * </ul>
 * 
 * @param listener
 * @see com.google.gwt.user.client.ui.SourcesMouseEvents#addMouseListener(MouseListener)
 */
public void addMouseListener(MouseListener listener) {
    if (listener == null) {
        throw new IllegalArgumentException();
    }
    if (mouseListeners == null) {
        mouseListeners = new MouseListenerCollection();
        sinkEvents(Event.MOUSEEVENTS);
    }
    mouseListeners.add(listener);
}