|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--gate.gui.CorpusFillerComponent
A simple component that allows the user to select a directory and a list of permitted extensions for populating a corpus
Inner classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Inner classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent, JComponent.ActionStandin, JComponent.IntVector, JComponent.KeyboardState |
Inner classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.AWTTreeLock |
Field Summary | |
(package private) JTextField |
encodingTextField
The textField for the encoding |
private List |
extensions
The list of permitted extensions. |
(package private) JTextField |
extensionsTextField
The text field for the permitted extensions |
(package private) JButton |
filerBtn
The buttons that opens the file chooser |
(package private) JButton |
listEditBtn
The buton that opens the list editor for the extensions |
(package private) JCheckBox |
recurseCheckBox
The checkbox for recurse directories |
(package private) JTextField |
urlTextField
The text field for the directory URL |
Fields inherited from class javax.swing.JPanel |
defaultLayout, uiClassID |
Fields inherited from class java.awt.Container |
component, containerListener, containerSerializedDataVersion, dbg, dispatcher, layoutMgr, listeningBoundsChildren, listeningChildren, maxSize, ncomponents, printing, printingThreads, serialVersionUID |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
CorpusFillerComponent()
Creates a corpus filler component |
Method Summary | |
String |
getEncoding()
Gets the encoding selected by the user. |
List |
getExtensions()
Gets the current list of permitted extensions |
String |
getUrlString()
Gets the current text in the URL text field. |
protected void |
initGUIComponents()
Creates the UI |
protected void |
initListeners()
Adds listeners for UI components |
protected void |
initLocalData()
Inits local variables to default values |
boolean |
isRecurseDirectories()
Should the directory parsed recursively? |
static void |
main(String[] args)
Test code |
void |
setEncoding(String enc)
Sets the initila value for the encoding field. |
void |
setExtensions(List extensions)
Sets the current value for the list of permitted extensions. |
void |
setRecurseDirectories(boolean recurseDirectories)
Should the directory parsed recursively? |
void |
setUrlString(String urlString)
Sets the values for the URL string. |
Methods inherited from class javax.swing.JPanel |
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
Field Detail |
JTextField urlTextField
JButton filerBtn
JTextField extensionsTextField
JButton listEditBtn
JCheckBox recurseCheckBox
JTextField encodingTextField
private List extensions
Constructor Detail |
public CorpusFillerComponent()
Method Detail |
protected void initLocalData()
protected void initGUIComponents()
protected void initListeners()
public void setUrlString(String urlString)
public String getUrlString()
public String getEncoding()
public void setEncoding(String enc)
public void setExtensions(List extensions)
public List getExtensions()
public static void main(String[] args)
public void setRecurseDirectories(boolean recurseDirectories)
public boolean isRecurseDirectories()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |