Examples of gotoPage()


Examples of com.ibatis.common.util.PaginatedList.gotoPage()

    assertFalse(list.isPreviousPageAvailable());
    assertFalse(list.isNextPageAvailable());
    assertEquals(0, list.size());

    // Test previous
    list.gotoPage(0);
    assertFalse(list.isPreviousPageAvailable());
    assertFalse(list.isNextPageAvailable());
    assertEquals(0, list.size());

    list = sqlMap.queryForPaginatedList("getFewAccountsViaResultMap", null, 2);
View Full Code Here

Examples of com.ibatis.common.util.PaginatedList.gotoPage()

    assertFalse(list.isPreviousPageAvailable());
    assertFalse(list.isNextPageAvailable());
    assertEquals(1, list.size());

    // Test previous
    list.gotoPage(0);
    assertFalse(list.isPreviousPageAvailable());
    assertFalse(list.isNextPageAvailable());
    assertEquals(1, list.size());

    // Test Even - Two Pages
View Full Code Here

Examples of net.sf.logsaw.ui.editors.ILogViewEditor.goToPage()

    ILogViewEditor editor =
      (ILogViewEditor) page.getActiveEditor().getAdapter(ILogViewEditor.class);
    if (editor != null) {
      String pageNumber = event.getParameter(
          "net.sf.logsaw.ui.commands.GoToPageCommand.pageNumber"); //$NON-NLS-1$
      editor.goToPage(Integer.valueOf(pageNumber));
     
      // Request re-evaluation
      IEvaluationService service =
        (IEvaluationService) window.getService(IEvaluationService.class);
      service.requestEvaluation("net.sf.logsaw.ui.expressions.logViewEditor.isPreviousPageAllowed"); //$NON-NLS-1$
View Full Code Here

Examples of net.sf.logsaw.ui.editors.ILogViewEditor.goToPage()

            IEditorPart editorPart = editorRef.getEditor(false);
            ILogViewEditor editor = editorPart != null ?
                (ILogViewEditor) editorPart.getAdapter(ILogViewEditor.class) : null;
            if (editor != null) {
              editor.clearQueryContext();
              editor.goToPage(1);
            }
          }
        } catch (CoreException e) {
          statuses.add(e.getStatus());
        }
View Full Code Here

Examples of net.sf.logsaw.ui.editors.ILogViewEditor.goToPage()

      FilterSettingsDialog dlg = new FilterSettingsDialog(
          Display.getDefault().getActiveShell(), log, list, added);
      if (dlg.open() == Window.OK) {
        // Update input and refresh editor view
        rest.setRestrictions(dlg.getRestrictions());
        editor.goToPage(1);
       
        // Request re-evaluation
        IEvaluationService service =
          (IEvaluationService) window.getService(IEvaluationService.class);
        service.requestEvaluation("net.sf.logsaw.ui.expressions.logViewEditor.isPreviousPageAllowed"); //$NON-NLS-1$
View Full Code Here

Examples of org.jsurveylib.Survey.goToPage()

    }

    @Test(expected = IllegalArgumentException.class)
    public void visitSkippedPage() throws Exception {
        Survey survey = new Survey(new XMLSurveyReader(new File("src\\test\\org\\jsurveylib\\model\\pagefiles\\visitskippedpage.xml")));
        survey.goToPage(1); //goto a skipped page
    }

    @Test
    public void firstPagesSkipped() throws Exception {
        Survey survey = new Survey(new XMLSurveyReader(new File("src\\test\\org\\jsurveylib\\model\\pagefiles\\firstpageskipped.xml")));
View Full Code Here

Examples of org.jsurveylib.Survey.goToPage()

        return translatePage(survey);
    }

    public String[][] changePage(String surveyProvider, int toPage) {
        Survey survey = getSurvey(surveyProvider);
        survey.goToPage(toPage);
        return translatePage(survey);
    }

    private boolean isAnswerToSet(String id, String answer) {
        return id != null && answer != null;
View Full Code Here

Examples of org.xwiki.extension.test.po.PaginationFilterPane.gotoPage()

        Assert.assertTrue(pagination.hasNextPage());
        Assert.assertTrue(pagination.getPageCount() > 5);
        Assert.assertTrue(pagination.getResultsCount() > 100);
        String firstExtensionName = searchResults.getExtension(0).getName();

        pagination = pagination.gotoPage(4);
        searchResults = new SearchResultsPane();
        Assert.assertEquals(20, searchResults.getDisplayedResultsCount());
        Assert.assertEquals("61 - 80", pagination.getCurrentRange());
        Assert.assertEquals(4, pagination.getCurrentPageIndex());
        Assert.assertTrue(pagination.hasNextPage());
View Full Code Here

Examples of org.xwiki.extension.test.po.PaginationFilterPane.gotoPage()

        Assert.assertEquals(20, searchResults.getDisplayedResultsCount());
        Assert.assertEquals("61 - 80", pagination.getCurrentRange());
        Assert.assertEquals(4, pagination.getCurrentPageIndex());
        Assert.assertEquals(secondExtensionName, searchResults.getExtension(0).getName());

        pagination = pagination.gotoPage(pagination.getPageCount());
        searchResults = new SearchResultsPane();
        Assert.assertEquals(pagination.getResultsCount() % 20, searchResults.getDisplayedResultsCount());
        Assert.assertEquals(pagination.getPageCount(), pagination.getCurrentPageIndex());
        Assert.assertFalse(pagination.hasNextPage());
        Assert.assertTrue(pagination.hasPreviousPage());
View Full Code Here

Examples of org.xwiki.test.ui.administration.elements.GlobalRightsAdministrationSectionPage.gotoPage()

    }

    private void setRightsOnGuest(Right right, State state)
    {
        GlobalRightsAdministrationSectionPage globalRights = new GlobalRightsAdministrationSectionPage();
        globalRights.gotoPage();
        globalRights.getEditRightsPane().switchToUsers();
        globalRights.getEditRightsPane().setGuestRight(right, state);
    }

    @Test
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.