• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java DefaultDashboardColumn类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java FindsById类代码示例发布时间:2022-05-23
下一篇:
Java ContentModelValidator类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap