public interface PreviewUI
Implementations of this interface provide a
which will be placed in a separated tab in the Preview Settings. When a workspace is
selected this class receives the current
PreviewModel so the panel
can access the central
PreviewProperties and can read/write settings
PreviewUI are singleton services and implementations need to add the following annotation to be recognized by the system:
|Modifier and Type||Method and Description|
Returns the icon of the tab or
Returns the title of the tab
Initialization method called when a workspace is selected and a panel is about to be requested.
Method called when the UI is unloaded and the panel to be destroyed.
void setup(PreviewModel previewModel)
previewModel- the model associated to the current workspace
JPanelcomponent to be displayed.
is always called after
setup() so the implementation
can initialize the panel with the model. Note that the panel is destroyed
unsetup() is called. In other words, a new panel is
requested at each workspace selection.
PreviewModelis passed through
Copyright © 2007–2017. All rights reserved.