Examples of HtmlTable


Examples of com.google.gwt.widgetideas.table.client.overrides.HTMLTable

  protected abstract Object[] createTableAndRenderer();

  protected void doTest(TableModel<Object> model, TestCallback callback) {
    delayTestFinish(TIME_OUT);
    Object[] local = createTableAndRenderer();
    HTMLTable table = (HTMLTable) local[0];
    TableBulkRenderer renderer = (TableBulkRenderer) local[1];
    callback.table = table;
    renderer.renderRows(model, callback);
  }
View Full Code Here

Examples of fitnesse.testsystems.slim.HtmlTable

    NodeList rows = new NodeList();
    rows.add(tableHeader);
    rows.add(tableRow);
    TableTag tableTag = new TableTag();
    tableTag.setChildren(rows);
      List<Assertion> list = new QueryTable(new HtmlTable(tableTag), "id", new SlimTestContextImpl()).getAssertions();
      return list.get(0);
    }
View Full Code Here

Examples of net.thucydides.core.pages.components.HtmlTable

        driver.quit();
    }

    @Test
    public void should_read_table_headings() {
        HtmlTable table = new HtmlTable(page.clients);
        List<String> tableHeadings = table.getHeadings();
        assertThat(tableHeadings.toString(), is("[First Name, Last Name, Favorite Colour]"));
    }
View Full Code Here

Examples of org.gwt.mosaic.override.client.HTMLTable

        return new int[0];
      }

      // We need at least one cell to do any calculations
      int columnCount = info.columnCount;
      HTMLTable table = info.table;
      if (!table.isAttached() || table.getRowCount() == 0 || columnCount < 1) {
        return new int[0];
      }

      // Determine the width of each column
      int[] idealWidths = new int[columnCount];
View Full Code Here

Examples of org.jmanage.util.display.HtmlTable

* @author  Rakesh Kalra
*/
public class HtmlTabularDataFormat extends TabularDataFormat {

    protected Table getTable() {
        return new HtmlTable();
    }
View Full Code Here

Examples of pt.ist.fenixWebFramework.renderers.components.HtmlTable

    }

    abstract protected void draw(DegreeCurricularPlan degreeCurricularPlan, HtmlTable createMainTable);

    protected HtmlTable createMainTable(final HtmlContainer container) {
        final HtmlTable main = new HtmlTable();
        container.addChild(main);
        main.setClasses(getDegreeCurricularPlanClass());
        return main;
    }
View Full Code Here

Examples of pt.ist.fenixWebFramework.renderers.components.HtmlTable

            list.add(scope.getDegreeModuleScopeCurricularCourseScope());
        }

        private void generateBranch(HtmlBlockContainer container, final Branch branch, final Set<DegreeModuleScope> scopes,
                int depth) {
            final HtmlTable groupTable = new HtmlTable();
            container.addChild(groupTable);
            groupTable.setClasses(getTablesClasses());
            groupTable.setStyle("width: " + (getInitialWidth() - depth) + "em; margin-left: " + depth + "em;");

            final HtmlTableRow htmlTableRow = groupTable.createRow();
            htmlTableRow.setClasses(getGroupRowClasses());
            String name = branch.getName().trim();
            if (name.length() == 0) {
                name = "Tronco Comum";
            }
View Full Code Here

Examples of pt.ist.fenixWebFramework.renderers.components.HtmlTable

        container.addChild(hiddenExtraCurricularEnrollments);

        generateGroup(container, getBolonhaStudentEnrollmentBean().getStudentCurricularPlan(), getBolonhaStudentEnrollmentBean()
                .getRootStudentCurriculumGroupBean(), getBolonhaStudentEnrollmentBean().getExecutionPeriod(), 0);

        HtmlTable groupTable = createGroupTable(container, 0);

        HtmlTableRow htmlTableRow = groupTable.createRow();
        htmlTableRow.setClasses(getRenderer().getGroupRowClasses());
        htmlTableRow.createCell().setBody(new HtmlText("Other Curricular Units", false));
        HtmlTableCell cell = htmlTableRow.createCell();
        cell.setClasses("aright");

        HtmlCheckBox checkBox = new HtmlCheckBox(false);
        final String name = "degreeModuleToEnrolCheckBox";
        checkBox.setName(name);
        checkBox.setUserValue("true");
        checkBox.setChecked(true);

        cell.setBody(checkBox);
        groupTable = createCoursesTable(container, 0);
        NoCourseGroupCurriculumGroup group =
                getBolonhaStudentEnrollmentBean().getStudentCurricularPlan().getNoCourseGroupCurriculumGroup(
                        NoCourseGroupCurriculumGroupType.STANDALONE);
        HashSet<CurricularCourse> set = new HashSet<CurricularCourse>();
        ErasmusBolonhaStudentEnrollmentBean erasmusBolonhaStudentEnrollmentBean =
                (ErasmusBolonhaStudentEnrollmentBean) getBolonhaStudentEnrollmentBean();
        set.addAll(erasmusBolonhaStudentEnrollmentBean.getCandidacy().getCurricularCoursesSet());
        for (Enrolment enrolment : group.getEnrolments()) {
            set.add(enrolment.getCurricularCourse());
        }

        for (CurricularCourse curricularCourse : set) {
            if (erasmusBolonhaStudentEnrollmentBean.getStudentCurricularPlan().getEnrolmentByCurricularCourseAndExecutionPeriod(
                    curricularCourse, erasmusBolonhaStudentEnrollmentBean.getExecutionPeriod()) != null) {
                if (!group.hasEnrolmentWithEnroledState(curricularCourse,
                        erasmusBolonhaStudentEnrollmentBean.getExecutionPeriod())) {

                    continue;
                }
            }

            if (!isContextValid(curricularCourse)) {
                continue;
            }

            htmlTableRow = groupTable.createRow();
            HtmlTableCell cellName = htmlTableRow.createCell();
            cellName.setClasses(getRenderer().getCurricularCourseToEnrolNameClasses());

            String degreeName = curricularCourse.getName();
View Full Code Here

Examples of pt.ist.fenixWebFramework.renderers.components.HtmlTable

        MetaObject listMetaObject = MetaObjectFactory.createObject(objects, schema);

        PresentationContext context = getContext().createSubContext(listMetaObject);
        context.setRenderMode(RenderMode.OUTPUT);

        HtmlTable table = (HtmlTable) RenderKit.getInstance().renderUsing(getRenderer(), context, objects, objects.getClass());
        return decorateTable(table, objects);
    }
View Full Code Here

Examples of pt.ist.fenixWebFramework.renderers.components.HtmlTable

            generateBranchScopes(container, scopes, depth + getWidthDecreasePerLevel());
        }

        private void generateBranchScopes(final HtmlBlockContainer container, final Set<DegreeModuleScope> scopes, int depth) {

            final HtmlTable table = new HtmlTable();
            container.addChild(table);
            table.setClasses(getTablesClasses());
            table.setStyle("width: " + (getInitialWidth() - depth) + "em; margin-left: " + depth + "em;");

            for (final DegreeModuleScope scope : scopes) {
                final HtmlTableRow htmlTableRow = table.createRow();
                HtmlTableCell cellName = htmlTableRow.createCell();
                cellName.setClasses(getCurricularCourseNameClasses());
                cellName.setBody(new HtmlText(scope.getCurricularCourse().getName()));

                // Year
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.