-
- All Superinterfaces:
ilusr.core.interfaces.IDispose
- All Known Implementing Classes:
TabContent
public interface ITabContent extends ilusr.core.interfaces.IDispose
- Author:
- Jeff Riggle
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addCloseListener(ICloseable closeable)
Adds a close listener to this tab.javafx.beans.property.SimpleBooleanProperty
canClose()
void
close()
Closes the tab.javafx.beans.property.SimpleObjectProperty<javafx.scene.Node>
content()
javafx.collections.ObservableList<javafx.scene.control.MenuItem>
contextMenuItems()
javafx.beans.property.SimpleStringProperty
customData()
String
getId()
void
removeCloseListener(ICloseable closeable)
void
setId(String id)
javafx.beans.property.SimpleObjectProperty<javafx.scene.Node>
titleGraphic()
void
titleGraphic(String title)
void
titleGraphic(javafx.scene.Node title)
javafx.beans.property.SimpleStringProperty
toolTip()
-
-
-
Method Detail
-
getId
String getId()
- Returns:
- The identifier associated with this tab.
-
setId
void setId(String id)
- Parameters:
id
- The identifier associated with this tab.
-
content
javafx.beans.property.SimpleObjectProperty<javafx.scene.Node> content()
- Returns:
- The content to display in the tab.
-
canClose
javafx.beans.property.SimpleBooleanProperty canClose()
- Returns:
- If the tab can be closed by the user or not.
-
toolTip
javafx.beans.property.SimpleStringProperty toolTip()
- Returns:
- The tooltip to show on hover of the tab header.
-
contextMenuItems
javafx.collections.ObservableList<javafx.scene.control.MenuItem> contextMenuItems()
- Returns:
- The @see MenuItems to show when a user right clicks the tab.
-
titleGraphic
void titleGraphic(javafx.scene.Node title)
- Parameters:
title
- A @see Node to display in the header area of a tab.
-
titleGraphic
void titleGraphic(String title)
- Parameters:
title
- A String to display in the header area of a tab.
-
titleGraphic
javafx.beans.property.SimpleObjectProperty<javafx.scene.Node> titleGraphic()
- Returns:
- A @see Node to display in the header area of a tab.
-
close
void close()
Closes the tab.
-
addCloseListener
void addCloseListener(ICloseable closeable)
Adds a close listener to this tab. This listener will be notified when the tab is closed.- Parameters:
closeable
- A @see IClosable to add to this tab.
-
removeCloseListener
void removeCloseListener(ICloseable closeable)
- Parameters:
closeable
- A @see IClosable to remove from this tab.
-
customData
javafx.beans.property.SimpleStringProperty customData()
- Returns:
- The custom data to associate with this tab.
-
-