public final class ScopeController
extends java.lang.Object
ComponentUtils to create instances of this class.| Modifier and Type | Field | Description |
|---|---|---|
protected T |
component |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addChangeListener(javax.swing.event.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.
|
java.lang.String |
getSelectedScopeId() |
|
java.lang.String |
getSelectedScopeTitle() |
|
boolean |
hasListeners() |
Checks if there are any listeners registered to this
ChangeSupport. |
void |
removeChangeListener(javax.swing.event.ChangeListener listener) |
Removes a
ChangeListener from the listener list. |
@CheckForNull public java.lang.String getSelectedScopeId()
@CheckForNull public java.lang.String getSelectedScopeTitle()
@CheckForNull public SearchInfo getSearchInfo()
public final T getComponent()
public final void addChangeListener(@NonNull
javax.swing.event.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
javax.swing.event.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.Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.