public class ACMPortalFetcher extends java.lang.Object implements PreviewEntryFetcher
Constructor and Description |
---|
ACMPortalFetcher() |
Modifier and Type | Method and Description |
---|---|
void |
cancelled() |
void |
done(int entriesImported) |
void |
getEntries(java.util.Map<java.lang.String,java.lang.Boolean> selection,
ImportInspector inspector) |
java.lang.String |
getHelpPage()
Get the name of the help page for this activeFetcher.
|
java.net.URL |
getIcon()
Get the appropriate icon URL for this activeFetcher.
|
java.lang.String |
getKeyName()
Get the name of the key binding for this activeFetcher, if any.
|
javax.swing.JPanel |
getOptionsPanel()
If this activeFetcher requires additional options, a panel for setting up these
should be returned in a JPanel by this method.
|
int |
getPreferredPreviewHeight()
The preferred table row height for the previews.
|
java.lang.String |
getResults(java.net.URL source)
Download the URL and return contents as a String.
|
java.lang.String |
getResultsFromFile(java.io.File f)
Read results from a file instead of an URL.
|
java.lang.String |
getTitle()
The title for this activeFetcher, displayed in the menu and in the side pane.
|
int |
getWarningLimit()
The number of entries a user can select for download without getting a warning message.
|
boolean |
processQuery(java.lang.String query,
ImportInspector dialog,
OutputPrinter status)
Handle a query entered by the user.
|
boolean |
processQueryGetPreview(java.lang.String query,
FetcherPreviewDialog preview,
OutputPrinter status) |
void |
stopFetching()
This method is called by the dialog when the user has cancelled or
signalled a stop.
|
public javax.swing.JPanel getOptionsPanel()
EntryFetcher
getOptionsPanel
in interface EntryFetcher
public boolean processQueryGetPreview(java.lang.String query, FetcherPreviewDialog preview, OutputPrinter status)
processQueryGetPreview
in interface PreviewEntryFetcher
public void getEntries(java.util.Map<java.lang.String,java.lang.Boolean> selection, ImportInspector inspector)
getEntries
in interface PreviewEntryFetcher
public int getWarningLimit()
PreviewEntryFetcher
getWarningLimit
in interface PreviewEntryFetcher
public int getPreferredPreviewHeight()
PreviewEntryFetcher
getPreferredPreviewHeight
in interface PreviewEntryFetcher
public boolean processQuery(java.lang.String query, ImportInspector dialog, OutputPrinter status)
EntryFetcher
processQuery
in interface EntryFetcher
query
- The query text.dialog
- The dialog to add imported entries to.status
- An OutputPrinter passed to the activeFetcher for reporting about the
status of the fetching.public java.lang.String getResults(java.net.URL source) throws java.io.IOException
source
- java.io.IOException
public java.lang.String getResultsFromFile(java.io.File f) throws java.io.IOException
f
- java.io.IOException
public java.lang.String getTitle()
EntryFetcher
getTitle
in interface EntryFetcher
public java.net.URL getIcon()
EntryFetcher
getIcon
in interface EntryFetcher
public java.lang.String getHelpPage()
EntryFetcher
getHelpPage
in interface EntryFetcher
public java.lang.String getKeyName()
EntryFetcher
getKeyName
in interface EntryFetcher
public void cancelled()
public void done(int entriesImported)
public void stopFetching()
ImportInspectionDialog.CallBack
stopFetching
in interface ImportInspectionDialog.CallBack