public final class IssueQuickSearch extends Object
The component given by IssueQuickSearch.getComponent()
contains:
Modifier and Type | Class and Description |
---|---|
static class |
IssueQuickSearch.RepositoryFilter
Determines what kind of repositories should be shown in the repositories combo box.
|
Modifier and Type | Method and Description |
---|---|
static IssueQuickSearch |
create()
Creates an IssueQuickSearch providing all repositories and none of them preselected.
|
static IssueQuickSearch |
create(FileObject context)
Creates an IssueQuickSearch providing all repositories, where one might
be preselected determined by the given file - e.g.
|
static IssueQuickSearch |
create(FileObject context,
IssueQuickSearch.RepositoryFilter filter)
Creates an IssueQuickSearch providing a filtered list of repositories, where one might
be preselected determined by the given file - e.g.
|
JComponent |
getComponent()
Returns the IssueQuickSearch component.
|
Issue |
getIssue()
Returns the issue selected in the issue combo bar or null if none selected.
|
Repository |
getSelectedRepository()
Returns the selected repository.
|
static Issue |
selectIssue(String message,
Repository repository,
JPanel caller,
HelpCtx helpCtx)
Opens a modal dialog to search after Issues from the given repository.
|
void |
setChangeListener(ChangeListener listener)
Register for notifications about changes in the issue combo bar.
|
void |
setEnabled(boolean enabled)
Sets whether or not this component is enabled.
|
void |
setIssue(Issue issue)
Select the given issue in the combo bar.
|
void |
setRepository(Repository repository)
Sets the repository for which issues should be made available in
the issue combo bar.
|
public static IssueQuickSearch create()
public static IssueQuickSearch create(FileObject context)
context
- a file to give a hint about a repository to preselectpublic static IssueQuickSearch create(FileObject context, IssueQuickSearch.RepositoryFilter filter)
context
- a file to give a hint about a repository to preselectfilter
- what kind of repositories should be providedpublic static Issue selectIssue(String message, Repository repository, JPanel caller, HelpCtx helpCtx)
message
- a message to displayed together with the combo box - e.g. Select task that this task depends on.repository
- the repository from which is the Issue to be foundcaller
- caller componenthelpCtx
- a help context or null if nonepublic void setRepository(Repository repository)
repository
- public JComponent getComponent()
public Issue getIssue()
public void setChangeListener(ChangeListener listener)
listener
- public void setIssue(Issue issue)
issue
- public Repository getSelectedRepository()
public void setEnabled(boolean enabled)
enabled
-