/** * Sets whether tab closure is permitted using a simple Boolean value. This is a shortcut for * calling {@link #setOnCanClose} with a functional interface that returns a fixed Boolean * value. * * @param canClose If true, the tab may be closed. */ public void setOnCanClose(boolean canClose) { setOnCanClose(() -> canClose); }