Class ExtendedMeasureProviderConfigurationContainer
- java.lang.Object
-
- de.fzi.power.ui.views.configuration.ExtendedMeasureProviderConfigurationUI
-
- de.fzi.power.ui.views.configuration.ExtendedMeasureProviderConfigurationContainer
-
public class ExtendedMeasureProviderConfigurationContainer extends ExtendedMeasureProviderConfigurationUI
-
-
Field Summary
Fields Modifier and Type Field Description protected Collection<ExtendedMeasureProviderConfigurationUI>
subsumedUIs
-
Constructor Summary
Constructors Constructor Description ExtendedMeasureProviderConfigurationContainer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createControl(Composite parent)
Creates the top level control for this properties tab under the given parent composite.Control
getControl()
Return the top level control.String
getErrorMessage()
Returns the current error message for this tab.String
getName()
Returns the name of this tab.void
initializeFrom(Map<String,Object> configuration)
Initializes this tab's controls with values from the given properties map.boolean
isValid()
Returns whether this tab is in a valid state.void
performApply(Map<String,Object> configuration)
Copies values from this tab into the given properties map.
-
-
-
Field Detail
-
subsumedUIs
protected Collection<ExtendedMeasureProviderConfigurationUI> subsumedUIs
-
-
Method Detail
-
createControl
public void createControl(Composite parent)
Description copied from class:ExtendedMeasureProviderConfigurationUI
Creates the top level control for this properties tab under the given parent composite. This method is called once on tab creation.- Specified by:
createControl
in classExtendedMeasureProviderConfigurationUI
- Parameters:
parent
- the parent composite
-
initializeFrom
public void initializeFrom(Map<String,Object> configuration)
Description copied from class:ExtendedMeasureProviderConfigurationUI
Initializes this tab's controls with values from the given properties map. This method is called when a configuration is selected to view or edit, after this tab's control has been created.- Specified by:
initializeFrom
in classExtendedMeasureProviderConfigurationUI
- Parameters:
configuration
- the properties
-
performApply
public void performApply(Map<String,Object> configuration)
Description copied from class:ExtendedMeasureProviderConfigurationUI
Copies values from this tab into the given properties map.- Specified by:
performApply
in classExtendedMeasureProviderConfigurationUI
- Parameters:
configuration
- the properties
-
getErrorMessage
public String getErrorMessage()
Description copied from class:ExtendedMeasureProviderConfigurationUI
Returns the current error message for this tab. May benull
to indicate no error message.- Specified by:
getErrorMessage
in classExtendedMeasureProviderConfigurationUI
- Returns:
- the error message, or
null
if none
-
isValid
public boolean isValid()
Description copied from class:ExtendedMeasureProviderConfigurationUI
Returns whether this tab is in a valid state.- Overrides:
isValid
in classExtendedMeasureProviderConfigurationUI
- Returns:
- whether this tab is in a valid state
-
getName
public String getName()
Description copied from class:ExtendedMeasureProviderConfigurationUI
Returns the name of this tab.- Specified by:
getName
in classExtendedMeasureProviderConfigurationUI
- Returns:
- the name of this tab
-
getControl
public Control getControl()
Description copied from class:ExtendedMeasureProviderConfigurationUI
Return the top level control.createControl
has to be executed first.- Specified by:
getControl
in classExtendedMeasureProviderConfigurationUI
- Returns:
- the top level control
-
-