Package org.primefaces.model

Examples of org.primefaces.model.DashboardColumn


  }

  protected void updateDashboardModel(DashboardModel model, String widgetId, Integer itemIndex, Integer receiverColumnIndex, Integer senderColumnIndex) {   
    if(senderColumnIndex == null) {
      //Reorder widget in same column
      DashboardColumn column = model.getColumn(receiverColumnIndex);
      column.reorderWidget(itemIndex, widgetId);
    } else {
      //Transfer widget
      DashboardColumn oldColumn = model.getColumn(senderColumnIndex);
      DashboardColumn newColumn = model.getColumn(receiverColumnIndex);
     
      model.transferWidget(oldColumn, newColumn, widgetId, itemIndex);
    }
  }
View Full Code Here


    }

    protected void updateDashboardModel(DashboardModel model, String widgetId, Integer itemIndex, Integer receiverColumnIndex, Integer senderColumnIndex) {   
    if(senderColumnIndex == null) {
      //Reorder widget in same column
      DashboardColumn column = model.getColumn(receiverColumnIndex);
      column.reorderWidget(itemIndex, widgetId);
    } else {
      //Transfer widget
      DashboardColumn oldColumn = model.getColumn(senderColumnIndex);
      DashboardColumn newColumn = model.getColumn(receiverColumnIndex);
     
      model.transferWidget(oldColumn, newColumn, widgetId, itemIndex);
    }
  }
View Full Code Here

    private DashboardModel model;

    public DashboardController() {
        model = new DefaultDashboardModel();

        DashboardColumn column1 = new DefaultDashboardColumn();
        DashboardColumn column2 = new DefaultDashboardColumn();
        DashboardColumn column3 = new DefaultDashboardColumn();

        column1.addWidget("calculator");
        column1.addWidget("calendar");
        column1.addWidget("contact");

        column2.addWidget("dictionary");

        column3.addWidget("weather");
        column3.addWidget("translation");

        model.addColumn(column1);
        model.addColumn(column2);
        model.addColumn(column3);
    }
View Full Code Here

  }

  protected void updateDashboardModel(DashboardModel model, String widgetId, Integer itemIndex, Integer receiverColumnIndex, Integer senderColumnIndex) {   
    if(senderColumnIndex == null) {
      //Reorder widget in same column
      DashboardColumn column = model.getColumn(receiverColumnIndex);
      column.reorderWidget(itemIndex, widgetId);
    } else {
      //Transfer widget
      DashboardColumn oldColumn = model.getColumn(senderColumnIndex);
      DashboardColumn newColumn = model.getColumn(receiverColumnIndex);
     
      model.transferWidget(oldColumn, newColumn, widgetId, itemIndex);
    }
  }
View Full Code Here

    @PostConstruct
    public void init() {
        //Dashboard
        model = new DefaultDashboardModel();
        DashboardColumn column1 = new DefaultDashboardColumn();
        DashboardColumn column2 = new DefaultDashboardColumn();
        column1.addWidget("myCalendar");
        column1.addWidget("myItems");
        column2.addWidget("myContinousIntegration");
        column2.addWidget("myProjects");
        model.addColumn(column1);
        model.addColumn(column2);
    }
View Full Code Here

TOP

Related Classes of org.primefaces.model.DashboardColumn

Copyright © 2018 www.massapicom. 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.