Package org.jitterbit.ui.event

Examples of org.jitterbit.ui.event.MouseEventHandler


    }

    private void installTableController(final KongaTable table) {
        DefaultComponentController<KongaTable> ctrl = new DefaultComponentController<KongaTable>();
        ctrl.registerAction(KeyUtils.DELETE, removeAction);
        ctrl.addMouseEventHandler(MouseEvent.MOUSE_CLICKED, new MouseEventHandler() {

            @Override
            public boolean handle(MouseEvent evt) {
                if (evt.getClickCount() == 2) {
                    if (table.isInColumn(evt.getPoint(), OperationTableModel.OPERATION) && editAction.isEnabled()) {
View Full Code Here


            return prototype;
        }
       
        private ComponentController<JList> getListController() {
            DefaultComponentController<JList> ctrl = new DefaultComponentController<JList>();
            ctrl.addMouseEventHandler(MouseEvent.MOUSE_RELEASED, new MouseEventHandler() {

                @Override
                public boolean handle(MouseEvent evt) {
                    finalSelectionMade();
                    return true;
View Full Code Here

                @Override
                protected boolean handleImpl(MouseEvent evt) {
                    return triggerOnMouseEvent(evt);
                }
            });
            ctrl.addMouseEventHandler(MouseEvent.MOUSE_RELEASED, new MouseEventHandler() {

                @Override
                public boolean handle(MouseEvent evt) {
                    if (singleClickSelectionEnabled && !evt.isPopupTrigger()) {
                        return triggerOnMouseEvent(evt);
View Full Code Here

    public void removeMouseHandler(int eventID, MouseEventHandler handler) {
        mouseEventHandlers.remove(eventID, handler);
    }
   
    public void setPopupMenuRequestHandler(PopupMenuRequestHandler handler) {
        MouseEventHandler evtH = fromPopupMenuRequestHandler(handler);
        // For cross-platform reasons, we need to check for popup-triggers
        // on both mouse released and mouse pressed events:
        mouseEventHandlers.put(Integer.valueOf(MouseEvent.MOUSE_RELEASED), evtH);
        mouseEventHandlers.put(Integer.valueOf(MouseEvent.MOUSE_PRESSED), evtH);
    }
View Full Code Here

        mouseEventHandlers.put(Integer.valueOf(MouseEvent.MOUSE_RELEASED), evtH);
        mouseEventHandlers.put(Integer.valueOf(MouseEvent.MOUSE_PRESSED), evtH);
    }
   
    private MouseEventHandler fromPopupMenuRequestHandler(final PopupMenuRequestHandler handler) {
        return new MouseEventHandler() {

            @Override
            public boolean handle(MouseEvent evt) {
                return PopupMenuUtils.isPopupTrigger(evt) &&
                    handler.popupMenuRequested(component, evt.getX(), evt.getY());
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.event.MouseEventHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.