|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
gate.gui.SingleConcatenatedFileInputDialog
public class SingleConcatenatedFileInputDialog
A simple component that allows the user to select a trec web file and encoding
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
(package private) JTextField |
documentNamePrefixTextField
The textField for the document name prefix |
(package private) JTextField |
documentRootElementTextField
The textField for the document root element |
(package private) JComboBox |
documentTypeComboBox
Dropdown box with available document types |
(package private) JTextField |
encodingTextField
The textField for the encoding |
(package private) JButton |
filerBtn
The buttons that opens the file chooser |
(package private) JTextField |
numOfDocumentsToFetchTextField
Number of documents to extract from the big document |
(package private) JTextField |
urlTextField
The text field for the directory URL |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
SingleConcatenatedFileInputDialog()
|
|
| Method Summary | |
|---|---|
String |
getDocumentNamePrefix()
Gets the document name prefix set by user |
String |
getDocumentRootElement()
Gets the document root element set by user |
DocType |
getDocumentType()
Gets the selected document type. |
String |
getEncoding()
Gets the encoding selected by the user. |
int |
getNumOfDocumentsToFetch()
Returns the number of documents to fetch |
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 |
static void |
main(String[] args)
Test code |
void |
setDocumentNamePrefix(String documentNamePrefix)
Sets the value for document name prefix |
void |
setDocumentRootElement(String documentRootElement)
Sets the value for documentRootElement field |
void |
setDocumentType(DocType documentType)
Sets the document type |
void |
setEncoding(String enc)
Sets the initila value for the encoding field. |
void |
setNumOfDocumentsToFetch(int numOfDocumentsToFetch)
Sets the number of documents to fetch |
void |
setUrlString(String urlString)
Sets the values for the URL string. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
JTextField urlTextField
JButton filerBtn
JTextField encodingTextField
JTextField documentRootElementTextField
JTextField documentNamePrefixTextField
JComboBox documentTypeComboBox
JTextField numOfDocumentsToFetchTextField
| Constructor Detail |
|---|
public SingleConcatenatedFileInputDialog()
| Method Detail |
|---|
protected void initGUIComponents()
protected void initListeners()
public void setUrlString(String urlString)
public String getUrlString()
public String getEncoding()
public void setEncoding(String enc)
public String getDocumentRootElement()
public void setDocumentRootElement(String documentRootElement)
documentRootElement - public String getDocumentNamePrefix()
public void setDocumentNamePrefix(String documentNamePrefix)
documentNamePrefix - public DocType getDocumentType()
public void setDocumentType(DocType documentType)
documentType - public int getNumOfDocumentsToFetch()
public void setNumOfDocumentsToFetch(int numOfDocumentsToFetch)
numOfDocumentsToFetch - public static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||