The lifecycle methods must not be called by the implementor, they are being called
implicitly by the Workbench.
| Modifier and Type | Field and Description |
|---|---|
| private Ikon | |
| private Image | |
| private final String | |
| private final ObservableList | |
| private final ObservableList | |
| private Workbench |
| Access | Constructor and Description |
|---|---|
| protected | WorkbenchModule(String
of this module name, Ikon of this module icon)Super constructor to be called by the implementing class. |
| protected | WorkbenchModule(String
of this module name, Image of this module icon)Super constructor to be called by the implementing class. |
| Modifier and Type | Method and Description |
|---|---|
| public abstract Node | Returns: content to be displayed in this moduleGets called whenever the currently displayed content is being switched to this module. |
| public final void | |
| public void | deactivate()
Gets called whenever this module is the currently displayed content and the content is being switched to another module. |
| public boolean | Returns: true if the module should be closed, false if the module should not be closed and the closing process should be interruptedGets called when this module is explicitly being closed by the user in the toolbar. |
| public final Node | |
| public final String | |
| public final ObservableList | Returns: theObservableList of items which are displayed on the left side of the
automatically added ToolbarControlReturns an |
| public final ObservableList | Returns: theObservableList of items which are displayed on the right side of the
automatically generated ToolbarControlReturns an |
| public final Workbench | |
| public void | |
| public String |
| icon | back to summary |
|---|---|
| private Ikon icon | |
| imgIcon | back to summary |
|---|---|
| private Image imgIcon | |
| name | back to summary |
|---|---|
| private final String name | |
| toolbarControlsLeft | back to summary |
|---|---|
| private final ObservableList<ToolbarItem> toolbarControlsLeft | |
| toolbarControlsRight | back to summary |
|---|---|
| private final ObservableList<ToolbarItem> toolbarControlsRight | |
| workbench | back to summary |
|---|---|
| private Workbench workbench | |
| WorkbenchModule | back to summary |
|---|---|
| protected WorkbenchModule(String name, Ikon icon) Super constructor to be called by the implementing class.
Uses a
| |
| WorkbenchModule | back to summary |
|---|---|
| protected WorkbenchModule(String name, Image icon) Super constructor to be called by the implementing class. | |
| activate | back to summary |
|---|---|
| public abstract Node activate() Gets called whenever the currently displayed content is being switched to this module. Implementation Note if a module is being opened from the overview for the first time, it will get initialized first by calling init(), afterwards activate() will be called.
| |
| close | back to summary |
|---|---|
| public final void close() Closes this module. | |
| deactivate | back to summary |
|---|---|
| public void deactivate() Gets called whenever this module is the currently displayed content and the content is being switched to another module. Implementation Note Assuming Module 1 and Module 2, with both being already initialized and Module 1 being the currently displayed content. When switching the content to Module 2, deactivate() gets called on Module 1, followed by a call of activate() on Module 2. | |
| destroy | back to summary |
|---|---|
| public boolean destroy() Gets called when this module is explicitly being closed by the user in the toolbar. Implementation Note Lifecycle: When Implementation Specification To implement an asynchronous, controlled closing of a module, execute the immediate
action (e.g. open a dialog) and define the asynchronous behavior in advance to call
| |
| getIcon | back to summary |
|---|---|
| public final Node getIcon() Returns the icon of this module as a | |
| getName | back to summary |
|---|---|
| public final String getName() Returns the name of this module.
| |
| getToolbarControlsLeft | back to summary |
|---|---|
| public final ObservableList Returns an
| |
| getToolbarControlsRight | back to summary |
|---|---|
| public final ObservableList Returns an
| |
| getWorkbench | back to summary |
|---|---|
| public final Workbench getWorkbench() | |
| init | back to summary |
|---|---|
| public void init(Workbench workbench) Gets called when there is no Implementation Note Clicking on the Implementation Specification the implementor of this method must call
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |