Package com.sencha.gxt.widget.core.client.button

Examples of com.sencha.gxt.widget.core.client.button.IconButton


    buttonBar.setSpacing(3);
    buttonBar.getElement().getStyle().setProperty("margin", "7px");
    buttonBar.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);

    up = new IconButton(appearance.up());
    up.setToolTip(getMessages().moveUp());
    up.addSelectHandler(new SelectHandler() {

      @Override
      public void onSelect(SelectEvent event) {
        onUp();
      }
    });

    allRight = new IconButton(appearance.allRight());
    allRight.setToolTip(getMessages().addAll());
    allRight.addSelectHandler(new SelectHandler() {
      @Override
      public void onSelect(SelectEvent event) {
        onAllRight();
      }
    });

    right = new IconButton(appearance.right());
    right.setToolTip(getMessages().addSelected());
    right.addSelectHandler(new SelectHandler() {

      @Override
      public void onSelect(SelectEvent event) {
        onRight();
      }
    });

    left = new IconButton(appearance.left());
    left.setToolTip(getMessages().removeSelected());
    left.addSelectHandler(new SelectHandler() {
      @Override
      public void onSelect(SelectEvent event) {
        onLeft();
      }
    });

    allLeft = new IconButton(appearance.allLeft());
    allLeft.setToolTip(getMessages().removeAll());
    allLeft.addSelectHandler(new SelectHandler() {
      @Override
      public void onSelect(SelectEvent event) {
        onAllLeft();
      }
    });

    down = new IconButton(appearance.down());
    down.setToolTip(getMessages().moveDown());
    down.addSelectHandler(new SelectHandler() {

      @Override
      public void onSelect(SelectEvent event) {
View Full Code Here


    buttonBar.setSpacing(3);
    buttonBar.getElement().getStyle().setProperty("margin", "7px");
    buttonBar.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);

    up = new IconButton(appearance.up());
    up.setToolTip(getMessages().moveUp());
    up.addSelectHandler(new SelectHandler() {

      @Override
      public void onSelect(SelectEvent event) {
        onUp();
      }
    });

    allRight = new IconButton(appearance.allRight());
    allRight.setToolTip(getMessages().addAll());
    allRight.addSelectHandler(new SelectHandler() {
      @Override
      public void onSelect(SelectEvent event) {
        onAllRight();
      }
    });

    right = new IconButton(appearance.right());
    right.setToolTip(getMessages().addSelected());
    right.addSelectHandler(new SelectHandler() {

      @Override
      public void onSelect(SelectEvent event) {
        onRight();
      }
    });

    left = new IconButton(appearance.left());
    left.setToolTip(getMessages().removeSelected());
    left.addSelectHandler(new SelectHandler() {
      @Override
      public void onSelect(SelectEvent event) {
        onLeft();
      }
    });

    allLeft = new IconButton(appearance.allLeft());
    allLeft.setToolTip(getMessages().removeAll());
    allLeft.addSelectHandler(new SelectHandler() {
      @Override
      public void onSelect(SelectEvent event) {
        onAllLeft();
      }
    });

    down = new IconButton(appearance.down());
    down.setToolTip(getMessages().moveDown());
    down.addSelectHandler(new SelectHandler() {

      @Override
      public void onSelect(SelectEvent event) {
View Full Code Here

    final boolean addAllFunctionalities = setOfFunctionalities.isEmpty()
        || setOfFunctionalities.contains(DualFunctionality.ALL);

    if (addAllFunctionalities || setOfFunctionalities.contains(DualFunctionality.TOP))
    {
      top = new IconButton(appearance.top());
      top.setToolTip(DkMain.i18n().label_move_top());
      top.addSelectHandler(new SelectHandler()
      {

        @Override
        public void onSelect(final SelectEvent event)
        {
          onTop();
        }
      });
      buttonBar.add(top);
    }

    if (addAllFunctionalities || setOfFunctionalities.contains(DualFunctionality.UP))
    {
      up = new IconButton(appearance.up());
      up.setToolTip(DkMain.i18n().label_move_up());
      up.addSelectHandler(new SelectHandler()
      {

        @Override
        public void onSelect(final SelectEvent event)
        {
          onUp();
        }
      });
      buttonBar.add(up);
    }

    if (addAllFunctionalities || setOfFunctionalities.contains(DualFunctionality.ALL_RIGHT))
    {
      allRight = new IconButton(appearance.allRight());
      allRight.setToolTip(DkMain.i18n().label_add_all());
      allRight.addSelectHandler(new SelectHandler()
      {
        @Override
        public void onSelect(final SelectEvent event)
        {
          onAllRight();
        }
      });
      buttonBar.add(allRight);
    }

    if (addAllFunctionalities || setOfFunctionalities.contains(DualFunctionality.RIGHT))
    {
      right = new IconButton(appearance.right());
      right.setToolTip(DkMain.i18n().label_add());
      right.addSelectHandler(new SelectHandler()
      {

        @Override
        public void onSelect(final SelectEvent event)
        {
          onRight();
        }
      });
      buttonBar.add(right);
    }

    if (addAllFunctionalities || setOfFunctionalities.contains(DualFunctionality.LEFT))
    {
      left = new IconButton(appearance.left());
      left.setToolTip(DkMain.i18n().label_remove());
      left.addSelectHandler(new SelectHandler()
      {
        @Override
        public void onSelect(final SelectEvent event)
        {
          onLeft();
        }
      });
      buttonBar.add(left);
    }

    if (addAllFunctionalities || setOfFunctionalities.contains(DualFunctionality.ALL_LEFT))
    {
      allLeft = new IconButton(appearance.allLeft());
      allLeft.setToolTip(DkMain.i18n().label_remove_all());
      allLeft.addSelectHandler(new SelectHandler()
      {
        @Override
        public void onSelect(final SelectEvent event)
        {
          onAllLeft();
        }
      });
      buttonBar.add(allLeft);
    }

    if (addAllFunctionalities || setOfFunctionalities.contains(DualFunctionality.DOWN))
    {
      down = new IconButton(appearance.down());
      down.setToolTip(DkMain.i18n().label_move_down());
      down.addSelectHandler(new SelectHandler()
      {

        @Override
        public void onSelect(final SelectEvent event)
        {
          onDown();
        }
      });
      buttonBar.add(down);
    }

    if (addAllFunctionalities || setOfFunctionalities.contains(DualFunctionality.BOTTOM))
    {
      bottom = new IconButton(appearance.bottom());
      bottom.setToolTip(DkMain.i18n().label_move_bottom());
      bottom.addSelectHandler(new SelectHandler()
      {

        @Override
View Full Code Here

TOP

Related Classes of com.sencha.gxt.widget.core.client.button.IconButton

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.