Package com.tagtraum.beatunes.inspection
Class InspectionPreferences
- java.lang.Object
-
- com.tagtraum.beatunes.inspection.InspectionPreferences
-
- All Implemented Interfaces:
ConfigurableComponent
public class InspectionPreferences extends Object implements ConfigurableComponent
Inspection Preferences.- Author:
- Hendrik Schreiber
-
-
Constructor Summary
Constructors Constructor Description InspectionPreferences(BeaTunes application)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JComponent
$$$getRootComponent$$$()
DefaultTreeModel
createInspectorTreeModel(List<Inspector> inspectors)
boolean
excludeAudiobooks()
boolean
excludeITunesU()
boolean
excludeMovies()
boolean
excludeMusicVideos()
boolean
excludePodcasts()
boolean
excludeProtected()
boolean
excludeShared()
boolean
excludeTVShows()
boolean
excludeUnchecked()
BeaTunes
getApplication()
Icon
getIcon()
Icon representing the component in the preferences dialog.String
getId()
Identifier that is used to uniquely identify a given component.String
getName()
Name that will be used in the preferences dialog for this component.JComponent
getPreferenceView()
Returns a JComponent that allows the user to configure this component.String
getToolTip()
Tooltip that will be shown in the preferences dialog.boolean
isDelayCommit()
void
load(nu.xom.Element parent)
Is called by the application when preferences are loaded.void
store(nu.xom.Element parent)
Will be called by the application when it thinks that configurable components should store their configuration.
-
-
-
Constructor Detail
-
InspectionPreferences
public InspectionPreferences(BeaTunes application)
- Parameters:
application
- beaTunes
-
-
Method Detail
-
getApplication
public BeaTunes getApplication()
-
excludePodcasts
public boolean excludePodcasts()
-
excludeMovies
public boolean excludeMovies()
-
excludeMusicVideos
public boolean excludeMusicVideos()
-
excludeTVShows
public boolean excludeTVShows()
-
excludeUnchecked
public boolean excludeUnchecked()
-
excludeProtected
public boolean excludeProtected()
-
excludeITunesU
public boolean excludeITunesU()
-
excludeAudiobooks
public boolean excludeAudiobooks()
-
excludeShared
public boolean excludeShared()
-
createInspectorTreeModel
public DefaultTreeModel createInspectorTreeModel(List<Inspector> inspectors)
-
getId
public String getId()
Description copied from interface:ConfigurableComponent
Identifier 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:
getId
in interfaceConfigurableComponent
- Returns:
- id
- See Also:
PreferencesDialog.getConfigurableComponent(String)
-
getPreferenceView
public JComponent getPreferenceView()
Description copied from interface:ConfigurableComponent
Returns a JComponent that allows the user to configure this component. The preference view will be used as part of the preferences dialog.- Specified by:
getPreferenceView
in interfaceConfigurableComponent
- Returns:
- component
-
getIcon
public Icon getIcon()
Description copied from interface:ConfigurableComponent
Icon representing the component in the preferences dialog.- Specified by:
getIcon
in interfaceConfigurableComponent
- Returns:
- Icon
-
getName
public String getName()
Description copied from interface:ConfigurableComponent
Name that will be used in the preferences dialog for this component.- Specified by:
getName
in interfaceConfigurableComponent
- Returns:
- name of the component
-
getToolTip
public String getToolTip()
Description copied from interface:ConfigurableComponent
Tooltip that will be shown in the preferences dialog.- Specified by:
getToolTip
in interfaceConfigurableComponent
- Returns:
- tool tip
-
isDelayCommit
public boolean isDelayCommit()
-
store
public void store(nu.xom.Element parent) throws ConfigurationException
Description copied from interface:ConfigurableComponent
Will be called by the application when it thinks that configurable components should store their configuration.- Specified by:
store
in interfaceConfigurableComponent
- Parameters:
parent
- empty parent element should contain all configuration children for this component once this method returns- Throws:
ConfigurationException
-
load
public void load(nu.xom.Element parent) throws ConfigurationException
Description copied from interface:ConfigurableComponent
Is called by the application when preferences are loaded. The component is responsible for interpreting the parent element.- Specified by:
load
in interfaceConfigurableComponent
- Parameters:
parent
- configuration- Throws:
ConfigurationException
-
$$$getRootComponent$$$
public JComponent $$$getRootComponent$$$()
-
-