Examples of Pagination


Examples of com.founder.fix.fixflow.core.db.pagination.Pagination

    this.connection = connection;
    pageination = initDialet(connection);
  }
 
  public static Pagination initDialet(Connection connection){
    Pagination pageination = null;
    try{
      String dbms = connection.getMetaData().getDatabaseProductName();
      if ( dbms == null || dbms.equals("") ){
        pageination = (Pagination)Class.forName("com.founder.fix.fixflow.expand.database.pagination.OraclePaginationImpl").newInstance();
      }else if ( dbms.equals("Oracle") ){
View Full Code Here

Examples of com.founder.fix.fixflow.util.Pagination

     
      List<TaskInstance> lts = tq.orderByTaskCreateTime().desc().listPagination(pageIndex, rowNum);
      Long count = tq.count();
      List<Map<String,Object>> instanceMaps = new ArrayList<Map<String,Object>>();
     
      Pagination page = new Pagination(pageIndex,rowNum);
      page.setTotal(count.intValue());
      IdentityService identsvz = engine.getIdentityService();
     
      for(TaskInstance tmp:lts){
        Map<String,Object> instances = tmp.getPersistentState();
//        String path = StringUtil.getString(filter.get("path"));
View Full Code Here

Examples of com.github.gwtbootstrap.client.ui.Pagination

    protected void createTablePager() {
        pagerPanel.clear();
        pagerPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);

        Pagination pagination = new Pagination();
        pagination.setSize(Pagination.PaginationSize.NORMAL);
        pagination.setAlignment(Bootstrap.Pagination.LEFT.toString());

        for (int i = getLeftMostPageNumber(); i <= getRightMostPageNumber(); i++) {
            NavLink pageLink = new NavLink(Integer.toString(i));
            final Integer _currentPage = Integer.valueOf(i);
            if (currentPage != i) {
                pageLink.setActive(false);
                pageLink.addClickHandler(new ClickHandler() {
                    @Override
                    public void onClick(ClickEvent event) {
                        gotoPage(_currentPage.intValue());
                    }
                });
            } else {
                pageLink.setActive(true);
            }
            pagination.add(pageLink);
        }

        Icon leftPageIcon = new Icon(IconType.ANGLE_LEFT);
        leftPageIcon.setIconSize(IconSize.LARGE);
        leftPageIcon.getElement().getStyle().setCursor(Style.Cursor.POINTER);
View Full Code Here

Examples of com.github.nyao.bootstrap4gwt.client.pagination.Pagination

    public void onModuleLoad() {
        RootPanel.get("CellTable").add(new MyCellTable());
        RootPanel.get("Buttons").add(new Buttons());
        RootPanel.get("Forms").add(new Forms());
        RootPanel.get("Breadcrumbs").add(new Breadcrumbs());
        RootPanel.get("Pagination").add(new Pagination());
        RootPanel.get("TaskBoard").add(new TaskBoard());
    }
View Full Code Here

Examples of com.google.code.lightssh.common.web.tag.table.components.Pagination

  protected String pageSizeArray;

  @Override
  public Component getBean(ValueStack stack, HttpServletRequest req,
      HttpServletResponse res) {
    return new Pagination(stack, req, res);
  }
View Full Code Here

Examples of com.jeecms.common.page.Pagination

  @SuppressWarnings("unchecked")
  public void execute(Environment env, Map params, TemplateModel[] loopVars,
      TemplateDirectiveBody body) throws TemplateException, IOException {
    CmsSite site = FrontUtils.getSite(env);
    Pagination page = cmsTopicMng.getPageForTag(getChannelId(params),
        getRecommend(params), FrontUtils.getPageNo(env), FrontUtils
            .getCount(params));

    Map<String, TemplateModel> paramWrap = new HashMap<String, TemplateModel>(
        params);
    paramWrap.put(OUT_PAGINATION, DEFAULT_WRAPPER.wrap(page));
    paramWrap.put(OUT_LIST, DEFAULT_WRAPPER.wrap(page.getList()));
    Map<String, TemplateModel> origMap = DirectiveUtils
        .addParamsToVariable(env, paramWrap);
    InvokeType type = DirectiveUtils.getInvokeType(params);
    String listStyle = DirectiveUtils.getString(PARAM_STYLE_LIST, params);
    if (InvokeType.sysDefined == type) {
View Full Code Here

Examples of com.jpoweredcart.common.view.Pagination

   
    Integer defaultReturnStatusId = getSettingService().getConfig(SettingKey.CFG_RETURN_STATUS_ID, Integer.class);
    model.addAttribute("defaultReturnStatusId", defaultReturnStatusId);
   
    int total = returnStatusAdminModel.getTotal();
    Pagination pagination = new Pagination();
    pagination.setTotal(total).setPageParam(pageParam)
      .setText(message(request, "text.pagination"))
      .setUrl(uri("/admin/localisation/returnStatus"));
    model.addAttribute("pagination", pagination.render());
   
    return "/admin/localisation/returnStatusList";
  }
View Full Code Here

Examples of com.lbslocal.cc.objects.v0.common.Pagination

  public Point getRoadXY(Road road, int idLicenca) throws Exception {
    int iCount = 0, roadNumber = 0;

    Point pt = new Point();
    Pagination pg;

    boolean hasState = (road.getCity().getState() != null && road.getCity().getState().compareTo("") != 0);

    if (!hasState) {
      throw (new Exception("O estado deve ser informado."));
    }

    if (Functions.IsNullOrEmpty(road.getCity().getCountry()))
      road.getCity().setCountry("Brasil");

    try {
      // transformar valores null em "" para n�o dar null pointer
      // exception
      if (road.getName() == null)
        road.setName("");
      if (road.getRoadNumber() == null)
        road.setRoadNumber("");
      if (road.getCity().getName() == null)
        road.getCity().setName("");
      if (road.getCity().getState() == null)
        road.getCity().setState("");
      if (road.getZip() == null)
        road.setZip("");

      // validando n�mero
      if (!road.getRoadNumber().equals("")) {
        if (Functions.isNumeric(road.getRoadNumber().replace(".", "").replace(",", "").replace("-", "").replace("e", "")))
          roadNumber = Integer.parseInt(road.getRoadNumber());
      }
      if (roadNumber == 0)
        road.setRoadNumber("");
      else
        road.setRoadNumber(String.valueOf(roadNumber));

      // se o valor de endere�o, cidade e estado for em branco erro
      // se cepe o cep forem em brancos da a mensagem de erro
      if (road.getZip() == "")
        if ((road.getName() == "") && ((road.getCity().getName() == "") || (road.getCity().getState() == "")))
          throw (new Exception(
              "Os atributos address.street, city.name e city.state devem ser informados quando o atributo address.zip nao e informado."));

      if (road.getZip().length() == 8)
        road.setZip(road.getZip().substring(0, 5) + "-" + road.getZip().substring(5, 8));

      Connection con = dataBase.getConnection(Functions.getDataBase(idLicenca, "Brasil").getSource());

      CallableStatement cst = con.prepareCall("{call cp_WS_KM(?,?,?,?,?)}");
      cst.setString(1, road.getRoadNumber());
      cst.setString(2, road.getName());
      cst.setString(3, road.getCity().getName());
      cst.setString(4, road.getCity().getState());
      cst.setString(5, road.getZip());

      cst.execute();

      ResultSet rs1 = cst.getResultSet();

      CachedRowSetImpl crs = new CachedRowSetImpl();
      crs.populate(rs1);

      int TotalRecords = crs.size();

      if (TotalRecords > 0) {
        try {
          pg = Functions.definePage(TotalRecords, 1, 0);
          // RoadLocation[] rl;

          if (pg.getRecordsInitial() <= TotalRecords) {
            // rl = new RoadLocation[(pg.getRecordsFinal() -
            // pg.getRecordsInitial()) + 1];

            for (int intI = pg.getRecordsInitial(); intI <= pg.getRecordsFinal(); intI++) {
              if (rs1.absolute(intI)) {
                pt.setX(Double.parseDouble(rs1.getString("X")));
                pt.setY(Double.parseDouble(rs1.getString("Y")));

                iCount++;
View Full Code Here

Examples of edu.zzuli.common.Pagination

      int length = rows;
      results = this.listResults(from, length);
      this.setGridModel(results);*/
     
      if (rows > 0 && page > 0) {
        Pagination pagination = new Pagination(rows, page);
        results = this.listResults(pagination);
        record = pagination.getTotalRows()//总记录条数
        this.setGridModel(results);
      }
//      if (results != null && results.size() > 0) {
//        this.setGridModel(results);
//      }
View Full Code Here

Examples of javafx.scene.control.Pagination

        return box;
    }
    @Override
    public void start(final Stage stage) throws Exception {
        pagination = new Pagination(28, 0);
        pagination.getStyleClass().add(Pagination.STYLE_CLASS_BULLET);
        pagination.setPageFactory(new Callback<Integer, Node>() {
            @Override
            public Node call(Integer pageIndex) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.