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

Examples of com.extjs.gxt.ui.client.widget.toolbar.AdapterToolItem


          doSend();
      }
    });
    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()
      }
    });
   
    data = new TableData();
    data.setWidth("30px");
    inputContainer.addInputItem(new AdapterToolItem(sendButton), data);
       
    return inputContainer;
  }
View Full Code Here


          doSend();
      }
    });
    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()
      }
    });
   
    data = new TableData();
    data.setWidth("30px");
    inputContainer.addInputItem(new AdapterToolItem(sendButton), data);
       
    return inputContainer;
  }
View Full Code Here

    displayText.setStyleName("my-paging-display");

    toolBar.add(first);
    toolBar.add(prev);
    toolBar.add(new SeparatorToolItem());
    toolBar.add(new AdapterToolItem(beforePage));
    toolBar.add(new AdapterToolItem(pageText));
    toolBar.add(new AdapterToolItem(afterText));
    toolBar.add(new SeparatorToolItem());
    toolBar.add(next);
    toolBar.add(last);
    toolBar.add(new SeparatorToolItem());
    toolBar.add(refresh);

    for (ToolItem item : items) {
      toolBar.add(item);
    }

    toolBar.add(new FillToolItem());
    toolBar.add(new AdapterToolItem(displayText));

    toolBar.render(target, index);
    setElement(toolBar.getElement());

    if (renderEvent != null) {
View Full Code Here

    displayText.setStyleName("my-paging-display");

    toolBar.add(first);
    toolBar.add(prev);
    toolBar.add(new SeparatorToolItem());
    toolBar.add(new AdapterToolItem(beforePage));
    toolBar.add(new AdapterToolItem(pageText));
    toolBar.add(new AdapterToolItem(afterText));
    toolBar.add(new SeparatorToolItem());
    toolBar.add(next);
    toolBar.add(last);
    toolBar.add(new SeparatorToolItem());
    toolBar.add(refresh);
    toolBar.add(new FillToolItem());
    toolBar.add(new AdapterToolItem(displayText));

    toolBar.render(target, index);
    setElement(toolBar.getElement());

    if (XDOM.isVisibleBox) {
View Full Code Here

    displayText.setStyleName("my-paging-display");

    toolBar.add(first);
    toolBar.add(prev);
    toolBar.add(new SeparatorToolItem());
    toolBar.add(new AdapterToolItem(beforePage));
    toolBar.add(new AdapterToolItem(pageText));
    toolBar.add(new AdapterToolItem(afterText));
    toolBar.add(new SeparatorToolItem());
    toolBar.add(next);
    toolBar.add(last);
    toolBar.add(new SeparatorToolItem());
    toolBar.add(refresh);
   
    for (ToolItem item : items) {
      toolBar.add(item);
    }
   
    toolBar.add(new FillToolItem());
    toolBar.add(new AdapterToolItem(displayText));

    toolBar.render(target, index);
    setElement(toolBar.getElement());

    if (renderEvent != null) {
View Full Code Here

TOP

Related Classes of com.extjs.gxt.ui.client.widget.toolbar.AdapterToolItem

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.