com.evolution.player.ui.dialogs
Interface IFilteredSelectionDialog<T>

Type Parameters:
T - the type of the elements this dialog alows to select

public interface IFilteredSelectionDialog<T>

A filtered selection dialog allows to select T elements and provide a filter text to filter all T elements shown in the dialog.

Since:
0.6
See Also:
EvolutionPlayerUI#createArtistSelectionDialog(org.eclipse.swt.widgets.Shell, boolean), EvolutionPlayerUI#createAlbumSelectionDialog(org.eclipse.swt.widgets.Shell, boolean), EvolutionPlayerUI#createSongSelectionDialog(org.eclipse.swt.widgets.Shell, boolean)

Method Summary
 boolean close()
          Closes this window, disposes its shell, and removes this window from its window manager (if it has one).
 java.util.List<T> openDialog()
          Open this dialog and return the selected elements.
 void setInitialPattern(java.lang.String text)
          Sets the initial pattern used by the filter.
 void setTitle(java.lang.String title)
          Sets the title for this dialog.
 

Method Detail

setTitle

void setTitle(java.lang.String title)
Sets the title for this dialog.

Parameters:
title - the title

setInitialPattern

void setInitialPattern(java.lang.String text)
Sets the initial pattern used by the filter. This text is copied into the selection input on the dialog. A full selection is used in the pattern input field.

Parameters:
text - initial pattern for the filter

openDialog

java.util.List<T> openDialog()
Open this dialog and return the selected elements.

Returns:
the selected elements or null if the dialog was canceled

close

boolean close()
Closes this window, disposes its shell, and removes this window from its window manager (if it has one).

Returns:
true if the window is (or was already) closed, and false if it is still open