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

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


  private void addInsert(int col, int row) {
    insertCol = col;
    insertRow = row;
   
    LayoutContainer lc = getItem(insertCol);

    dummy.removeFromParent();
    dummy.insertInto(lc.el().dom, row);
  }
View Full Code Here


    return 0;
  }

  private int getRow(int col, int y) {
    y += XDOM.getBodyScrollTop();
    LayoutContainer con = getItem(col);
    int count = con.getItemCount();

    for (int i = 0; i < count; i++) {
      Component c = con.getItem(i);
      int b = c.getAbsoluteTop();
      int t = b + c.getOffsetHeight();

      if (y < t) {
        return i;
View Full Code Here

    initListeners();

    viewport = new Viewport();
    viewport.setLayout(new RowLayout());

    desktop = new LayoutContainer() {
      @Override
      protected void onRender(Element parent, int index) {
        super.onRender(parent, index);
        Element el = DomQuery.selectNode("#x-desktop");
        if (el == null) {
View Full Code Here

  private final FieldSet createPagePanel() {
    FieldSet pagePanel = new FieldSet();
    pagePanel.setHeading(constants.paper());

    LayoutContainer fields = new LayoutContainer();   
    TableLayout rLayout = new TableLayout(2);
    fields.setLayout(rLayout);

    pagePanel.add(fields);
   
    paperFormat = addComboBox(fields, constants.paperFormat());   
    fillPaperFormats();
View Full Code Here

  private final FieldSet createOutputPanel() {
    FieldSet outputPanel = new FieldSet();
    outputPanel.setHeading(constants.design());
   
    LayoutContainer fields = new LayoutContainer();   
    TableLayout rLayout = new TableLayout(1);
    fields.setLayout(rLayout);

    outputPanel.add(fields);
   
    addTitlePanel(fields);
//    printTitle = addCheckBox(fields, constants.printTitle());
View Full Code Here

    treePanel.add(lc);
    return lc;
  }
  private final LayoutContainer arrangeCaptionTreeAndButtons(LayoutContainer headerButtons, String caption,
      LayoutContainer treePanel, LayoutContainer eButtons, LayoutContainer buttonRow, LayoutContainer regex) {
    LayoutContainer content = new LayoutContainer();
    content.setHeight(365);
    content.setLayout(new RowLayout());
    RowData layoutData = new RowData();
    layoutData.setMargins(new Margins(5, 0, 0, 0));
   
    if (headerButtons != null) {
      content.add(headerButtons);
    }
    content.add(new Label(caption));
    content.add(treePanel, layoutData);
    if (eButtons != null) {
      content.add(eButtons, layoutData);
    }
    content.add(buttonRow, layoutData);
    if (regex != null) {
      content.add(regex, layoutData);
    } else {
      LayoutContainer panel = new LayoutContainer();   
      panel.setLayout(new RowLayout(Orientation.HORIZONTAL));
      panel.setSize(230, 50); //have to hard code to make it visible in FF...
      RowData lData = new RowData();
      lData.setMargins(new Margins(5, 5, 0, 0));
      LabelField l = new LabelField();
      l.setText(constants.shiftCtrlHint());
      panel.add(l, lData);
      content.add(panel, layoutData);
    }

    return content;
  }
View Full Code Here

    btn.setToolTip(tooltip);
    panel.add(btn, layoutData);
  }
 
  private final LayoutContainer createButtonsPanel() {
    LayoutContainer buttons = new LayoutContainer();
    LayoutContainer panel = new LayoutContainer();   
    panel.setLayout(new RowLayout(Orientation.HORIZONTAL));
    panel.setSize(25, 22); //have to hard code to make it visible in FF...   
   
    buttons.setAutoHeight(true);
    buttons.setLayout(new RowLayout());
    RowData data = new RowData();
    data.setMargins(new Margins(0, 0, 25, 6));
View Full Code Here

    panel.setSize(386, -1);
    panel.setButtonAlign(HorizontalAlignment.RIGHT);
    panel.setLayout(new FlowLayout());
   
    // Checkboxes for public/editable:
    LayoutContainer rights = new LayoutContainer();   
    TableLayout rLayout = new TableLayout(2);
    rights.setLayout(rLayout);

    languageBox = new LanguageBox();
    languageBox.addSelectionChangedListener(new SelectionChangedListener<SimpleComboValue<LanguageData>>() {
      public void selectionChanged(
          SelectionChangedEvent<SimpleComboValue<LanguageData>> se) {
        directLink.setValue(getLinkString());
      }
    });
   
    themeBox = new ThemeBox();
    themeBox.addSelectionChangedListener(new SelectionChangedListener<SimpleComboValue<ThemeData>>() {
      public void selectionChanged(
          SelectionChangedEvent<SimpleComboValue<ThemeData>> se) {
        directLink.setValue(getLinkString());
      }
    });
   
    HorizontalPanel hhp = new HorizontalPanel();
    hhp.setHeight(20);
    rights.add(hhp);
    HorizontalPanel hhhp = new HorizontalPanel();
    rights.add(hhhp);
   
    HorizontalPanel hp = new HorizontalPanel();
    hp.setVerticalAlign(VerticalAlignment.TOP);
    languageBox.setHideLabel(true);
    LabelField labelL = new LabelField(constants.language() + ":");
    labelL.setPixelSize(150, -1);
    languageBox.setPixelSize(220, -1);
    hp.add(labelL);
    hp.add(languageBox);
       
    TableData ldata = new TableData();
    ldata.setColspan(2);
    rights.add(hp, ldata);
   
    HorizontalPanel hp2 = new HorizontalPanel();
    hp.setVerticalAlign(VerticalAlignment.TOP);
    themeBox.setHideLabel(true);
    LabelField labelL2 = new LabelField(constants.theme() + ":");
    labelL2.setPixelSize(150, -1);
    themeBox.setPixelSize(220, -1);
    hp2.add(labelL2);
    hp2.add(themeBox);
       
    TableData ldata2 = new TableData();
    ldata2.setColspan(2);
    rights.add(hp2, ldata2);

    hideNavigator = new CheckBox();
    hideNavigator.setBoxLabel(constants.hideNavigator());   
    hideViewTabs = new CheckBox();
    hideViewTabs.setBoxLabel(constants.hideViewTabs());
    autoLogin = new CheckBox();
    autoLogin.setBoxLabel(constants.addPassword());
    autoUser = new CheckBox();
    autoUser.setBoxLabel(constants.addUserFlag());
    hideTitleBar = new CheckBox();
    hideTitleBar.setBoxLabel(constants.hideTitleBar());
    hideToolBar = new CheckBox();
    hideToolBar.setBoxLabel(constants.hideToolBar());
    hideSave = new CheckBox();
    hideSave.setBoxLabel(constants.hideSave());
    hideFilter = new CheckBox();
    hideFilter.setBoxLabel(constants.hideFilter());
    hideStaticFilter = new CheckBox();
    hideStaticFilter.setBoxLabel(constants.hideStaticFilter());
    hideHorizontalAxis = new CheckBox();
    hideHorizontalAxis.setBoxLabel(constants.hideHorizontalAxis());
    hideVerticalAxis = new CheckBox();
    hideVerticalAxis.setBoxLabel(constants.hideVerticalAxis());
   
    Listener <BaseEvent> listener = new Listener<BaseEvent>() {
      public void handleEvent(BaseEvent be) {
        directLink.setValue(getLinkString());
      }
    };
    hideNavigator.addListener(Events.Change, listener);
    hideViewTabs.addListener(Events.Change, listener);
    autoLogin.addListener(Events.Change, listener);
    autoUser.addListener(Events.Change, listener);
    hideTitleBar.addListener(Events.Change, listener);
    hideToolBar.addListener(Events.Change, listener);
    hideSave.addListener(Events.Change, listener);
    hideFilter.addListener(Events.Change, listener);
    hideStaticFilter.addListener(Events.Change, listener);
    hideHorizontalAxis.addListener(Events.Change, listener);
    hideVerticalAxis.addListener(Events.Change, listener);
   
    rights.add(autoUser);
    rights.add(autoLogin);   
    rights.add(hideNavigator);
    rights.add(hideViewTabs);
    rights.add(hideTitleBar);
    rights.add(new LabelField());
    rights.add(hideToolBar);
    rights.add(hideSave);   
    rights.add(hideFilter);
    rights.add(hideStaticFilter);
    rights.add(hideHorizontalAxis);
    rights.add(hideVerticalAxis);
   
    hideNavigator.setValue(true);
    hideViewTabs.setValue(true);
    autoLogin.setValue(true);
    autoUser.setValue(true);
View Full Code Here

//  private final boolean isActive() {
//    return filterPanel.isEnabled();
//  }

  private final LayoutContainer createLocalFilter() {
    LayoutContainer panel = new LayoutContainer();
   
    panel.setSize(570, 365);
    panel.setLayout(new RowLayout(Orientation.HORIZONTAL));
   
    //source tree:
    panel.add(createSourcePanel());
   
    //buttons:
    RowData btnPanelData = new RowData();
    btnPanelData.setMargins(new Margins(0, 0, 0, 5));
    panel.add(createButtonsPanel(), btnPanelData);
   
    //target tree:
    RowData data = new RowData();
    data.setMargins(new Margins(0, 0, 0, 10));
    LayoutContainer targetTree = createTargetPanel();
    panel.add(targetTree, data);
   
    return panel;
  }
View Full Code Here

   
    return panel;
  }
  private final LayoutContainer createSourcePanel() {
    //tree panel:
    LayoutContainer treePanel = createTreePanel(300);   
    sourceHierarchyTree = new FullHierarchyTree(true);
    FastMSTree hTree = sourceHierarchyTree.getTree();
    treePanel.add(hTree);

    //buttons:
    LayoutContainer headerButtons = createHeaderButtons();
    LayoutContainer extendedButtonRow = createExtendedButtons();
    LayoutContainer levelButtonRow = createSelectionButtons();   
    LayoutContainer regexPanel = createRegexPanel();
   
    //all together
    LayoutContainer result = arrangeCaptionTreeAndButtons(headerButtons,
        constants.selectElementsIncludingOriginalHierarchy(), treePanel, extendedButtonRow, levelButtonRow, regexPanel);
   
    return result;
  }
View Full Code Here

TOP

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

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.