Examples of addActionHandler()


Examples of com.vaadin.ui.Tree.addActionHandler()

        tree.setItemIcon("Item 3", ICON_GLOBE);
        tree.setChildrenAllowed("Item 3", false);
        tree.addItem("Item 4");
        tree.setChildrenAllowed("Item 4", false);

        tree.addActionHandler(handler);

        return l;
    }

    Layout buildNotifications() {
View Full Code Here

Examples of com.vaadin.ui.Tree.addActionHandler()

        HierarchicalContainer hc = createHierarchicalContainer();

        tree.setContainerDataSource(hc);

        tree.addActionHandler(new Action.Handler() {

            @Override
            public void handleAction(Action action, Object sender, Object target) {
                // We don't care about functionality, we just want the UI for
                // testing..
View Full Code Here

Examples of com.vaadin.ui.Tree.addActionHandler()

                Notification.show(event.getTransferable().toString());
            }
        });

        // Add actions (context menu)
        tree.addActionHandler(ValoThemeUI.getActionHandler());
    }

    @Override
    public void enter(ViewChangeEvent event) {
        // TODO Auto-generated method stub
View Full Code Here

Examples of com.vaadin.ui.Window.addActionHandler()

                win.center();
                win.setClosable(false);
                getMainWindow().addWindow(win);
                layout.addComponent(new Label("SPACE notifies, ESC closes."));

                win.addActionHandler(new Action.Handler() {

                    ShortcutAction esc = new ShortcutAction("Close",
                            ShortcutAction.KeyCode.ESCAPE, null);
                    ShortcutAction spc = new ShortcutAction("Space",
                            ShortcutAction.KeyCode.SPACEBAR, null);
View Full Code Here

Examples of com.vaadin.ui.Window.addActionHandler()

            public void blur(BlurEvent event) {
                Notification.show("Blurred window");
            }
        });

        window.addActionHandler(new Handler() {

            private Action[] s = new Action[] { new ShortcutAction("^Save") };

            @Override
            public Action[] getActions(Object target, Object sender) {
View Full Code Here

Examples of com.vaadin.ui.Window.addActionHandler()

        getLayout().addComponent(panel);

        VerticalLayout layout = new VerticalLayout();
        layout.setMargin(true);
        Window w = new Window("SubWindow", layout);
        w.addActionHandler(actionHandler);
        layout.addComponent(createRichTextArea("InSubWindow"));
        layout.setSizeUndefined();

        getLayout().getUI().addWindow(w);
View Full Code Here

Examples of org.asmatron.messengine.engines.DefaultActionDelegate.addActionHandler()

  @Test
  public void testeamesta() throws Exception {
    DefaultActionDelegate engine = new TestActionDelegate();
    final AtomicBoolean handled = new AtomicBoolean(false);

    engine.addActionHandler(cType, new ActionHandler<DemoCommandObject>() {
      @Override
      public void handle(DemoCommandObject arg) {
        handled.set(true);
      }
    });
View Full Code Here

Examples of org.asmatron.messengine.engines.DefaultActionDelegate.addActionHandler()

  @Test(expected = DuplicateActionHandlerException.class)
  public void shouldNotAddTwoHandlers() throws Exception {
    DefaultActionDelegate engine = new TestActionDelegate();

    engine.addActionHandler(cType, new ActionHandler<DemoCommandObject>() {
      @Override
      public void handle(DemoCommandObject arg) {
      }
    });
    engine.addActionHandler(cType, new ActionHandler<DemoCommandObject>() {
View Full Code Here

Examples of org.asmatron.messengine.engines.DefaultActionDelegate.addActionHandler()

    engine.addActionHandler(cType, new ActionHandler<DemoCommandObject>() {
      @Override
      public void handle(DemoCommandObject arg) {
      }
    });
    engine.addActionHandler(cType, new ActionHandler<DemoCommandObject>() {
      @Override
      public void handle(DemoCommandObject arg) {
      }
    });
  }
View Full Code Here

Examples of org.asmatron.messengine.testing.support.TestActionDelegate.addActionHandler()

  @Test
  public void testeamesta() throws Exception {
    DefaultActionDelegate engine = new TestActionDelegate();
    final AtomicBoolean handled = new AtomicBoolean(false);

    engine.addActionHandler(cType, new ActionHandler<DemoCommandObject>() {
      @Override
      public void handle(DemoCommandObject arg) {
        handled.set(true);
      }
    });
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.