Examples of HTMLTableRowPanel


Examples of com.habitsoft.kiyaa.widgets.HTMLTableRowPanel

        addRow(viewFactory, styleName, null, test);
    }
    public void addRow(ViewFactory<ModelView<T>> viewFactory, String styleName, String label, Value<Boolean> test) {
        horizontal=true;
        final int row = series.size();
        final HTMLTableRowPanel rowPanel = addRowPanel(row, null, styleName==null?"ui-table-row":"ui-table-row "+styleName);
        //if(styleName != null) rowPanel.addStyleName(styleName);
        if(label != null) {
            final Label labelWidget = new Label(label);
            labelWidget.setStyleName("ui-row-label");
            rowPanel.add(labelWidget);
        }
        series.add(new Series(viewFactory, styleName, test, true, row));
    }
View Full Code Here

Examples of com.habitsoft.kiyaa.widgets.HTMLTableRowPanel

      if(horizontal) {
            for (Series column : series) {
                column.addItem(row, model, group.<Void>member("Table col "+row+" row "+column.position));
            }
      } else {
        HTMLTableRowPanel rowPanel = addRowPanel(row, model, "ui-table-row");
   
        for (Series column : series) {
          column.addItem(row, model, group.<Void>member("Table col "+column.position+" row "+row));
        }
           
        if(model == selectedModel) {
          if(selectedRow != -1) {
            showSelected(selectedRow, false);
          }
          selectedRow = row;
          showSelected(selectedRow, true);
        }
        if(rowPanels.size() == 1)
          checkEmpty(group);
        if(isAttached())
            rowPanel.onAttach();
      }
  }
View Full Code Here

Examples of com.habitsoft.kiyaa.widgets.HTMLTableRowPanel

        if(isAttached())
            rowPanel.onAttach();
      }
  }
    private HTMLTableRowPanel addRowPanel(int row, T model, String styleName) {
        HTMLTableRowPanel rowPanel = new HTMLTableRowPanel(table, row, styleName, selectable || clickable, hoverGroup);
        rowPanel.addContextMenuListener(contextMenuListener);
        rowPanels.add(row, rowPanel);
        maybeAssignStyle(row, rowPanel, model);
        // Passing clickable || selectable to HTMLTableRowPanel adds a hoverstylehandler for us ...
//        if(clickable || selectable)
//            rowPanel.addMouseListener(new HoverStyleHandler(rowPanel, hoverGroup));
View Full Code Here

Examples of com.habitsoft.kiyaa.widgets.HTMLTableRowPanel

    } else {
        rowPanels.remove(i);
       
        // Fix the row numbers for proceeding row panels
        for(int j=i; j < rowPanels.size(); j++) {
          HTMLTableRowPanel tableRowPanel = (HTMLTableRowPanel)rowPanels.get(j);
          tableRowPanel.setRow(j);
          // TODO Should we assign the style?  Need to know the model object for these rows
//              if(rowStyleHandler != null) {
//                  maybeAssignStyle(j, tableRowPanel,);
//              }
        }
View Full Code Here

Examples of com.habitsoft.kiyaa.widgets.HTMLTableRowPanel

      this.position = position;
    }
    public void hide() {
      if(visible) {
          if(horizontal) {
              HTMLTableRowPanel panel = rowPanels.get(position);
              panel.setVisible(false);
          } else {
                    DOM.setStyleAttribute(DOM.getChild(headings, position), "display", "none");
                    for(HTMLTableRowPanel rowPanel : rowPanels) {
                        Element cellElement = DOM.getChild(rowPanel.getElement(), position);
                        DOM.setStyleAttribute(cellElement, "display", "none");
View Full Code Here

Examples of com.habitsoft.kiyaa.widgets.HTMLTableRowPanel

      }
    }
    public void show() {
      if(!visible) {
          if(horizontal) {
                    HTMLTableRowPanel panel = rowPanels.get(position);
                    panel.setVisible(true);
          } else {
            DOM.setStyleAttribute(DOM.getChild(headings, position), "display", "");
            for(HTMLTableRowPanel rowPanel : rowPanels) {
              Element cellElement = DOM.getChild(rowPanel.getElement(), position);
              DOM.setStyleAttribute(cellElement, "display", "");
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.