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 forTasks 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 BeaTunesgetApplication()JComponentgetComponent()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.TgetTask()Creates a new task that reflects the values set in the editor.TgetTask(T task)Initializes the passed task with the values set in this editor.voidinit()voidsetApplication(BeaTunes beaTunes)voidsetTask(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:
setApplicationin interfaceTaskEditor<T extends Task>
-
getApplication
public BeaTunes getApplication()
- Specified by:
getApplicationin interfaceTaskEditor<T extends Task>
-
init
public void init()
- Specified by:
initin 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:
getComponentin interfaceTaskEditor<T extends Task>- Returns:
- an empty panel
-
setTask
public void setTask(T task)
Description copied from interface:TaskEditorInitializes this editor with the values contained in the passed task.- Specified by:
setTaskin interfaceTaskEditor<T extends Task>- Parameters:
task- task
-
getTask
public T getTask(T task)
Description copied from interface:TaskEditorInitializes the passed task with the values set in this editor.- Specified by:
getTaskin 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:TaskEditorCreates a new task that reflects the values set in the editor.- Specified by:
getTaskin interfaceTaskEditor<T extends Task>- Returns:
- new task with with editor values
-
-