API REVIEW request for RT17668 Disable/enable tabs in a TabPane
tbee at tbee.org
Thu Apr 12 21:57:59 PDT 2012
One non-mainstream scenario could be considered: the situation where a tab is not selectable by the user anymore, only programmatically, but the contents are still enabled (e.g. a wizard with enforced steps).
This could be achieved by making the calls below only influence the tab itself, not the content, but that would make the programmer responsible for disabling the content. This is not the main usage (although, if a tab is disabled, how likely is it the content is being shown).
A better solution would be to also introduce "setSelectable" and "isSelectable", which is a part of what is needed to implement "disabled".
On 2012-04-12 23:39, Kinsley Wong wrote:
> JIRA: http://javafx-jira.kenai.com/browse/RT-17668
> This tweak will add the following api to Tab
> public final void setDisable(boolean value);
> public final boolean isDisable();
> * Sets the disabled state of this tab. Setting
> * disable to true will cause this tab and the tab content to
> * become disabled.
> * @defaultValue false
> public final BooleanProperty disableProperty();
More information about the openjfx-dev