Package javafx.scene.control

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


      return getWidget();
    }

    @Override
    protected Pagination createWidget() {
      Pagination p = new Pagination();
      p.setPageFactory(new Callback<Integer, Node>() {
       
        @Override
        public Node call(Integer param) {
          PagninationItemImpl item = (PagninationItemImpl) items.get(param.intValue());
          item.handleSelection();
          mouseSelectedItemCallback.call(item);
          return item.getNativeItem().getContent();
        }
      });
      p.currentPageIndexProperty().addListener(new ChangeListener<Number>() {

        @Override
        public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {
          final PagninationItemImpl item =  (PagninationItemImpl) items.get(newValue.intValue());
          if( mouseSelectedItemCallback != null ) {
View Full Code Here

TOP

Related Classes of javafx.scene.control.Pagination

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.