/** * Set to true to make the tab closable. A tab that is closable has an icon that, when clicked, * triggers a close event. * * @param closable If true, the tab is closable. * @see #onCanClose */ @PropertySetter(value = "closable", defaultValue = "false", description = "True if the tab is closable. A closable tab has an icon that, when clicked, removes " + "and destroys the tab.") public void setClosable(boolean closable) { propertyChange("closable", this.closable, this.closable = closable, true); }
/** * Sets the tabs selected status. * * @param selected The new selected status. * @param notifyParent If true, notify the parent tab view of the status change. */ protected void _setSelected(boolean selected, boolean notifyParent) { if (propertyChange("selected", this.selected, this.selected = selected, true)) { if (notifyParent && getParent() != null) { getTabview().setSelectedTab(selected ? this : null); } } }