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

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


    configs.add(column);

    column = new ColumnConfig("date", 125);
    if (widget) {
      Button btn = new Button("Updated");
      btn.addListener(Events.OnClick, new Listener<ButtonEvent>() {
        public void handleEvent(ButtonEvent be) {
          // stop column from getting click and causing sort
          be.cancelBubble();
        }
      });
View Full Code Here


    txtfldPassword.setPassword(true);
    add(txtfldPassword, new AbsoluteData(160, 117));
    txtfldPassword.setFieldLabel("Password");
   
    Button btnAsCustomer = new Button("As Customer");
    btnAsCustomer.addListener(Events.Select, new Listener<ButtonEvent>() {
      public void handleEvent(ButtonEvent e) {
        CustomerWindow customerWindow = new CustomerWindow((String)txtflUserID.getValue());
      }
    });
    add(btnAsCustomer, new AbsoluteData(97, 189));
View Full Code Here

   
    LayoutContainer layoutContainer = new LayoutContainer();
    layoutContainer.setLayout(new FillLayout(Orientation.HORIZONTAL));
   
    Button btnBuy = new Button("Buy");
    btnBuy.addListener(Events.Select, new Listener<ButtonEvent>() {
      public void handleEvent(ButtonEvent e) {
        OrderWindow orderWindow = new OrderWindow(OrderWindow.BUY_ORDER, customer.getCustomerName()null);
        orderWindow.show();
      }
    });
View Full Code Here

      }
    });
    layoutContainer.add(btnBuy);
   
    Button btnSell = new Button("Sell");
    btnSell.addListener(Events.Select, new Listener<ButtonEvent>() {
      public void handleEvent(ButtonEvent e) {
        OrderWindow orderWindow = new OrderWindow(OrderWindow.SELL_ORDER, customer.getCustomerName(), getSelectedHolding());
        orderWindow.show();
      }
View Full Code Here

    });
    layoutContainer.add(btnSell);
   
    Button btnExit = new Button("Exit");
    btnExit.addListener(Events.Select, new Listener<ButtonEvent>() {
      public void handleEvent(ButtonEvent e) {
        CustomerWindow.this.showWindow(false);
      }
    });
    layoutContainer.add(btnExit);
View Full Code Here

    Button btnAsTrader = new Button("Trader");
    horizontalPanel.add(btnAsTrader);

    Button btnSettings = new Button("...");
    btnSettings.addListener(Events.Select, new Listener<ButtonEvent>() {
      public void handleEvent(ButtonEvent e) {
        showPropertiesDialog();
      }
    });
    horizontalPanel.add(btnSettings);
View Full Code Here

  }
 
  private final void addButton(String id, String caption, LayoutContainer panel, LayoutData layoutData, boolean toggle, String tooltip) {
    Button btn = toggle ? new ToggleButton(caption) : new KeyButton(caption);
    btn.setId(id);
    btn.addListener(Events.Select, this);   
    btn.setToolTip(tooltip);
    panel.add(btn, layoutData);
  }
 
  private final LayoutContainer createButtonsPanel() {
View Full Code Here

  private final Button addIconButton(String icon, LayoutContainer panel, LayoutData layoutData, String tooltip) {
    Button btn = new Button();
    btn.setIconStyle(icon);
    btn.setId(icon);
    btn.setToolTip(tooltip);
    btn.addListener(Events.Select, this);
    panel.add(btn, layoutData);
    return btn;
  }
 
  boolean isFilterOnRight() {
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.