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

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


      this.displayableButtons.add(displayableButton);
    }

    if (this.displayableButtons.contains(DisplayableButton.CANCEL))
    {
      buttonCancel = new TextButton(getCancelButtonLabel(), new SelectEvent.SelectHandler()
      {

        @Override
        public void onSelect(final SelectEvent event)
        {
          MySimpleControlsPopup.this.onButtonCancelClicked();
        }

      });
      buttonCancel.setItemId(CANCEL);
      buttonCancel.setIcon(DkMain.icons().cancel_16());
      addButton(buttonCancel);
    }

    if (this.displayableButtons.contains(DisplayableButton.RESET))
    {
      buttonReset = new TextButton(getResetButtonLabel(), new SelectEvent.SelectHandler()
      {

        @Override
        public void onSelect(final SelectEvent event)
        {
          MySimpleControlsPopup.this.onButtonResetClicked();
        }

      });
      buttonReset.setItemId(RESET);
      buttonReset.setIcon(DkMain.icons().refresh_16());
      addButton(buttonReset);
    }

    if (this.displayableButtons.contains(DisplayableButton.SAVE))
    {
      buttonSave = new TextButton(getSaveButtonLabel(), new SelectEvent.SelectHandler()
      {
        @Override
        public void onSelect(final SelectEvent event)
        {
          MySimpleControlsPopup.this.onButtonSaveClicked();
        }
      });
      buttonSave.setItemId(SAVE);
      buttonSave.setIcon(DkMain.icons().save_16());
      addButton(buttonSave);
    }

    if (this.displayableButtons.contains(DisplayableButton.OK))
    {
      buttonOk = new TextButton(getOkButtonLabel(), new SelectEvent.SelectHandler()
      {
        @Override
        public void onSelect(final SelectEvent event)
        {
          MySimpleControlsPopup.this.onButtonOkClicked();
        }
      });
      buttonOk.setItemId(OK);
      buttonOk.setIcon(DkMain.icons().ok_16());
      addButton(buttonOk);
    }

    else if (this.displayableButtons.contains(DisplayableButton.SEARCH))
    {
      buttonSearch = new TextButton(getSearchButtonLabel(), new SelectEvent.SelectHandler()
      {
        @Override
        public void onSelect(final SelectEvent event)
        {
          MySimpleControlsPopup.this.onButtonSearchClicked();
View Full Code Here


  {
    super(null);
    final HorizontalLayoutContainer panel = new HorizontalLayoutContainer();
    textField = new TextField();
    textField.setEmptyText(DkMain.i18n().label_reference_selector_empty_text());
    button = new TextButton(DkMain.i18n().label_reference_selector(), new SelectEvent.SelectHandler()
    {
      @Override
      public void onSelect(final SelectEvent event)
      {
        onButtonClicked(value);
View Full Code Here

      }
    }

    final ToolBar toolbar = new ToolBar();
    toolbar.add(new FillToolItem());
    buttonNew = new TextButton(DkMain.i18n().label_new(), new SelectEvent.SelectHandler()
    {
      @Override
      public void onSelect(final SelectEvent event)
      {
        onNewButtonClicked();
View Full Code Here

    bottomToolbar = new ToolBar();
    if (functionalities.contains(Functionality.ADD) || functionalities.contains(Functionality.CREATE))
    {
      if (functionalities.contains(Functionality.ADD))
      {
        buttonAdd = new TextButton(DkMain.i18n().label_add(), new SelectEvent.SelectHandler()
        {
          @Override
          public void onSelect(final SelectEvent event)
          {
            fireEvent(new AddButtonSelectEvent());
          }
        });
        buttonAdd.setIcon(DkMain.icons().file_plus_16());

        toolbar.add(buttonAdd);
      }
      if (functionalities.contains(Functionality.CREATE))
      {
        buttonCreate = new TextButton(DkMain.i18n().label_create(), new SelectEvent.SelectHandler()
        {
          @Override
          public void onSelect(final SelectEvent event)
          {
            fireEvent(new CreateButtonSelectEvent());
View Full Code Here

      {
        ((MyDynamicAsyncPagingCombobox<M>) combobox).getPagingToolBar().setShowMenu(false);
      }
    }
    toolbar.add(new FillToolItem());
    buttonAdd = new TextButton(DkMain.i18n().label_add(), new SelectEvent.SelectHandler()
    {
      @Override
      public void onSelect(final SelectEvent event)
      {
        onAddButtonClicked();
View Full Code Here

    // displayNameText.getElement().getStyle().setFontStyle(FontStyle.ITALIC);
    tb.add(displayNameText);
    updateToolbarBetweenDisplayNameAndConnectButtons(tb);
    updateToolbarConnectButton(tb);
    // button restore down
    buttonRestoreDown = new TextButton("", new SelectEvent.SelectHandler()
    {
      @Override
      public void onSelect(final SelectEvent event)
      {
        DkMain.controller().onFullScreen(false);
      }
    });
    buttonRestoreDown.setIcon(DkMain.icons().restore_down_16_14());
    // button expand
    buttonExpand = new TextButton("", new SelectEvent.SelectHandler()
    {
      @Override
      public void onSelect(final SelectEvent event)
      {
        DkMain.controller().onFullScreen(true);
View Full Code Here

  protected void updateToolbarConnectButton(final ToolBar tb)
  {
    if (DkMain.config().isStandalone())
    {
      // Button Connect
      buttonConnectDisconnect = new TextButton("Connect", new SelectEvent.SelectHandler()
      {
        @Override
        public void onSelect(final SelectEvent event)
        {
          if (DkMain.model().isLogged())
View Full Code Here

      @Override
      protected void createButtons()
      {

        buttonOk = new TextButton(DkMain.i18n().label_ok(), new SelectEvent.SelectHandler()
        {
          @Override
          public void onSelect(final SelectEvent event)
          {
            MyReferenceSelectorPopup.this.onButtonOkClicked();
          }
        });
        buttonOk.setItemId(OK);
        buttonOk.setIcon(DkMain.icons().ok_16());
        addButton(buttonOk);

        buttonReset = new TextButton(DkMain.i18n().label_reset(), new SelectEvent.SelectHandler()
        {

          @Override
          public void onSelect(final SelectEvent event)
          {
            MyReferenceSelectorPopup.this.onButtonResetClicked();
          }

        });
        buttonReset.setItemId(RESET);
        buttonReset.setIcon(DkMain.icons().refresh_16());
        addButton(buttonReset);

        buttonCancel = new TextButton(DkMain.i18n().label_cancel(), new SelectEvent.SelectHandler()
        {

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

TOP

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

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.