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

Examples of com.extjs.gxt.ui.client.widget.button.Button


      area = new TextArea();
      //area.setWidth("500");
      //area.setHeight("500");
      add(area);
      buttonBar = new ButtonBar();
      Button clearButton = new Button("Clear");
      clearButton.addSelectionListener(new SelectionListener<ButtonEvent>()
    {
        public void componentSelected(ButtonEvent ce)
        {
          area.setText("");
        }
View Full Code Here


    fieldSet.add(msgField);
   
    add(fieldSet)
   
   
    closeButton = new Button(JabberApp.getConstants().close());
    closeButton.addSelectionListener(new SelectionListener<ButtonEvent>()
    {
      public void componentSelected(ButtonEvent ce)
      {
        jidField.setValue("");
        serviceField.setValue(serviceDisco.getGateWays().get(0));
        close();
      }
    });
   
    addButton = new Button(JabberApp.getConstants().add());
    addButton.addSelectionListener(new SelectionListener<ButtonEvent>()
    {
      public void componentSelected(ButtonEvent ce)
      {
        onAdd();
      }
    });
   
    searchButton = new Button(JabberApp.getConstants().search());
    searchButton.addSelectionListener(new SelectionListener<ButtonEvent>()
    {
      public void componentSelected(ButtonEvent ce)
      {
        JabberApp.instance().doSearchUser();
View Full Code Here

        MessageBox.confirm("Confirm","Do you want to quit this room when you close the window?", new Listener<WindowEvent>()
        {
          public void handleEvent(WindowEvent be)
          {
            Dialog dialog = (Dialog) be.component;
            Button btn = dialog.getButtonPressed();
            if(btn.getItemId().equals(Dialog.YES))
            {
              room.logout();
              setCloseAction(CloseAction.CLOSE);
              unRegisterChatWindow(jid);
              close();
View Full Code Here

    });
    TableData data = new TableData();
    data.setWidth("100%");
    inputContainer.addInputItem(new AdapterToolItem(input), data);
   
    emoticonButton = new Button();
    emoticonButton.setIconStyle("emoticon_button");
    emoticonButton.setStyleName("x-btn-icon x-btn-focus");
    emoticonButton.setToolTip("Insert a emoticon");
    emoticonButton.addSelectionListener(new SelectionListener<ButtonEvent>()
    {
      public void componentSelected(ButtonEvent ce)
      {
        showEmoticonPalette(emoticonButton.getElement().getAbsoluteLeft(),emoticonButton.getElement().getAbsoluteTop());
      }
     
    });
   
    data = new TableData();
    data.setWidth("30px");
    inputContainer.addInputItem(new AdapterToolItem(emoticonButton), data);
   
    sendButton = new Button(JabberApp.getConstants().send());
    sendButton.addSelectionListener(new SelectionListener<ButtonEvent>()
    {
      public void componentSelected(ButtonEvent ce)
      {
        doSend()
View Full Code Here

    statusEditor = new TextBox();
    statusEditor.setVisible(false);
    statusEditor.setWidth("100%");

    statusButton = new Button();
    statusButton.setMenu(statusMenu);
    statusButton.setStyleName("Status-Menu-Button");
   
    //statusMenuLabel = new Label();
    //statusMenuLabel.setStyleName("status_menu_label");
View Full Code Here

        MessageBox.confirm("Confirm",msg, new Listener<WindowEvent>()
        {
          public void handleEvent(WindowEvent be)
          {
            Dialog dialog = (Dialog) be.component;
            Button btn = dialog.getButtonPressed();
            if(btn.getItemId().equals(Dialog.YES))
              JabberApp.instance().removeUser(XmppID.parseId(jid));
             
          }

        });
View Full Code Here

      advancedDisclosure.setAnimationEnabled(true);
      advancedDisclosure.ensureDebugId("cwDisclosurePanel");
      advancedDisclosure.setContent(advancedOptions);
      layout.setWidget(2, 0, advancedDisclosure);
     
      Button loginButton = new Button(constants.login());
     
      layout.setWidget(3, 0,loginButton);
      loginButton.addSelectionListener(new SelectionListener<ButtonEvent>()
      {
      public void componentSelected(ButtonEvent ce)
      {
        String user = userBox.getText();
          String pass = passBox.getText();
View Full Code Here

    main.add(searchPanel,new RowData(.4, 1));
    main.add(resultPanel,new RowData(.6, 1));
   
    add(main);
   
    Button closeButton = new Button(JabberApp.getConstants().close());
    closeButton.addSelectionListener(new SelectionListener<ButtonEvent>()
    {
      public void componentSelected(ButtonEvent ce)
      {
        close();
      }
View Full Code Here

      resultPanel.add(resultGrid);
     
     
    
     
      Button addButton = new Button(JabberApp.getConstants().add());
      addButton.addSelectionListener(new SelectionListener<ButtonEvent>()
      {
      public void componentSelected(ButtonEvent ce)
      {
        if(currentJid == null)
          return;
          if(currentJid != null&&!currentJid.isEmpty())
            JabberApp.instance().doAddUser(XmppID.parseId(currentJid));
      }
      });
     
      Button infoButton = new Button(JabberApp.getConstants().userInfo());
      infoButton.addSelectionListener(new SelectionListener<ButtonEvent>()
      {
      public void componentSelected(ButtonEvent ce)
      {
        if(currentJid == null)
          return;
View Full Code Here

    searchForm = new HtmlContainer();
    main.add(searchForm);
     
    searchPanel.add(main);
   
    searchButton = new Button(JabberApp.getConstants().search());
    searchButton.addSelectionListener(new SelectionListener<ButtonEvent>()
    {
      public void componentSelected(ButtonEvent be)
      {
        searchUser();
View Full Code Here

TOP

Related Classes of com.extjs.gxt.ui.client.widget.button.Button

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.