Examples of SelectionHandler


Examples of ca.nengo.ui.lib.world.handlers.SelectionHandler

    keyboardHandler = new KeyboardHandler(this);
    mySky.getCamera().addInputEventListener(keyboardHandler);
    mySky.getCamera().addInputEventListener(new TooltipPickHandler(this, 1000, 0));
    mySky.getCamera().addInputEventListener(new MouseHandler(this));

    selectionEventHandler = new SelectionHandler(this, panHandler);
    selectionEventHandler.setMarqueePaint(NengoStyle.COLOR_BORDER_SELECTED);
    selectionEventHandler.setMarqueeStrokePaint(NengoStyle.COLOR_BORDER_SELECTED);
    selectionEventHandler.setMarqueePaintTransparency(0.1f);

    getPiccolo().addInputEventListener(new EventConsumer());
View Full Code Here

Examples of com.cedarsolutions.client.gwt.module.view.ModuleTabView.SelectionHandler

        TabLayoutPanel parentPanel = new TabLayoutPanel(10, Unit.CM);
        view.setContext(parentPanel, 1);
        view.setInitializationEventHandler(initHandler);
        view.setSelectedEventHandler(selectedHandler);

        SelectionHandler handler = new SelectionHandler(view);

        handler.onBeforeSelection(2);
        assertFalse(view.isInitialized());
        assertEquals(0, initHandler.calls);
        assertEquals(0, selectedHandler.calls);

        handler.onBeforeSelection(1);
        assertTrue(view.isInitialized());
        assertEquals(1, initHandler.calls);
        assertEquals(UnifiedEventType.INIT_EVENT, initHandler.lastType);
        assertEquals(1, selectedHandler.calls);
        assertEquals(UnifiedEventType.SELECTED_EVENT, selectedHandler.lastType);

        handler.disable();
        handler.onBeforeSelection(1);
        assertTrue(view.isInitialized());
        assertEquals(1, initHandler.calls);
        assertEquals(UnifiedEventType.INIT_EVENT, initHandler.lastType);
        assertEquals(1, selectedHandler.calls);
        assertEquals(UnifiedEventType.SELECTED_EVENT, selectedHandler.lastType);

        handler.enable();
        handler.onBeforeSelection(1);
        assertTrue(view.isInitialized());
        assertEquals(1, initHandler.calls);
        assertEquals(UnifiedEventType.INIT_EVENT, initHandler.lastType);
        assertEquals(2, selectedHandler.calls);
        assertEquals(UnifiedEventType.SELECTED_EVENT, selectedHandler.lastType);

        handler.onBeforeSelection(1);
        assertTrue(view.isInitialized());
        assertEquals(1, initHandler.calls);
        assertEquals(UnifiedEventType.INIT_EVENT, initHandler.lastType);
        assertEquals(3, selectedHandler.calls);
        assertEquals(UnifiedEventType.SELECTED_EVENT, selectedHandler.lastType);
View Full Code Here

Examples of com.google.gwt.event.logical.shared.SelectionHandler

    txtMessage
        .setTitle("useful to know more about \n the Opportunity and contact Details");
    tbLocation.setTitle("used to find members of this Location");
    initWidget(mainPanel);

    tabPanel.getTabBar().addSelectionHandler(new SelectionHandler() {

      @Override
      public void onSelection(SelectionEvent event) {
        if (event.getSelectedItem() == (Object) 1) {
          setDefaultLocationOnMap();
View Full Code Here

Examples of com.google.gwt.event.logical.shared.SelectionHandler

    flowpanel.add(suggestBox);

    list = new ArrayList<String>();

    suggestBox.addSelectionHandler(new SelectionHandler() {
      @Override
      public void onSelection(SelectionEvent event) {
        String str = suggestBox.getText();
        if (add(str)) {
          suggestBox.setText("");
View Full Code Here

Examples of com.google.gwt.event.logical.shared.SelectionHandler

            public void onValueChange(ValueChangeEvent event) {
                events.add(event);
            }
        });

        box.addSelectionHandler(new SelectionHandler() {

            @Override
            public void onSelection(SelectionEvent event) {
               events.add(event);
               finishTest();
View Full Code Here

Examples of com.hazelcast.nio.SelectionHandler

    @Override
    protected void handleSelectionKey(SelectionKey sk) {
        if (sk.isValid() && sk.isWritable()) {
            sk.interestOps(sk.interestOps() & ~SelectionKey.OP_WRITE);
            final SelectionHandler handler = (SelectionHandler) sk.attachment();
            handler.handle();
        }
    }
View Full Code Here

Examples of com.hazelcast.nio.SelectionHandler

        super(threadGroup, "InSelector");
    }

    protected void handleSelectionKey(SelectionKey sk) {
        if (sk.isValid() && sk.isReadable()) {
            final SelectionHandler handler = (SelectionHandler) sk.attachment();
            handler.handle();
        }
    }
View Full Code Here

Examples of com.hazelcast.nio.tcp.SelectionHandler

    @Override
    protected void handleSelectionKey(SelectionKey sk) {
        if (sk.isValid() && sk.isWritable()) {
            sk.interestOps(sk.interestOps() & ~SelectionKey.OP_WRITE);
            final SelectionHandler handler = (SelectionHandler) sk.attachment();
            handler.handle();
        }
    }
View Full Code Here

Examples of com.hazelcast.nio.tcp.SelectionHandler

    }

    @Override
    protected void handleSelectionKey(SelectionKey sk) {
        if (sk.isValid() && sk.isReadable()) {
            final SelectionHandler handler = (SelectionHandler) sk.attachment();
            handler.handle();
        }
    }
View Full Code Here

Examples of honeycrm.client.mvp.views.SelectionHandler

   
    bind();
  }

  private void bind() {
    view.setSelectionHandler(new SelectionHandler() {
      @Override
      public void onSelect(Dto dto) {
        eventBus.fireEvent(new OpenEvent(dto));       
      }
    });
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.