Package com.tagtraum.beatunes.matchtable
Class MatchTablePreferences
- java.lang.Object
-
- com.tagtraum.beatunes.matchtable.MatchTablePreferences
-
- All Implemented Interfaces:
ConfigurableComponent
public class MatchTablePreferences extends Object implements ConfigurableComponent
MatchTablePreferences.- Author:
- Hendrik Schreiber
-
-
Constructor Summary
Constructors Constructor Description MatchTablePreferences(BeaTunes application)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JComponent$$$getRootComponent$$$()voidaddMatchRuleSetListener(ListDataListener matchRuleSetListener)BeaTunesgetApplication()IcongetIcon()Icon representing the component in the preferences dialog.StringgetId()Identifier that is used to uniquely identify a given component.MatchRuleSetgetMatchRuleSet(long id)DefaultComboBoxModel<MatchRuleSet>getMatchRuleSetModel()List<MatchRuleSet>getMatchRuleSets()StringgetName()Name that will be used in the preferences dialog for this component.JComponentgetPreferenceView()Returns a JComponent that allows the user to configure this component.StringgetToolTip()Tooltip that will be shown in the preferences dialog.voidload(nu.xom.Element parent)Is called by the application when preferences are loaded.voidstore(nu.xom.Element parent)Will be called by the application when it thinks that configurable components should store their configuration.voidstore(nu.xom.Element matchRuleSetElement, MatchRuleSet matchRuleSet)
-
-
-
Constructor Detail
-
MatchTablePreferences
public MatchTablePreferences(BeaTunes application)
- Parameters:
application- beaTunes
-
-
Method Detail
-
getApplication
public BeaTunes getApplication()
-
getMatchRuleSet
public MatchRuleSet getMatchRuleSet(long id)
-
addMatchRuleSetListener
public void addMatchRuleSetListener(ListDataListener matchRuleSetListener)
-
getMatchRuleSetModel
public DefaultComboBoxModel<MatchRuleSet> getMatchRuleSetModel()
-
getId
public String getId()
Description copied from interface:ConfigurableComponentIdentifier that is used to uniquely identify a given component. This id will be used to mark the component in the persistently stored configuration.- Specified by:
getIdin interfaceConfigurableComponent- Returns:
- id
- See Also:
PreferencesDialog.getConfigurableComponent(String)
-
getPreferenceView
public JComponent getPreferenceView()
Description copied from interface:ConfigurableComponentReturns a JComponent that allows the user to configure this component. The preference view will be used as part of the preferences dialog.- Specified by:
getPreferenceViewin interfaceConfigurableComponent- Returns:
- component
-
getIcon
public Icon getIcon()
Description copied from interface:ConfigurableComponentIcon representing the component in the preferences dialog.- Specified by:
getIconin interfaceConfigurableComponent- Returns:
- Icon
-
getName
public String getName()
Description copied from interface:ConfigurableComponentName that will be used in the preferences dialog for this component.- Specified by:
getNamein interfaceConfigurableComponent- Returns:
- name of the component
-
getToolTip
public String getToolTip()
Description copied from interface:ConfigurableComponentTooltip that will be shown in the preferences dialog.- Specified by:
getToolTipin interfaceConfigurableComponent- Returns:
- tool tip
-
getMatchRuleSets
public List<MatchRuleSet> getMatchRuleSets()
-
store
public void store(nu.xom.Element parent) throws ConfigurationExceptionDescription copied from interface:ConfigurableComponentWill be called by the application when it thinks that configurable components should store their configuration.- Specified by:
storein interfaceConfigurableComponent- Parameters:
parent- empty parent element should contain all configuration children for this component once this method returns- Throws:
ConfigurationException
-
store
public void store(nu.xom.Element matchRuleSetElement, MatchRuleSet matchRuleSet) throws ConfigurationException- Throws:
ConfigurationException
-
load
public void load(nu.xom.Element parent) throws ConfigurationExceptionDescription copied from interface:ConfigurableComponentIs called by the application when preferences are loaded. The component is responsible for interpreting the parent element.- Specified by:
loadin interfaceConfigurableComponent- Parameters:
parent- configuration- Throws:
ConfigurationException
-
$$$getRootComponent$$$
public JComponent $$$getRootComponent$$$()
-
-