Package com.vaadin.event.Action

Examples of com.vaadin.event.Action.Handler


        return table;
    }

    private void addActionHandler(Table table) {
        table.addActionHandler(new Handler() {

            Action tabNext = new ShortcutAction("Shift",
                    ShortcutAction.KeyCode.TAB, null);
            Action tabPrev = new ShortcutAction("Shift+Tab",
                    ShortcutAction.KeyCode.TAB,
View Full Code Here


        table.setPageLength(10);
        table.setRowHeaderMode(Table.ROW_HEADER_MODE_ID);
        table.setSelectable(true);
        table.setMultiSelect(true);

        table.addActionHandler(new Handler() {

            Action[] actions = new Action[] { new Action("FOO"),
                    new Action("BAR"), new Action("CAR") };

            @Override
View Full Code Here

        calendar.setLastVisibleHourOfDay(22);
        calendar.setTimeFormat(TimeFormat.Format24H);
        calendar.setHandler((EventResizeHandler) null);

        setEnabled(true);
        calendar.addActionHandler(new Handler() {
            @Override
            public void handleAction(Action action, Object sender, Object target) {
                Notification.show("ACTION CLICKED");

            }
View Full Code Here

        table.addContainerProperty("Col1", String.class, null);
        table.addContainerProperty("Col2", String.class, null);
        table.addContainerProperty("Col3", String.class, null);
        table.setColumnCollapsingAllowed(true);

        table.addActionHandler(new Handler() {

            final Action H = new Action("Toggle Col2");
            final Action[] actions = new Action[] { H };

            @Override
View Full Code Here

    @Override
    protected void setup(VaadinRequest request) {
        Table table = new Table();
        table.setPageLength(1);
        table.addActionHandler(new Handler() {

            @Override
            public void handleAction(Action action, Object sender, Object target) {
            }
View Full Code Here

    myRequestsTab.addComponent(myRequestsTable);
    userResource = resourceDao.getResourceByUser(user);
    myRequestsList = requestDao.getRequestsBySenderID(userResource.getResourceID());
    myRequestsTable.setSelectable(true);
    myRequestsTable.setStyleName("contacts");
    myRequestsTable.addActionHandler(new Handler() {
     
      /**
       *
       */
      private static final long serialVersionUID = -237113785224349354L;
View Full Code Here

    otherRequestsTab.addComponent(otherRequestsTable);
    u = resourceDao.getResourceByUser(user);
    otherRequestsList = requestDao.getRequestsByProjectLeader(u.getResourceID());
   
    otherRequestsTable.setSelectable(true);
    otherRequestsTable.addActionHandler(new Handler() {
     
      /**
       *
       */
      private static final long serialVersionUID = 4199041679593834096L;
View Full Code Here

        refresher.update(r);

      }
    });
   
    resourceTable.addActionHandler( new Handler() {
     
      /**
       *
       */
      private static final long serialVersionUID = -7637588286867019717L;
View Full Code Here

      }
    });
  }
 
  protected void initEnterKeyListener() {
    addActionHandler(new Handler() {
      public void handleAction(Action action, Object sender, Object target) {
        handlePasswordChange();
      }
      public Action[] getActions(Object target, Object sender) {
        return new Action[] {new ShortcutAction("enter", ShortcutAction.KeyCode.ENTER, null)};
View Full Code Here

    initEnterKeyListener();
    initForm();
  }
 
  protected void initEnterKeyListener() {
    addActionHandler(new Handler() {
      public void handleAction(Action action, Object sender, Object target) {
        handleFormSubmit();
      }
      public Action[] getActions(Object target, Object sender) {
        return new Action[] {new ShortcutAction("enter", ShortcutAction.KeyCode.ENTER, null)};
View Full Code Here

TOP

Related Classes of com.vaadin.event.Action.Handler

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.