Package de.xima.fc.gui.model.designer
Class TabModel
java.lang.Object
de.xima.fc.gui.model.designer.TabModel
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
TabModel.IFrame
,TabModel.Include
POJO model for a tab in the designer, such as the workflow or form editor tab.
- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Component model showing its content as an iframe in the main window view.static final class
Component model showing its content as a ui:include in the main window view. -
Method Summary
-
Method Details
-
equals
-
getError
- Returns:
- The error that occurred in the tab, or
null
when no error.
-
getIcon
- Returns:
- The icon for this tab that is shown next to the tab. Should not be
null
, onlyGuiIcon.EMPTY
.
-
getId
- Returns:
- Unique ID of the tab.
-
getLabel
- Returns:
- Label of the tab that is shown on the menu.
-
getParentId
- Returns:
- ID of the parent that contains this tab menu entry. Used for grouping when showing a list of available tabs.
-
getParentLabel
- Returns:
- Label of the parent / group that contains this tab menu entry. Used for grouping when showing a list of available tabs.
-
getTitle
- Returns:
- Title (tooltip) of the tab that is shown on the menu.
-
getType
- Returns:
- How the tab should be rendered ,e.g. as an iframe or as a ui:include etc.
-
hashCode
public int hashCode() -
isClosable
public boolean isClosable()- Returns:
- Whether this tab can be closed or must always stay opened.
-
isDisabled
public boolean isDisabled()- Returns:
- Whether this tab is disabled and cannot be opened.
-
isHasUnsavedChanges
public boolean isHasUnsavedChanges()- Returns:
- Whether this tab has got any unsaved changes.
-
isOpen
public boolean isOpen()- Returns:
- Whether this tab is currently opened (displayed).
-
setError
- Parameters:
error
- The error that occurred in the tab, ornull
when no error.
-
setHasUnsavedChanges
public void setHasUnsavedChanges(boolean hasUnsavedChanges) - Parameters:
hasUnsavedChanges
- Whether this tab has got any unsaved changes.
-
setOpen
public void setOpen(boolean open) - Parameters:
open
- Whether this tab is currently opened (displayed).
-