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

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


  26 package javafx.scene.control;
  27 
  28 import java.util.ArrayList;
  29 import java.util.Collections;
  30 import java.util.List;
  31 
  32 import javafx.beans.property.BooleanProperty;
  33 import javafx.beans.property.BooleanPropertyBase;
  34 import javafx.beans.property.ObjectProperty;
  35 import javafx.beans.property.SimpleObjectProperty;
  36 import javafx.beans.value.WritableValue;
  37 import javafx.geometry.Orientation;
  38 import javafx.scene.AccessibleAction;
  39 import javafx.scene.AccessibleAttribute;
  40 import javafx.scene.AccessibleRole;
  41 import javafx.scene.Node;
  42 import javafx.css.PseudoClass;
  43 import javafx.css.StyleableBooleanProperty;
  44 import javafx.css.CssMetaData;
  45 
  46 import com.sun.javafx.css.converters.BooleanConverter;
  47 import com.sun.javafx.scene.control.skin.TitledPaneSkin;
  48 
  49 import javafx.beans.DefaultProperty;
  50 import javafx.css.Styleable;
  51 import javafx.css.StyleableProperty;
  52 
  53 /**
  54  * <p>A TitledPane is a panel with a title that can be opened and closed.</p>
  55  *
  56  * <p>The panel in a TitledPane can be any {@link Node} such as UI controls or groups
  57  * of nodes added to a layout container.</p>
  58  *
  59  * <p>It is not recommended to set the MinHeight, PrefHeight, or MaxHeight
  60  * for this control.  Unexpected behavior will occur because the
  61  * TitledPane's height changes when it is opened or closed.</p>
  62  *
  63  * <p>Note that whilst TitledPane extends from Labeled, the inherited properties
  64  * are used to manipulate the TitledPane header, not the content area itself. If
  65  * the intent is to modify the content area, consider using a layout container
  66  * such as {@link javafx.scene.layout.StackPane} and setting your actual content
  67  * inside of that. You can then manipulate the StackPane to get the layout




  26 package javafx.scene.control;
  27 
  28 import java.util.ArrayList;
  29 import java.util.Collections;
  30 import java.util.List;
  31 
  32 import javafx.beans.property.BooleanProperty;
  33 import javafx.beans.property.BooleanPropertyBase;
  34 import javafx.beans.property.ObjectProperty;
  35 import javafx.beans.property.SimpleObjectProperty;
  36 import javafx.beans.value.WritableValue;
  37 import javafx.geometry.Orientation;
  38 import javafx.scene.AccessibleAction;
  39 import javafx.scene.AccessibleAttribute;
  40 import javafx.scene.AccessibleRole;
  41 import javafx.scene.Node;
  42 import javafx.css.PseudoClass;
  43 import javafx.css.StyleableBooleanProperty;
  44 import javafx.css.CssMetaData;
  45 
  46 import javafx.css.converter.BooleanConverter;
  47 import javafx.scene.control.skin.TitledPaneSkin;
  48 
  49 import javafx.beans.DefaultProperty;
  50 import javafx.css.Styleable;
  51 import javafx.css.StyleableProperty;
  52 
  53 /**
  54  * <p>A TitledPane is a panel with a title that can be opened and closed.</p>
  55  *
  56  * <p>The panel in a TitledPane can be any {@link Node} such as UI controls or groups
  57  * of nodes added to a layout container.</p>
  58  *
  59  * <p>It is not recommended to set the MinHeight, PrefHeight, or MaxHeight
  60  * for this control.  Unexpected behavior will occur because the
  61  * TitledPane's height changes when it is opened or closed.</p>
  62  *
  63  * <p>Note that whilst TitledPane extends from Labeled, the inherited properties
  64  * are used to manipulate the TitledPane header, not the content area itself. If
  65  * the intent is to modify the content area, consider using a layout container
  66  * such as {@link javafx.scene.layout.StackPane} and setting your actual content
  67  * inside of that. You can then manipulate the StackPane to get the layout