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

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


  31 import java.util.Set;
  32 
  33 import com.sun.javafx.collections.UnmodifiableListSet;
  34 import javafx.beans.property.BooleanProperty;
  35 import javafx.beans.property.DoubleProperty;
  36 import javafx.beans.property.ObjectProperty;
  37 import javafx.beans.property.ObjectPropertyBase;
  38 import javafx.beans.property.SimpleBooleanProperty;
  39 import javafx.beans.property.SimpleObjectProperty;
  40 import javafx.beans.value.WritableValue;
  41 import javafx.collections.FXCollections;
  42 import javafx.collections.ListChangeListener;
  43 import javafx.collections.ObservableList;
  44 import javafx.geometry.Side;
  45 import javafx.scene.AccessibleAttribute;
  46 import javafx.scene.AccessibleRole;
  47 import javafx.css.StyleableDoubleProperty;
  48 import javafx.css.CssMetaData;
  49 import javafx.css.PseudoClass;
  50 
  51 import com.sun.javafx.css.converters.SizeConverter;
  52 import com.sun.javafx.scene.control.skin.TabPaneSkin;
  53 
  54 import javafx.beans.DefaultProperty;
  55 import javafx.css.Styleable;
  56 import javafx.css.StyleableProperty;
  57 import javafx.scene.Node;
  58 
  59 /**
  60  * <p>A control that allows switching between a group of {@link Tab Tabs}.  Only one tab
  61  * is visible at a time. Tabs are added to the TabPane by using the {@link #getTabs}.</p>
  62  *
  63  * <p>Tabs in a TabPane can be positioned at any of the four sides by specifying the
  64  * {@link Side}. </p>
  65  *
  66  * <p>A TabPane has two modes floating or recessed.  Applying the styleclass STYLE_CLASS_FLOATING
  67  * will change the TabPane mode to floating.</p>
  68  *
  69  * <p>The tabs width and height can be set to a specific size by
  70  * setting the min and max for height and width.  TabPane default width will be
  71  * determined by the largest content width in the TabPane.  This is the same for the height.
  72  * If a different size is desired the width and height of the TabPane can




  31 import java.util.Set;
  32 
  33 import com.sun.javafx.collections.UnmodifiableListSet;
  34 import javafx.beans.property.BooleanProperty;
  35 import javafx.beans.property.DoubleProperty;
  36 import javafx.beans.property.ObjectProperty;
  37 import javafx.beans.property.ObjectPropertyBase;
  38 import javafx.beans.property.SimpleBooleanProperty;
  39 import javafx.beans.property.SimpleObjectProperty;
  40 import javafx.beans.value.WritableValue;
  41 import javafx.collections.FXCollections;
  42 import javafx.collections.ListChangeListener;
  43 import javafx.collections.ObservableList;
  44 import javafx.geometry.Side;
  45 import javafx.scene.AccessibleAttribute;
  46 import javafx.scene.AccessibleRole;
  47 import javafx.css.StyleableDoubleProperty;
  48 import javafx.css.CssMetaData;
  49 import javafx.css.PseudoClass;
  50 
  51 import javafx.css.converter.SizeConverter;
  52 import javafx.scene.control.skin.TabPaneSkin;
  53 
  54 import javafx.beans.DefaultProperty;
  55 import javafx.css.Styleable;
  56 import javafx.css.StyleableProperty;
  57 import javafx.scene.Node;
  58 
  59 /**
  60  * <p>A control that allows switching between a group of {@link Tab Tabs}.  Only one tab
  61  * is visible at a time. Tabs are added to the TabPane by using the {@link #getTabs}.</p>
  62  *
  63  * <p>Tabs in a TabPane can be positioned at any of the four sides by specifying the
  64  * {@link Side}. </p>
  65  *
  66  * <p>A TabPane has two modes floating or recessed.  Applying the styleclass STYLE_CLASS_FLOATING
  67  * will change the TabPane mode to floating.</p>
  68  *
  69  * <p>The tabs width and height can be set to a specific size by
  70  * setting the min and max for height and width.  TabPane default width will be
  71  * determined by the largest content width in the TabPane.  This is the same for the height.
  72  * If a different size is desired the width and height of the TabPane can