< prev index next >

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

Print this page




 154         @Override
 155         public String getName() {
 156             return "expandedPane";
 157         }
 158 
 159         @Override
 160         public Object getBean() {
 161             return Accordion.this;
 162         }
 163 
 164     };
 165 
 166     /**
 167      * <p>The expanded {@link TitledPane} that is currently visible. While it is technically
 168      * possible to set the expanded pane to a value that is not in {@link #getPanes},
 169      * doing so will be treated by the skin as if expandedPane is null. If a pane
 170      * is set as the expanded pane, and is subsequently removed from {@link #getPanes},
 171      * then expanded pane will be set to null, if possible. (This will not be possible
 172      * if you have manually bound the expanded pane to some value, for example).
 173      * </p>

 174      */
 175     public final void setExpandedPane(TitledPane value) { expandedPaneProperty().set(value); }
 176 
 177     /**
 178      * Gets the expanded TitledPane in the Accordion.  If the expanded pane has been
 179      * removed or there is no expanded TitledPane {@code null} is returned.
 180      *
 181      * @return The expanded TitledPane in the Accordion.
 182      */
 183     public final TitledPane getExpandedPane() { return expandedPane.get(); }
 184 
 185     /**
 186      * The expanded TitledPane in the Accordion.
 187      *
 188      * @return The expanded TitledPane in the Accordion.
 189      */
 190     public final ObjectProperty<TitledPane> expandedPaneProperty() { return expandedPane; }
 191 
 192     /***************************************************************************
 193      *                                                                         *




 154         @Override
 155         public String getName() {
 156             return "expandedPane";
 157         }
 158 
 159         @Override
 160         public Object getBean() {
 161             return Accordion.this;
 162         }
 163 
 164     };
 165 
 166     /**
 167      * <p>The expanded {@link TitledPane} that is currently visible. While it is technically
 168      * possible to set the expanded pane to a value that is not in {@link #getPanes},
 169      * doing so will be treated by the skin as if expandedPane is null. If a pane
 170      * is set as the expanded pane, and is subsequently removed from {@link #getPanes},
 171      * then expanded pane will be set to null, if possible. (This will not be possible
 172      * if you have manually bound the expanded pane to some value, for example).
 173      * </p>
 174      * @param value the expanded {@link TitledPane}
 175      */
 176     public final void setExpandedPane(TitledPane value) { expandedPaneProperty().set(value); }
 177 
 178     /**
 179      * Gets the expanded TitledPane in the Accordion.  If the expanded pane has been
 180      * removed or there is no expanded TitledPane {@code null} is returned.
 181      *
 182      * @return The expanded TitledPane in the Accordion.
 183      */
 184     public final TitledPane getExpandedPane() { return expandedPane.get(); }
 185 
 186     /**
 187      * The expanded TitledPane in the Accordion.
 188      *
 189      * @return The expanded TitledPane in the Accordion.
 190      */
 191     public final ObjectProperty<TitledPane> expandedPaneProperty() { return expandedPane; }
 192 
 193     /***************************************************************************
 194      *                                                                         *


< prev index next >