- Direct Known Subclasses:
- Enclosing class:
All Methods Instance Methods Concrete Methods Modifier and Type Method Description
createCallable(Collection<AudioSong> songs, boolean allowUserInteraction)Creates a
CallableSolutionthat may be called later to actually apply this solution.
getClassDescription()Returns a common description for this class of solution.
getClassId()Id for a class of solutions.
getDescription()Description of this solution.
getId()Unique id for this solution instance.
getIssue()Return issue this is a solution to.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public Issue<?> getIssue()Return issue this is a solution to.
public String getLanguage()
public void setLanguage(String language)
public CallableSolution createCallable(Collection<AudioSong> songs, boolean allowUserInteraction)
CallableSolutionthat may be called later to actually apply this solution. You may return
nullto signal, that the callable could not be created, perhaps because the user cancelled some interaction.
This method is typically called on the EDT to allow potential user interaction, so it must execute quickly.
- Specified by:
songs- songs this solution should be applied to, i.e. the songs the user selected in the UI
allowUserInteraction- if set to true the solution may show a dialog asking for confirmation or some other form of visual user interaction. If set to false, the solution has to be applied silently.
- a callable, if the problem can be solved,
null, if the user cancelled or some other problem occurred
public String getDescription()Description of this solution. You may use HTML, but no enclosing <html> tags. E.g.:
My <em>super</em> solution.
public String getClassDescription()Returns a common description for this class of solution. This is used when the same kind (or class) of solution should be used for a collection of issues. In other words, the user selects multiple issues and wants them all solved in the same way. This implies, that there cannot be any user interaction.
If this solution does not make any sense as a class solution, this method must return
- Specified by:
- description contains description for a whole collection of issues, not an individual one or null, if this solution cannot be applied to multiple issues at once (because it is too specific for a given issue)
- See Also:
public BeaTunes getApplication()
public String getId()Unique id for this solution instance. May be used in hyperlinks.
public String getClassId()Id for a class of solutions. If this solutions cannot be applied for multiple issues at once, this method must return