Java源码示例:javax.faces.component.html.HtmlDataTable

示例1
public void setRosterDataTable(HtmlDataTable rosterDataTable) {
	Set usedCategories = getUsedCategories();

	if (rosterDataTable.findComponent(CAT_COLUMN_PREFIX + "0") == null) {
		Application app = FacesContext.getCurrentInstance().getApplication();

		// Add columns for each category. Be sure to create unique IDs
		// for all child components.
		int colpos = 0;
		for (Iterator iter = usedCategories.iterator(); iter.hasNext(); colpos++) {
			String category = (String)iter.next();
			String categoryName = getCategoryName(category);

			UIColumn col = new UIColumn();
			col.setId(CAT_COLUMN_PREFIX + colpos);

               HtmlCommandSortHeader sortHeader = new HtmlCommandSortHeader();
               sortHeader.setId(CAT_COLUMN_PREFIX + "sorthdr_" + colpos);
               sortHeader.setRendererType("org.apache.myfaces.SortHeader");
               sortHeader.setArrow(true);
               sortHeader.setColumnName(category);
               //sortHeader.setActionListener(app.createMethodBinding("#{rosterBean.sort}", new Class[] {ActionEvent.class}));

			HtmlOutputText headerText = new HtmlOutputText();
			headerText.setId(CAT_COLUMN_PREFIX + "hdr_" + colpos);
			headerText.setValue(categoryName);

               sortHeader.getChildren().add(headerText);
               col.setHeader(sortHeader);

			HtmlOutputText contents = new HtmlOutputText();
			contents.setId(CAT_COLUMN_PREFIX + "cell_" + colpos);
			contents.setValueBinding("value",
				app.createValueBinding("#{enrollment.categoryToSectionMap['" + category + "'].title}"));
			col.getChildren().add(contents);
			rosterDataTable.getChildren().add(col);
		}
	}
}
 
示例2
public void setRosterDataTable(HtmlDataTable rosterDataTable) {
	Set usedCategories = getUsedCategories();

	if (rosterDataTable.findComponent(CAT_COLUMN_PREFIX + "0") == null) {
		Application app = FacesContext.getCurrentInstance().getApplication();

		// Add columns for each category. Be sure to create unique IDs
		// for all child components.
		int colpos = 0;
		for (Iterator iter = usedCategories.iterator(); iter.hasNext(); colpos++) {
			String category = (String)iter.next();
			String categoryName = getCategoryName(category);

			UIColumn col = new UIColumn();
			col.setId(CAT_COLUMN_PREFIX + colpos);

               HtmlCommandSortHeader sortHeader = new HtmlCommandSortHeader();
               sortHeader.setId(CAT_COLUMN_PREFIX + "sorthdr_" + colpos);
               sortHeader.setRendererType("org.apache.myfaces.SortHeader");
               sortHeader.setArrow(true);
               sortHeader.setColumnName(category);
               //sortHeader.setActionListener(app.createMethodBinding("#{rosterBean.sort}", new Class[] {ActionEvent.class}));

			HtmlOutputText headerText = new HtmlOutputText();
			headerText.setId(CAT_COLUMN_PREFIX + "hdr_" + colpos);
			headerText.setValue(categoryName);

               sortHeader.getChildren().add(headerText);
               col.setHeader(sortHeader);

			HtmlOutputText contents = new HtmlOutputText();
			contents.setId(CAT_COLUMN_PREFIX + "cell_" + colpos);
			contents.setValueBinding("value",
				app.createValueBinding("#{enrollment.categoryToSectionMap['" + category + "'].title}"));
			col.getChildren().add(contents);
			rosterDataTable.getChildren().add(col);
		}
	}
}
 
示例3
public void setDataTable(HtmlDataTable dataTable) {
	this.dataTable = dataTable;
}
 
示例4
public HtmlDataTable getDataTable() {
	return dataTable;
}
 
示例5
public void setDataTable(HtmlDataTable dataTable) {
	this.dataTable = dataTable;
}
 
示例6
public HtmlDataTable getDataTable() {
	return dataTable;
}
 
示例7
public void setDataTable(HtmlDataTable dataTable) {
    this.dataTable = dataTable;
}
 
示例8
public HtmlDataTable getDataTable() {
    return dataTable;
}
 
示例9
public void setDataTable(HtmlDataTable dataTable) {
    this.dataTable = dataTable;
}
 
示例10
public HtmlDataTable getDataTable() {
    return dataTable;
}
 
示例11
public HtmlDataTable getRosterDataTable() {
	return null;
}
 
示例12
public HtmlDataTable getRosterDataTable() {
	return null;
}
 
示例13
public HtmlDataTable getDataTable1() { return dataTable1; } 
示例14
public void setDataTable1(HtmlDataTable hdt) { dataTable1 = hdt; } 
示例15
public HtmlDataTable getDataTable1() { return dataTable1; } 
示例16
public void setDataTable1(HtmlDataTable hdt) { dataTable1 = hdt; } 
示例17
public HtmlDataTable getDataTable1() { return dataTable1; } 
示例18
public void setDataTable1(HtmlDataTable hdt) { dataTable1 = hdt; } 
示例19
public HtmlDataTable getDataTable1() { return dataTable1; } 
示例20
public void setDataTable1(HtmlDataTable hdt) { dataTable1 = hdt; } 
示例21
public HtmlDataTable getDataTable() { return dataTable; } 
示例22
public void setDataTable(HtmlDataTable hdt) { dataTable = hdt; } 
示例23
public HtmlDataTable getDataTable() { return dataTable; } 
示例24
public void setDataTable(HtmlDataTable hdt) { dataTable = hdt; } 
示例25
public HtmlDataTable getDataTable() { return dataTable; } 
示例26
public void setDataTable(HtmlDataTable hdt) { dataTable = hdt; } 
示例27
public HtmlDataTable getDtabEngineLog() { return dtabEngineLog; } 
示例28
public void setDtabEngineLog(HtmlDataTable hdt) { dtabEngineLog = hdt; } 
示例29
public HtmlDataTable getDtabResourceLog() { return dtabResourceLog; } 
示例30
public void setDtabResourceLog(HtmlDataTable hdt) { dtabResourceLog = hdt; }