< prev index next >

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

Print this page

        

*** 160,199 **** --- 160,204 ---- * * <p>If the tabs ObservableList changes, the selected tab will remain the previously * selected tab, if it remains within this ObservableList. If the previously * selected tab is no longer in the tabs ObservableList, the selected tab will * become the first tab in the ObservableList.</p> + * @return the list of tabs */ public final ObservableList<Tab> getTabs() { return tabs; } private ObjectProperty<SingleSelectionModel<Tab>> selectionModel = new SimpleObjectProperty<SingleSelectionModel<Tab>>(this, "selectionModel"); /** * <p>Sets the model used for tab selection. By changing the model you can alter * how the tabs are selected and which tabs are first or last.</p> + * @param value the selection model */ public final void setSelectionModel(SingleSelectionModel<Tab> value) { selectionModel.set(value); } /** * <p>Gets the model used for tab selection.</p> + * @return the model used for tab selection */ public final SingleSelectionModel<Tab> getSelectionModel() { return selectionModel.get(); } /** * The selection model used for selecting tabs. + * @return selection model property */ public final ObjectProperty<SingleSelectionModel<Tab>> selectionModelProperty() { return selectionModel; } private ObjectProperty<Side> side; /** * <p>The position to place the tabs in this TabPane. Whenever this changes * the TabPane will immediately update the location of the tabs to reflect * this.</p> * + * @param value the side */ public final void setSide(Side value) { sideProperty().set(value); }
*** 207,216 **** --- 212,222 ---- return side == null ? Side.TOP : side.get(); } /** * The position of the tabs in the TabPane. + * @return the side property */ public final ObjectProperty<Side> sideProperty() { if (side == null) { side = new ObjectPropertyBase<Side>(Side.TOP) { private Side oldSide;
*** 255,264 **** --- 261,271 ---- * </ul> * * <p>Refer to the {@link TabClosingPolicy} enumeration for further details.</p> * * The default closing policy is TabClosingPolicy.SELECTED_TAB + * @param value the closing policy */ public final void setTabClosingPolicy(TabClosingPolicy value) { tabClosingPolicyProperty().set(value); }
*** 271,280 **** --- 278,288 ---- return tabClosingPolicy == null ? TabClosingPolicy.SELECTED_TAB : tabClosingPolicy.get(); } /** * The closing policy for the tabs. + * @return the closing policy property */ public final ObjectProperty<TabClosingPolicy> tabClosingPolicyProperty() { if (tabClosingPolicy == null) { tabClosingPolicy = new SimpleObjectProperty<TabClosingPolicy>(this, "tabClosingPolicy", TabClosingPolicy.SELECTED_TAB); }
*** 290,299 **** --- 298,308 ---- * <p>By default rotateGraphic is set to false, to represent the fact that * the graphic isn't rotated, resulting in it always appearing upright. If * rotateGraphic is set to {@code true}, the graphic will rotate such that it * rotates with the tab text.</p> * + * @param value a flag indicating whether to rotate the graphic */ public final void setRotateGraphic(boolean value) { rotateGraphicProperty().set(value); }
*** 306,316 **** public final boolean isRotateGraphic() { return rotateGraphic == null ? false : rotateGraphic.get(); } /** ! * The rotatedGraphic state of the tabs in the TabPane. */ public final BooleanProperty rotateGraphicProperty() { if (rotateGraphic == null) { rotateGraphic = new SimpleBooleanProperty(this, "rotateGraphic", false); } --- 315,326 ---- public final boolean isRotateGraphic() { return rotateGraphic == null ? false : rotateGraphic.get(); } /** ! * The rotateGraphic state of the tabs in the TabPane. ! * @return the rotateGraphic property */ public final BooleanProperty rotateGraphicProperty() { if (rotateGraphic == null) { rotateGraphic = new SimpleBooleanProperty(this, "rotateGraphic", false); }
*** 325,350 **** * to the max will fix the width of the tab. By default the min equals to the max. * * This value can also be set via CSS using {@code -fx-tab-min-width} * * </p> */ public final void setTabMinWidth(double value) { tabMinWidthProperty().setValue(value); } /** * The minimum width of the tabs in the TabPane. * ! * @return The minimum width of the tabs. */ public final double getTabMinWidth() { return tabMinWidth == null ? DEFAULT_TAB_MIN_WIDTH : tabMinWidth.getValue(); } /** * The minimum width of the tabs in the TabPane. */ public final DoubleProperty tabMinWidthProperty() { if (tabMinWidth == null) { tabMinWidth = new StyleableDoubleProperty(DEFAULT_TAB_MIN_WIDTH) { --- 335,362 ---- * to the max will fix the width of the tab. By default the min equals to the max. * * This value can also be set via CSS using {@code -fx-tab-min-width} * * </p> + * @param value the minimum width of the tabs */ public final void setTabMinWidth(double value) { tabMinWidthProperty().setValue(value); } /** * The minimum width of the tabs in the TabPane. * ! * @return The minimum width of the tabs */ public final double getTabMinWidth() { return tabMinWidth == null ? DEFAULT_TAB_MIN_WIDTH : tabMinWidth.getValue(); } /** * The minimum width of the tabs in the TabPane. + * @return the minimum width property */ public final DoubleProperty tabMinWidthProperty() { if (tabMinWidth == null) { tabMinWidth = new StyleableDoubleProperty(DEFAULT_TAB_MIN_WIDTH) {
*** 381,398 **** } /** * The maximum width of the tabs in the TabPane. * ! * @return The maximum width of the tabs. */ public final double getTabMaxWidth() { return tabMaxWidth == null ? DEFAULT_TAB_MAX_WIDTH : tabMaxWidth.getValue(); } /** * The maximum width of the tabs in the TabPane. */ public final DoubleProperty tabMaxWidthProperty() { if (tabMaxWidth == null) { tabMaxWidth = new StyleableDoubleProperty(DEFAULT_TAB_MAX_WIDTH) { --- 393,411 ---- } /** * The maximum width of the tabs in the TabPane. * ! * @return The maximum width of the tabs */ public final double getTabMaxWidth() { return tabMaxWidth == null ? DEFAULT_TAB_MAX_WIDTH : tabMaxWidth.getValue(); } /** * The maximum width of the tabs in the TabPane. + * @return the maximum width property */ public final DoubleProperty tabMaxWidthProperty() { if (tabMaxWidth == null) { tabMaxWidth = new StyleableDoubleProperty(DEFAULT_TAB_MAX_WIDTH) {
*** 422,447 **** * the height in tabs. Setting the min equal to the max will fix the height * of the tab. By default the min equals to the max. * * This value can also be set via CSS using {@code -fx-tab-min-height} * </p> */ public final void setTabMinHeight(double value) { tabMinHeightProperty().setValue(value); } /** * The minimum height of the tabs in the TabPane. * ! * @return The minimum height of the tabs. */ public final double getTabMinHeight() { return tabMinHeight == null ? DEFAULT_TAB_MIN_HEIGHT : tabMinHeight.getValue(); } /** * The minimum height of the tab. */ public final DoubleProperty tabMinHeightProperty() { if (tabMinHeight == null) { tabMinHeight = new StyleableDoubleProperty(DEFAULT_TAB_MIN_HEIGHT) { --- 435,462 ---- * the height in tabs. Setting the min equal to the max will fix the height * of the tab. By default the min equals to the max. * * This value can also be set via CSS using {@code -fx-tab-min-height} * </p> + * @param value the minimum height of the tabs */ public final void setTabMinHeight(double value) { tabMinHeightProperty().setValue(value); } /** * The minimum height of the tabs in the TabPane. * ! * @return the minimum height of the tabs */ public final double getTabMinHeight() { return tabMinHeight == null ? DEFAULT_TAB_MIN_HEIGHT : tabMinHeight.getValue(); } /** * The minimum height of the tab. + * @return the minimum height property */ public final DoubleProperty tabMinHeightProperty() { if (tabMinHeight == null) { tabMinHeight = new StyleableDoubleProperty(DEFAULT_TAB_MIN_HEIGHT) {
*** 478,495 **** } /** * The maximum height of the tabs in the TabPane. * ! * @return The maximum height of the tabs. */ public final double getTabMaxHeight() { return tabMaxHeight == null ? DEFAULT_TAB_MAX_HEIGHT : tabMaxHeight.getValue(); } /** * <p>The maximum height of the tabs in the TabPane.</p> */ public final DoubleProperty tabMaxHeightProperty() { if (tabMaxHeight == null) { tabMaxHeight = new StyleableDoubleProperty(DEFAULT_TAB_MAX_HEIGHT) { --- 493,511 ---- } /** * The maximum height of the tabs in the TabPane. * ! * @return The maximum height of the tabs */ public final double getTabMaxHeight() { return tabMaxHeight == null ? DEFAULT_TAB_MAX_HEIGHT : tabMaxHeight.getValue(); } /** * <p>The maximum height of the tabs in the TabPane.</p> + * @return the maximum height of the tabs */ public final DoubleProperty tabMaxHeightProperty() { if (tabMaxHeight == null) { tabMaxHeight = new StyleableDoubleProperty(DEFAULT_TAB_MAX_HEIGHT) {
< prev index next >