本文整理汇总了Java中org.primefaces.model.DefaultDashboardColumn类的典型用法代码示例。如果您正苦于以下问题:Java DefaultDashboardColumn类的具体用法?Java DefaultDashboardColumn怎么用?Java DefaultDashboardColumn使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DefaultDashboardColumn类属于org.primefaces.model包,在下文中一共展示了DefaultDashboardColumn类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1:
import org.primefaces.model.DefaultDashboardColumn; //导入依赖的package包/类
@PostConstruct
/* */ public void init()
/* */ {
/* 41 */ this.model = new DefaultDashboardModel();
/* 42 */ DashboardColumn column1 = new DefaultDashboardColumn();
/* 43 */ DashboardColumn column2 = new DefaultDashboardColumn();
/* 44 */ DashboardColumn column3 = new DefaultDashboardColumn();
/* */
/* 46 */ column1.addWidget("sports");
/* 47 */ column1.addWidget("finance");
/* */
/* 49 */ column2.addWidget("lifestyle");
/* 50 */ column2.addWidget("weather");
/* */
/* 52 */ column3.addWidget("politics");
/* */
/* 54 */ this.model.addColumn(column1);
/* 55 */ this.model.addColumn(column2);
/* 56 */ this.model.addColumn(column3);
/* */ }
开发者ID:marlonalexis,项目名称:Multicentro_Mascotas,代码行数:21,代码来源:DashboardView.java
示例2: DashboardView
import org.primefaces.model.DefaultDashboardColumn; //导入依赖的package包/类
public DashboardView(){
// Initialize the dashboard model
this.model = new DefaultDashboardModel();
DashboardColumn mainColumn = new DefaultDashboardColumn();
mainColumn.addWidget("Routed");
mainColumn.addWidget("NotRouted");
mainColumn.addWidget("Claimed");
this.model.addColumn(mainColumn);
}
开发者ID:m-reza-rahman,项目名称:pragmatic-microservices-lab,代码行数:13,代码来源:DashboardView.java
示例3: init
import org.primefaces.model.DefaultDashboardColumn; //导入依赖的package包/类
public void init() {
this.model = new DefaultDashboardModel();
this.model.addColumn(new DefaultDashboardColumn());
this.model.addColumn(new DefaultDashboardColumn());
this.model.addColumn(new DefaultDashboardColumn());
this.dashboard = new Dashboard();
this.dashboard.setDisabled(true);
this.dashboard.setModel(model);
this.widgets = new HashMap<>();
if (widgets != null) {
for (ApplicationToWidget widget : application.getWidgets()) {
WidgetComponent component = factory.createComponent(
widget.getWidget(), widget.getWidgetId());
this.widgets.put(widget.getWidgetId(), component);
}
}
initWidgets();
}
开发者ID:rcandidosilva,项目名称:paas-iot-platform,代码行数:21,代码来源:RuntimeController.java
示例4: init
import org.primefaces.model.DefaultDashboardColumn; //导入依赖的package包/类
@PostConstruct
public void init() {
dashboard = new Dashboard();
model = new DefaultDashboardModel();
DashboardColumn column1 = new DefaultDashboardColumn();
DashboardColumn column2 = new DefaultDashboardColumn();
DashboardColumn column3 = new DefaultDashboardColumn();
column1.addWidget("sports");
column1.addWidget("finance");
column2.addWidget("lifestyle");
column2.addWidget("weather");
column3.addWidget("politics");
model.addColumn(column1);
model.addColumn(column2);
model.addColumn(column3);
dashboard.setModel(model);
createPanels();
}
开发者ID:rcandidosilva,项目名称:paas-iot-platform,代码行数:27,代码来源:SampleDashboardController.java
示例5: init
import org.primefaces.model.DefaultDashboardColumn; //导入依赖的package包/类
public void init(Map<String, WidgetComponent> widgets) {
this.model = new DefaultDashboardModel();
this.model.addColumn(new DefaultDashboardColumn());
this.model.addColumn(new DefaultDashboardColumn());
this.model.addColumn(new DefaultDashboardColumn());
this.dashboard = new Dashboard();
this.dashboard.setDisabled(true);
this.dashboard.setModel(model);
this.widgets = new HashMap<>();
if (widgets != null) {
for (String widgetId : widgets.keySet()) {
WidgetComponent component = widgets.get(widgetId);
component = factory.createComponent(component.getWidget(), widgetId);
this.widgets.put(widgetId, component);
}
}
initWidgets();
}
开发者ID:rcandidosilva,项目名称:paas-iot-platform,代码行数:21,代码来源:PreviewController.java
示例6: init
import org.primefaces.model.DefaultDashboardColumn; //导入依赖的package包/类
@PostConstruct
public void init() {
dashboard = new Dashboard();
dashboard.setDisabled(true);
model = new DefaultDashboardModel();
model.addColumn(new DefaultDashboardColumn());
model.addColumn(new DefaultDashboardColumn());
model.addColumn(new DefaultDashboardColumn());
dashboard.setModel(model);
widgets = new HashMap<>();
// Force reset
previewController.init(null);
}
开发者ID:rcandidosilva,项目名称:paas-iot-platform,代码行数:17,代码来源:IDEController.java
示例7: DashboardBean
import org.primefaces.model.DefaultDashboardColumn; //导入依赖的package包/类
public DashboardBean() {
model = new DefaultDashboardModel();
DashboardColumn column1 = new DefaultDashboardColumn();
DashboardColumn column2 = new DefaultDashboardColumn();
DashboardColumn column3 = new DefaultDashboardColumn();
column1.addWidget("sports");
column1.addWidget("finance");
column2.addWidget("lifestyle");
column2.addWidget("weather");
column3.addWidget("politics");
model.addColumn(column1);
model.addColumn(column2);
model.addColumn(column3);
}
开发者ID:websphere,项目名称:PrimefacesShowcase,代码行数:19,代码来源:DashboardBean.java
示例8: init
import org.primefaces.model.DefaultDashboardColumn; //导入依赖的package包/类
@PostConstruct
private void init() {
model = new DefaultDashboardModel();
DashboardColumn column1 = new DefaultDashboardColumn();
DashboardColumn column2 = new DefaultDashboardColumn();
column1.addWidget("announcements");
column2.addWidget("studentsAnnouncements");
column1.addWidget("results");
column2.addWidget("registrationChart");
model.addColumn(column1);
model.addColumn(column2);
}
开发者ID:diokey,项目名称:ums,代码行数:17,代码来源:DashBordBean.java
示例9: init
import org.primefaces.model.DefaultDashboardColumn; //导入依赖的package包/类
@PostConstruct
public void init() {
application = FacesContext.getCurrentInstance().getApplication();
widgets = new HashMap<>();
if (layoutContainer.getLayouts().size() < 1) {
newLayoutName = "Default layout";
newLayout();
newLayoutName = "";
}
setLayouts(layoutContainer.getLayouts());
selectedLayout = layouts.get(0);
dashboard = (Dashboard) application.createComponent(FacesContext.getCurrentInstance(),
"org.primefaces.component.Dashboard", "org.primefaces.component.DashboardRenderer");
dashboardModel = new DefaultDashboardModel();
for (int i = 0; i < DASHBOARD_COLUMN_NUM; ++i) {
dashboardModel.addColumn(new DefaultDashboardColumn());
}
dashboard.setModel(dashboardModel);
loadLayout();
}
开发者ID:daergoth,项目名称:hiots,代码行数:28,代码来源:IndexManager.java
示例10: populatePrintJobList
import org.primefaces.model.DefaultDashboardColumn; //导入依赖的package包/类
public void populatePrintJobList(){
System.out.println("Populating List ");
if(customer.getEmail().equals("[email protected]")){
jobList = ds.getJobsBySubmittedStatus();
}else{
jobList = ds.getJobsByCustomerId(customer);
}
System.out.println(jobList);
model = new DefaultDashboardModel();
if(jobList != null && !jobList.isEmpty()){
for(int i=0;i<jobList.size();i++) {
DashboardColumn column = new DefaultDashboardColumn();
for(int j=0;j<4;j++) {
if(i < jobList.size()) {
column.addWidget(jobList.get(i).getJobRefId());
i++;
}
}
model.addColumn(column);
}
}
}
开发者ID:sudheerj,项目名称:primefaces-blueprints,代码行数:28,代码来源:DashboardController.java
注:本文中的org.primefaces.model.DefaultDashboardColumn类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论