本文整理汇总了Java中org.primefaces.model.SortMeta类的典型用法代码示例。如果您正苦于以下问题:Java SortMeta类的具体用法?Java SortMeta怎么用?Java SortMeta使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SortMeta类属于org.primefaces.model包,在下文中一共展示了SortMeta类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: buildSortOrder
import org.primefaces.model.SortMeta; //导入依赖的package包/类
public static List<SortMeta> buildSortOrder(String colPath, String colId, SortOrder sortOrder) {
List<SortMeta> results = new ArrayList<SortMeta>();
UIViewRoot viewRoot = FacesContext.getCurrentInstance().getViewRoot();
UIComponent column = viewRoot.findComponent(colPath);
if (column != null) {
SortMeta sm1 = new SortMeta();
sm1.setSortBy((UIColumn) column);
sm1.setSortField(colId);
sm1.setSortOrder(sortOrder);
results.add(sm1);
return results;
}
return null;
}
示例2: buildSortOrder
import org.primefaces.model.SortMeta; //导入依赖的package包/类
@Override
protected List<SortMeta> buildSortOrder() {
List<SortMeta> results = new ArrayList<SortMeta>();
UIViewRoot viewRoot = FacesContext.getCurrentInstance().getViewRoot();
UIComponent column = viewRoot.findComponent(":form:tabView:dtStudySubjects:colStudySubjectId");
SortMeta sm1 = new SortMeta();
sm1.setSortBy((UIColumn) column);
sm1.setSortField("colStudySubjectId");
sm1.setSortOrder(SortOrder.ASCENDING);
results.add(sm1);
return results;
}
示例3: buildSortOrder
import org.primefaces.model.SortMeta; //导入依赖的package包/类
@Override
protected List<SortMeta> buildSortOrder() {
List<SortMeta> results = new ArrayList<SortMeta>();
UIViewRoot viewRoot = FacesContext.getCurrentInstance().getViewRoot();
UIComponent column = viewRoot.findComponent(":form:tabView:dtSubjects:colStudySubjectId");
SortMeta sm1 = new SortMeta();
sm1.setSortBy((UIColumn) column);
sm1.setSortField("colStudySubjectId");
sm1.setSortOrder(SortOrder.ASCENDING);
results.add(sm1);
return results;
}
示例4: buildSortOrder
import org.primefaces.model.SortMeta; //导入依赖的package包/类
@Override
protected List<SortMeta> buildSortOrder() {
List<SortMeta> results = new ArrayList<SortMeta>();
UIViewRoot viewRoot = FacesContext.getCurrentInstance().getViewRoot();
UIComponent column = viewRoot.findComponent(":form:tabView:dtEntities:colSoftwareName");
SortMeta sm1 = new SortMeta();
sm1.setSortBy((UIColumn) column);
sm1.setSortField("colSoftwareName");
sm1.setSortOrder(SortOrder.ASCENDING);
results.add(sm1);
return results;
}
示例5: buildSortOrder
import org.primefaces.model.SortMeta; //导入依赖的package包/类
/**
* Need to build an initial sort order for data table multi sort
*/
@Override
protected List<SortMeta> buildSortOrder() {
List<SortMeta> results = new ArrayList<SortMeta>();
UIViewRoot viewRoot = FacesContext.getCurrentInstance().getViewRoot();
UIComponent column = viewRoot.findComponent(":form:tabView:dtEntities:colUserName");
SortMeta sm1 = new SortMeta();
sm1.setSortBy((UIColumn) column);
sm1.setSortField("colUserName");
sm1.setSortOrder(SortOrder.ASCENDING);
results.add(sm1);
return results;
}
示例6: buildSortOrder
import org.primefaces.model.SortMeta; //导入依赖的package包/类
@Override
protected List<SortMeta> buildSortOrder() {
List<SortMeta> results = new ArrayList<SortMeta>();
UIViewRoot viewRoot = FacesContext.getCurrentInstance().getViewRoot();
UIComponent column = viewRoot.findComponent(":form:tabView:dtEntities:colName");
SortMeta sm1 = new SortMeta();
sm1.setSortBy((UIColumn) column);
sm1.setSortField("colName");
sm1.setSortOrder(SortOrder.ASCENDING);
results.add(sm1);
return results;
}
示例7: buildSortOrder
import org.primefaces.model.SortMeta; //导入依赖的package包/类
@Override
protected List<SortMeta> buildSortOrder() {
List<SortMeta> results = new ArrayList<SortMeta>();
UIViewRoot viewRoot = FacesContext.getCurrentInstance().getViewRoot();
UIComponent column = viewRoot.findComponent(":form:tabView:dtRecords:colSourceLabel");
SortMeta sm1 = new SortMeta();
sm1.setSortBy((UIColumn) column);
sm1.setSortField("colSourceLabel");
sm1.setSortOrder(SortOrder.ASCENDING);
results.add(sm1);
return results;
}
示例8: buildSortOrder
import org.primefaces.model.SortMeta; //导入依赖的package包/类
@Override
protected List<SortMeta> buildSortOrder() {
List<SortMeta> results = new ArrayList<SortMeta>();
UIViewRoot viewRoot = FacesContext.getCurrentInstance().getViewRoot();
UIComponent column = viewRoot.findComponent(":form:tabView:dtEntities:colStructTypeName");
SortMeta sm1 = new SortMeta();
sm1.setSortBy((UIColumn) column);
sm1.setSortField("colStructTypeName");
sm1.setSortOrder(SortOrder.ASCENDING);
results.add(sm1);
return results;
}
示例9: buildSortOrder
import org.primefaces.model.SortMeta; //导入依赖的package包/类
@Override
protected List<SortMeta> buildSortOrder() {
List<SortMeta> results = new ArrayList<SortMeta>();
UIViewRoot viewRoot = FacesContext.getCurrentInstance().getViewRoot();
UIComponent column = viewRoot.findComponent(":form:tabView:dtEntities:colStatusName");
SortMeta sm1 = new SortMeta();
sm1.setSortBy((UIColumn) column);
sm1.setSortField("colStatusName");
sm1.setSortOrder(SortOrder.ASCENDING);
results.add(sm1);
return results;
}
示例10: buildSortOrder
import org.primefaces.model.SortMeta; //导入依赖的package包/类
@Override
protected List<SortMeta> buildSortOrder() {
List<SortMeta> results = new ArrayList<SortMeta>();
UIViewRoot viewRoot = FacesContext.getCurrentInstance().getViewRoot();
UIComponent column = viewRoot.findComponent(":form:tabView:dtEntities:colSponsoringTypeName");
SortMeta sm1 = new SortMeta();
sm1.setSortBy((UIColumn) column);
sm1.setSortField("colSponsoringTypeName");
sm1.setSortOrder(SortOrder.ASCENDING);
results.add(sm1);
return results;
}
示例11: buildSortOrder
import org.primefaces.model.SortMeta; //导入依赖的package包/类
@Override
protected List<SortMeta> buildSortOrder() {
List<SortMeta> results = new ArrayList<SortMeta>();
UIViewRoot viewRoot = FacesContext.getCurrentInstance().getViewRoot();
UIComponent column = viewRoot.findComponent(":form:tabView:dtEntities:colPhaseName");
SortMeta sm1 = new SortMeta();
sm1.setSortBy((UIColumn) column);
sm1.setSortField("colPhaseName");
sm1.setSortOrder(SortOrder.ASCENDING);
results.add(sm1);
return results;
}
示例12: buildSortOrder
import org.primefaces.model.SortMeta; //导入依赖的package包/类
@Override
protected List<SortMeta> buildSortOrder() {
List<SortMeta> results = new ArrayList<SortMeta>();
UIViewRoot viewRoot = FacesContext.getCurrentInstance().getViewRoot();
UIComponent column = viewRoot.findComponent(":form:tabView:dtStudies:colStudyOcIdentifier");
SortMeta sm1 = new SortMeta();
sm1.setSortBy((UIColumn) column);
sm1.setSortField("colStudyOcIdentifier");
sm1.setSortOrder(SortOrder.ASCENDING);
results.add(sm1);
return results;
}
示例13: buildSortOrder
import org.primefaces.model.SortMeta; //导入依赖的package包/类
@Override
protected List<SortMeta> buildSortOrder() {
List<SortMeta> results = new ArrayList<SortMeta>();
UIViewRoot viewRoot = FacesContext.getCurrentInstance().getViewRoot();
UIComponent column = viewRoot.findComponent(":form:tabView:dtEntities:colRoleName");
SortMeta sm1 = new SortMeta();
sm1.setSortBy((UIColumn) column);
sm1.setSortField("colRoleName");
sm1.setSortOrder(SortOrder.ASCENDING);
results.add(sm1);
return results;
}
示例14: buildSortOrder
import org.primefaces.model.SortMeta; //导入依赖的package包/类
@Override
protected List<SortMeta> buildSortOrder() {
List<SortMeta> results = new ArrayList<SortMeta>();
UIViewRoot viewRoot = FacesContext.getCurrentInstance().getViewRoot();
UIComponent column = viewRoot.findComponent(":form:tabView:dtEntities:colEntityName");
SortMeta sm1 = new SortMeta();
sm1.setSortBy((UIColumn) column);
sm1.setSortField("colEntityName");
sm1.setSortOrder(SortOrder.ASCENDING);
results.add(sm1);
return results;
}
示例15: buildSortOrder
import org.primefaces.model.SortMeta; //导入依赖的package包/类
@Override
protected List<SortMeta> buildSortOrder() {
List<SortMeta> results = new ArrayList<SortMeta>();
UIViewRoot viewRoot = FacesContext.getCurrentInstance().getViewRoot();
UIComponent column = viewRoot.findComponent(":form:tabView:dtCriteria:colCritName");
SortMeta sm1 = new SortMeta();
sm1.setSortBy((UIColumn) column);
sm1.setSortField("colCritName");
sm1.setSortOrder(SortOrder.ASCENDING);
results.add(sm1);
return results;
}