Package com.extjs.gxt.ui.client.widget.button

Examples of com.extjs.gxt.ui.client.widget.button.Button.addSelectionListener()


    if (GXT.isAriaEnabled()) {
      item.setData("gxt-menutext", toolTipTitle);
    }

    item.addSelectionListener(btnListener);
    return item;
  }

  protected Button createColorButton(AbstractImagePrototype icon, String toolTip, String toolTipTitle,
      Listener<ComponentEvent> listener) {
View Full Code Here


        okButton.setText(messages.ok());

        final AddAvancementForm addDataForm = new AddAvancementForm();
        dialog.add(addDataForm, new BorderLayoutData(LayoutRegion.CENTER));

        okButton.addSelectionListener(new SelectionListener<ButtonEvent>() {
          public void componentSelected(ButtonEvent ce) {
            ProgressDto model = addDataForm.getDataModel();
            progressGrid.getStore().add(model);
            progressGrid.getView().refresh(true);
            //bus.fireEvent(new EtatAvancementEvent(listGestion,progressGrid.getStore().getModels()));
View Full Code Here

        okButton.setText(messages.ok());

        final AddCautionFournieForm addCautionFournieForm = new AddCautionFournieForm();
        dialog.add(addCautionFournieForm, new BorderLayoutData(LayoutRegion.CENTER));

        okButton.addSelectionListener(new SelectionListener<ButtonEvent>() {
          public void componentSelected(ButtonEvent ce) {
            CautionFournieDto model = addCautionFournieForm.getDataModel();
            cautionFournieGrid.getStore().add(model);
          }
        });
View Full Code Here

    cancelButton.setText(messages.cancel());
    Button okButton = dialog.getButtonById(Dialog.OK);
    okButton.setText(messages.ok());
    final AddTransfertPpForm addTransferPpForm = new AddTransfertPpForm();
    dialog.add(addTransferPpForm, new BorderLayoutData(LayoutRegion.CENTER));
    okButton.addSelectionListener(new SelectionListener<ButtonEvent>() {
        @Override
        public void componentSelected(ButtonEvent ce) {
      LigTransfertppModel model = addTransferPpForm.getDataModel();
      gridligModel.getStore().add(model);
      isSave = false;
View Full Code Here

    grid.addPlugin(checkColumn);
    cp.add(grid);

    ToolBar toolBar = new ToolBar();
    Button add = new Button("Add Plant");
    add.addSelectionListener(new SelectionListener<ButtonEvent>() {

      @Override
      public void componentSelected(ButtonEvent ce) {

        grid.stopEditing();
View Full Code Here

    west.setHeading("My Albums");

    ToolBar toolBar = new ToolBar();
    Button newAlbum = new Button("New Album");
    newAlbum.setIcon(Resources.ICONS.album());
    newAlbum.addSelectionListener(new SelectionListener<ButtonEvent>() {
      @Override
      public void componentSelected(ButtonEvent ce) {
        MessageBox.prompt("New Album", "Enter the new album name:", new Listener<MessageBoxEvent>() {
          public void handleEvent(MessageBoxEvent be) {
            if (be.getButtonClicked().getItemId().equals(Dialog.OK) && be.getValue() != null) {
View Full Code Here

    HorizontalPanel hp = new HorizontalPanel();
    hp.setSpacing(5);

    Button add = new Button("Add Tab");
    add.addSelectionListener(new SelectionListener<ButtonEvent>() {
      @Override
      public void componentSelected(ButtonEvent ce) {
        addTab();
        advanced.setSelection(advanced.getItem(index - 1));
      }
View Full Code Here

    grid.addPlugin(checkColumn);
    cp.add(grid);

    ToolBar toolBar = new ToolBar();
    Button add = new Button("Add Plant");
    add.addSelectionListener(new SelectionListener<ButtonEvent>() {

      @Override
      public void componentSelected(ButtonEvent ce) {
        Plant plant = new Plant();
        plant.setName("New Plant 1");
View Full Code Here

    sourceContainer.setWidth(100);

    addSources(sourceContainer);

    Button reset = new Button("Reset");
    reset.addSelectionListener(new SelectionListener<ButtonEvent>() {
      @Override
      public void componentSelected(ButtonEvent ce) {
        container.removeAll();
        sourceContainer.removeAll();
        addSources(sourceContainer);
View Full Code Here

        okButton.setText(messages.ok());

        final AddAccomptesForm addDataForm = new AddAccomptesForm();
        dialog.add(addDataForm, new BorderLayoutData(LayoutRegion.CENTER));

        okButton.addSelectionListener(new SelectionListener<ButtonEvent>() {
          @Override
          public void componentSelected(ButtonEvent ce) {
            if (addDataForm.isValid()) {
              DeductionDto model = addDataForm.getDataModel();
              deductionGrid.getStore().add(model);
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.