public class IncludeExcludeVisualizer extends Object
PathMatcher
Constructor and Description |
---|
IncludeExcludeVisualizer()
Create a new visualizer.
|
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(ChangeListener l)
Add a listener to changes made by the user in the includes or excludes.
|
String |
getExcludePattern()
Get the current exclude pattern.
|
String |
getIncludePattern()
Get the current include pattern.
|
JComponent |
getVisualizerPanel()
Get the associated visual panel.
|
void |
removeChangeListener(ChangeListener l)
Remove a change listener.
|
void |
setExcludePattern(String pattern)
Set the exclude pattern.
|
void |
setIncludePattern(String pattern)
Set the include pattern.
|
void |
setRoots(File[] roots)
Configure a set of root directories to which the includes and excludes apply.
|
public IncludeExcludeVisualizer()
**
and an empty exclude pattern).public void setRoots(File[] roots) throws IllegalArgumentException
roots
- a set of valid root directories to searchIllegalArgumentException
- if roots contains a non-directory or
directory does not existpublic String getIncludePattern()
public void setIncludePattern(String pattern)
pattern
- the new pattern (never null)public String getExcludePattern()
public void setExcludePattern(String pattern)
pattern
- the new pattern (never null)public void addChangeListener(ChangeListener l)
l
- the listenerpublic void removeChangeListener(ChangeListener l)
l
- the listenerpublic JComponent getVisualizerPanel()
IllegalThreadStateException
- if not called in the event thread