Interface TabExtension
-
- All Implemented Interfaces:
-
de.griefed.serverpackcreator.api.plugins.BaseInformation,de.griefed.serverpackcreator.api.plugins.ExtensionInformation,org.pf4j.ExtensionPoint
public interface TabExtension implements ExtensionInformation
Extension point for plugins which add additional javax.swing.JPanels as additional tabs to the ServerPackCreator GUI.
Griefed
-
-
Method Summary
Modifier and Type Method Description abstract ExtensionTabgetTab(VersionMeta versionMeta, ApiProperties apiProperties, Utilities utilities, Optional<CommentedConfig> pluginConfig, Optional<File> configFile)Builds the tab this plugin contributes to the GUI, once, when the main window is assembled. abstract IcongetIcon()Get the Icon for this tab to display to the ServerPackCreator GUI. abstract StringgetTitle()Get the title of this tab to display in the ServerPackCreator GUI. abstract StringgetTooltip()Get the tooltip for this tab to display in the ServerPackCreator GUI. -
Methods inherited from class de.griefed.serverpackcreator.api.plugins.ExtensionInformation
getExtensionId -
Methods inherited from class de.griefed.serverpackcreator.api.plugins.BaseInformation
getAuthor, getDescription, getName, getVersion -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getTab
abstract ExtensionTab getTab(VersionMeta versionMeta, ApiProperties apiProperties, Utilities utilities, Optional<CommentedConfig> pluginConfig, Optional<File> configFile)
Builds the tab this plugin contributes to the GUI, once, when the main window is assembled.
Called by
ApiPlugins.addTabExtensionTabsat GUI startup — not per generation — so the returned ExtensionTab is long-lived and owns its own state. A throw here is caught and logged against the plugin rather than propagated, so a failing tab costs its own tab and not the window. icon and title name it in the tab bar.Returns the component to add to the ServerPackCreator GUI as a tab.
-
getIcon
abstract Icon getIcon()
Get the Icon for this tab to display to the ServerPackCreator GUI.
Returns the icon to be used by the added tab.
-
getTitle
abstract String getTitle()
Get the title of this tab to display in the ServerPackCreator GUI.
Returns the title of this plugin's tabbed pane.
-
getTooltip
abstract String getTooltip()
Get the tooltip for this tab to display in the ServerPackCreator GUI.
Returns the tooltip of this plugin's tabbed pane.
-
-
-
-