Package com.tagtraum.beatunes.analysis
Class EmptyTaskEditor<T extends Task>
- java.lang.Object
-
- com.tagtraum.beatunes.analysis.EmptyTaskEditor<T>
-
- All Implemented Interfaces:
TaskEditor<T>
public class EmptyTaskEditor<T extends Task> extends Object implements TaskEditor<T>
EmptyTaskEditor
. Useful forTask
s that are not configurable and therefore don't need a specialized editor.- Author:
- Hendrik Schreiber
- See Also:
Task.createEditor()
-
-
Constructor Summary
Constructors Constructor Description EmptyTaskEditor(T task)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BeaTunes
getApplication()
JComponent
getComponent()
This component could contain switches for settings - in this case it is just an empty panel (non-opaque), because we don't have any particular settings to deal with.T
getTask()
Creates a new task that reflects the values set in the editor.T
getTask(T task)
Initializes the passed task with the values set in this editor.void
init()
void
setApplication(BeaTunes beaTunes)
void
setTask(T task)
Initializes this editor with the values contained in the passed task.
-
-
-
Constructor Detail
-
EmptyTaskEditor
public EmptyTaskEditor(T task)
-
-
Method Detail
-
setApplication
public void setApplication(BeaTunes beaTunes)
- Specified by:
setApplication
in interfaceTaskEditor<T extends Task>
-
getApplication
public BeaTunes getApplication()
- Specified by:
getApplication
in interfaceTaskEditor<T extends Task>
-
init
public void init()
- Specified by:
init
in interfaceTaskEditor<T extends Task>
-
getComponent
public JComponent getComponent()
This component could contain switches for settings - in this case it is just an empty panel (non-opaque), because we don't have any particular settings to deal with.- Specified by:
getComponent
in interfaceTaskEditor<T extends Task>
- Returns:
- an empty panel
-
setTask
public void setTask(T task)
Description copied from interface:TaskEditor
Initializes this editor with the values contained in the passed task.- Specified by:
setTask
in interfaceTaskEditor<T extends Task>
- Parameters:
task
- task
-
getTask
public T getTask(T task)
Description copied from interface:TaskEditor
Initializes the passed task with the values set in this editor.- Specified by:
getTask
in interfaceTaskEditor<T extends Task>
- Parameters:
task
- task to adjust- Returns:
- task that reflects the values set in the editor
-
getTask
public T getTask()
Description copied from interface:TaskEditor
Creates a new task that reflects the values set in the editor.- Specified by:
getTask
in interfaceTaskEditor<T extends Task>
- Returns:
- new task with with editor values
-
-