public class FluigentJobConfigurationAddon extends ComponentAddonUIAdapter<FluigentJobConfiguration>
Constructor and Description |
---|
FluigentJobConfigurationAddon(YouScopeClient client,
YouScopeServer server)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
commitChanges(FluigentJobConfiguration configuration)
Is called when the current state of all forms etc.
|
protected java.awt.Component |
createUI(FluigentJobConfiguration configuration)
Return a Component (typically a JPanel) containing the UI elements of the addon.
|
protected void |
initializeDefaultConfiguration(FluigentJobConfiguration configuration)
This function is called, and only called, if
AddonUIAdapter.toFrame() or AddonUIAdapter.toPanel(YouScopeFrame) is called without
calling before ComponentAddonUIAdapter.setConfiguration(Configuration) . |
addUIListener, closeAddon, createUI, getConfiguration, getConfigurationClass, removeUIListener, setConfiguration
addFrameListener, getAddonMetadata, getClient, getCloseButtonLabel, getContainingFrame, getMicroscope, getPreferredSize, getServer, getTitle, isInitialized, isMaximizable, isMaximize, isResizable, isSeparateFrame, isShowCloseButton, notifyLayoutChanged, removeFrameListener, sendErrorMessage, sendMessage, setCloseButtonLabel, setDescription, setMaximizable, setMaximize, setPreferredSize, setResizable, setShowCloseButton, setTitle, toFrame, toPanel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAddonMetadata
public FluigentJobConfigurationAddon(YouScopeClient client, YouScopeServer server) throws AddonException
client
- Interface to the client.server
- Interface to the server.AddonException
protected java.awt.Component createUI(FluigentJobConfiguration configuration) throws AddonException
ComponentAddonUIAdapter
AddonUIAdapter.setShowCloseButton(boolean)
).createUI
in class ComponentAddonUIAdapter<FluigentJobConfiguration>
configuration
- The current configuration which should be loaded.AddonException
protected void commitChanges(FluigentJobConfiguration configuration)
ComponentAddonUIAdapter
commitChanges
in class ComponentAddonUIAdapter<FluigentJobConfiguration>
configuration
- The configuration in which changes should be saved.protected void initializeDefaultConfiguration(FluigentJobConfiguration configuration) throws AddonException
ComponentAddonUIAdapter
AddonUIAdapter.toFrame()
or AddonUIAdapter.toPanel(YouScopeFrame)
is called without
calling before ComponentAddonUIAdapter.setConfiguration(Configuration)
. The configuration should then be initialized to its default settings,
which may depend on the state of the microscope, etc.initializeDefaultConfiguration
in class ComponentAddonUIAdapter<FluigentJobConfiguration>
configuration
- Configuration to set to initial values.AddonException