public final class ScopeOptionsController extends Object
ComponentUtils
to create instances of this class.Modifier and Type | Field and Description |
---|---|
protected JCheckBox |
chkUseIgnoreList |
protected T |
component |
protected JPanel |
ignoreListOptionPanel |
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() |
JPanel |
getFileNameComponent()
Get the panel containing controls related to file name pattern settings.
|
SearchScopeOptions |
getSearchScopeOptions()
Return search scope options reflecting the actual state of the panel.
|
boolean |
hasListeners()
Checks if there are any listeners registered to this
ChangeSupport . |
boolean |
isFileNameRegExp() |
boolean |
isSearchInArchives()
State of checkbox for enabling searching in archives.
|
boolean |
isSearchInGenerated()
State of checkbox for enabling searching in generated sources.
|
boolean |
isUseIgnoreList()
State of checkbox for using ignore list.
|
void |
removeChangeListener(ChangeListener listener)
Removes a
ChangeListener from the listener list. |
void |
setFileNameRegexp(boolean fileNameRegexp)
Enable/disable regular expression mode.
|
void |
setSearchInArchives(boolean searchInArchives)
Enable/disable searching in archives.
|
void |
setSearchInGenerated(boolean searchInGenerated)
Enable/disable searching in generated sources.
|
void |
setUseIgnoreList(boolean useIgnoreList)
Enable/disable using ignore list.
|
protected JPanel ignoreListOptionPanel
protected JCheckBox chkUseIgnoreList
protected T extends JComponent component
public SearchScopeOptions getSearchScopeOptions()
public boolean isSearchInArchives()
public boolean isSearchInGenerated()
SharabilityQuery
public boolean isUseIgnoreList()
SearchScopeOptions
object returned
from ScopeOptionsController.getSearchScopeOptions()
includes filter for ignored files.public boolean isFileNameRegExp()
public void setSearchInArchives(boolean searchInArchives)
public void setSearchInGenerated(boolean searchInGenerated)
public void setUseIgnoreList(boolean useIgnoreList)
public void setFileNameRegexp(boolean fileNameRegexp)
@NullUnknown public JPanel getFileNameComponent()
ComponentUtils.adjustPanelsForOptions(JPanel, JPanel, boolean, FileNameController)
.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
.