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

Examples of com.extjs.gxt.ui.client.widget.Header


      panel = (ContentPanel) widget;
    }

    List<Widget> widgets = new ArrayList<Widget>();

    Header header = panel.getHeader();
    for (int i = 0, len = header.getTools().size(); i < len; i++) {
      widgets.add(header.getTool(i));
    }

    if (panel.getTopComponent() != null) {
      widgets.add(panel.getTopComponent());
    }
View Full Code Here


  @Override
  public void onTab(Component component, PreviewEvent pe) {
    if (!isManaged()) return;
    pe.stopEvent();
    Header head = (Header)component.getParent().getParent();
    int index = head.indexOf(component);
    if (index == head.getToolCount() - 1) {
      stepInto(head.getParent(), pe, true);
      return;
    }
    super.onTab(component, pe);
  }
View Full Code Here

    private boolean missingList;

    public AreaModule(String id, String path, Element divElement, String moduleType, MainModule mainModule) {
        super(id, path, divElement, mainModule);
        hasDragDrop = false;
        head = new Header();

        this.mockupStyle = DOM.getElementAttribute(divElement, "mockupStyle");
        this.missingList = "true".equals(DOM.getElementAttribute(divElement, "missingList"));

        add(head);
View Full Code Here

        super(id, path, divElement, mainModule);

        hasDragDrop = !"false".equals(DOM.getElementAttribute(divElement, "dragdrop"));

        if (header) {
            head = new Header();
            add(head);
            setHeaderText(Messages.get("label.content") + " : " + path.substring(path.lastIndexOf('/') + 1));
            head.addStyleName("x-panel-header");
            head.addStyleName("x-panel-header-simplemodule");
            setBorders(false);
View Full Code Here

*/
public class ListModule extends SimpleModule {

    public ListModule(String id, String path, Element divElement, MainModule mainModule) {
        super(id, path, divElement, mainModule);
        head = new Header();
        add(head);

        if (path.contains("/")) {
            head.setText(Messages.get("label.list") + " : " + path.substring(path.lastIndexOf('/') + 1));
        } else {
View Full Code Here

    public BindedModule(String id, String path, Element divElement, final MainModule mainModule) {
        super(id, path, divElement, mainModule, false);

        final HorizontalPanel leftWidgetPanel = new HorizontalPanel();

        head = new Header() {
            @Override
            protected void onRender(Element target, int index) {
                super.onRender(target, index);
                adopt(leftWidgetPanel);
                leftWidgetPanel.addStyleName("x-panel-toolbar");
View Full Code Here

  @Override
  public void onTab(Component component, PreviewEvent pe) {
    if (!isManaged()) return;
    pe.stopEvent();
    Header head = (Header)component.getParent().getParent();
    int index = head.indexOf(component);
    if (index == head.getToolCount() - 1) {
      stepInto(head.getParent(), pe, true);
      return;
    }
    super.onTab(component, pe);
  }
View Full Code Here

      panel = (ContentPanel) widget;
    }

    List<Widget> widgets = new ArrayList<Widget>();

    Header header = panel.getHeader();
    for (int i = 0, len = header.getTools().size(); i < len; i++) {
      widgets.add(header.getTool(i));
    }

    if (panel.getTopComponent() != null) {
      widgets.add(panel.getTopComponent());
    }
View Full Code Here

  @Override
  public void onTab(Component component, PreviewEvent pe) {
    if (!isManaged()) return;
    pe.stopEvent();
    Header head = (Header)component.getParent().getParent();
    int index = head.indexOf(component);
    if (index == head.getToolCount() - 1) {
      stepInto(head.getParent(), pe, true);
      return;
    }
    super.onTab(component, pe);
  }
View Full Code Here

      panel = (ContentPanel) widget;
    }

    List<Widget> widgets = new ArrayList<Widget>();

    Header header = panel.getHeader();
    for (int i = 0, len = header.getTools().size(); i < len; i++) {
      widgets.add(header.getTool(i));
    }

    if (panel.getTopComponent() != null) {
      widgets.add(panel.getTopComponent());
    }
View Full Code Here

TOP

Related Classes of com.extjs.gxt.ui.client.widget.Header

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.