public final class ScopeController extends Object
ComponentUtils
to create instances of this class.Modifier and Type | Field and Description |
---|---|
protected T |
component |
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(ChangeListener listener)
Adds a
ChangeListener to the listener list. |
protected void |
fireChange()
Fires a change event to all registered listeners.
|
T |
getComponent() |
SearchInfo |
getSearchInfo()
Get search info for selected search scope.
|
String |
getSelectedScopeId() |
String |
getSelectedScopeTitle() |
boolean |
hasListeners()
Checks if there are any listeners registered to this
ChangeSupport . |
void |
removeChangeListener(ChangeListener listener)
Removes a
ChangeListener from the listener list. |
protected T extends JComponent component
@CheckForNull public String getSelectedScopeId()
@CheckForNull public String getSelectedScopeTitle()
@CheckForNull public SearchInfo getSearchInfo()
public final T getComponent()
public final void addChangeListener(@NonNull ChangeListener listener)
ChangeListener
to the listener list. The same listener
object may be added more than once, and will be called as many times as
it is added. If
listener
is null, no exception is thrown and no action is
taken.listener
- the
ChangeListener
to be added.public final void removeChangeListener(@NonNull ChangeListener listener)
ChangeListener
from the listener list. If
listener
was added more than once, it will be notified one
less time after being removed. If
listener
is null, or was never added, no exception is thrown
and no action is taken.listener
- the
ChangeListener
to be removed.protected final void fireChange()
public final boolean hasListeners()
ChangeSupport
.