modules/controls/src/main/java/javafx/scene/control/Pagination.java

Print this page
rev 9240 : 8076423: JEP 253: Prepare JavaFX UI Controls & CSS APIs for Modularization


  25 
  26 package javafx.scene.control;
  27 
  28 import java.util.ArrayList;
  29 import java.util.Collections;
  30 import java.util.List;
  31 import javafx.beans.DefaultProperty;
  32 import javafx.beans.property.IntegerProperty;
  33 import javafx.beans.property.ObjectProperty;
  34 import javafx.beans.property.SimpleIntegerProperty;
  35 import javafx.beans.property.SimpleObjectProperty;
  36 import javafx.beans.value.ObservableValue;
  37 import javafx.beans.value.WritableValue;
  38 import javafx.css.CssMetaData;
  39 import javafx.css.StyleableIntegerProperty;
  40 import javafx.css.Styleable;
  41 import javafx.css.StyleableProperty;
  42 import javafx.scene.AccessibleRole;
  43 import javafx.scene.Node;
  44 import javafx.util.Callback;
  45 import com.sun.javafx.css.converters.SizeConverter;
  46 import com.sun.javafx.scene.control.skin.PaginationSkin;
  47 
  48 /**
  49  * <p>
  50  * A Pagination control is used for navigation between pages of a single content,
  51  * which has been divided into smaller parts.
  52  * </p>
  53  *
  54  * <h3>Styling the page indicators</h3>
  55  * <p>
  56  * The control can be customized to display numeric page indicators or bullet style indicators by
  57  * setting the style class {@link #STYLE_CLASS_BULLET}.  The
  58  * {@link #maxPageIndicatorCountProperty() maxPageIndicatorCountProperty} can be used to change
  59  * the maximum number of page indicators.  The property value can also be changed
  60  * via CSS using -fx-max-page-indicator-count.
  61  *</p>
  62  *
  63  * <h3>Page count</h3>
  64  * <p>
  65  * The {@link #pageCountProperty() pageCountProperty} controls the number of
  66  * pages this pagination control has.  If the page count is




  25 
  26 package javafx.scene.control;
  27 
  28 import java.util.ArrayList;
  29 import java.util.Collections;
  30 import java.util.List;
  31 import javafx.beans.DefaultProperty;
  32 import javafx.beans.property.IntegerProperty;
  33 import javafx.beans.property.ObjectProperty;
  34 import javafx.beans.property.SimpleIntegerProperty;
  35 import javafx.beans.property.SimpleObjectProperty;
  36 import javafx.beans.value.ObservableValue;
  37 import javafx.beans.value.WritableValue;
  38 import javafx.css.CssMetaData;
  39 import javafx.css.StyleableIntegerProperty;
  40 import javafx.css.Styleable;
  41 import javafx.css.StyleableProperty;
  42 import javafx.scene.AccessibleRole;
  43 import javafx.scene.Node;
  44 import javafx.util.Callback;
  45 import javafx.css.converter.SizeConverter;
  46 import javafx.scene.control.skin.PaginationSkin;
  47 
  48 /**
  49  * <p>
  50  * A Pagination control is used for navigation between pages of a single content,
  51  * which has been divided into smaller parts.
  52  * </p>
  53  *
  54  * <h3>Styling the page indicators</h3>
  55  * <p>
  56  * The control can be customized to display numeric page indicators or bullet style indicators by
  57  * setting the style class {@link #STYLE_CLASS_BULLET}.  The
  58  * {@link #maxPageIndicatorCountProperty() maxPageIndicatorCountProperty} can be used to change
  59  * the maximum number of page indicators.  The property value can also be changed
  60  * via CSS using -fx-max-page-indicator-count.
  61  *</p>
  62  *
  63  * <h3>Page count</h3>
  64  * <p>
  65  * The {@link #pageCountProperty() pageCountProperty} controls the number of
  66  * pages this pagination control has.  If the page count is