public class ViewScrapingSession extends AbstractView implements jfd.ale.FieldToComponentMapper
Modifier and Type | Class and Description |
---|---|
(package private) class |
ViewScrapingSession.CheckBoxListener
Class that handles the item listener for the will be invoked manually checkbox.
|
(package private) class |
ViewScrapingSession.ScriptHighlighter |
Modifier and Type | Field and Description |
---|---|
javax.swing.JButton |
btnAddScrapeableFile
Adds a new scrapeable file to this scraping session.
|
javax.swing.JButton |
btnBreakpoint
Causes the current scraping session to breakpoint.
|
(package private) javax.swing.JButton |
btnClearLog
Clears the log panel.
|
javax.swing.JButton |
btnDelete
Deletes the scraping session.
|
javax.swing.JButton |
btnExportScrapingSessionToFile
Saves this scraping session to an external file.
|
(package private) javax.swing.JButton |
btnFind
Finds stuff in the log.
|
javax.swing.JButton |
btnStartStopScraper
Stops and starts the scraper.
|
javax.swing.JButton |
btnStartStopScraperSmall
Stops and starts the scraper.
|
javax.swing.JComboBox |
cmbLoggingLevel |
javax.swing.JCheckBox |
jcbAutoScroll
Do we auto-scroll?
|
javax.swing.JLabel |
lblLoggingLevel
Logging level stuff.
|
javax.swing.JLabel |
lblMaxLogLines
For constraining the log to a limited number of lines.
|
static org.apache.log4j.Logger |
log
Used for logging.
|
(package private) javax.swing.text.Document |
logDocument
Held by the JeditorPane.
|
(package private) javax.swing.JEditorPane |
logEditor
Contains the log.
|
(package private) javax.swing.text.html.HTMLEditorKit |
logKit
The editor kit for the log editor pane
|
(package private) javax.swing.JPanel |
pnlAdvanced
Holds advanced options.
|
(package private) javax.swing.JPanel |
pnlAnonymize
Holds Anonymization options.
|
(package private) javax.swing.JPanel |
pnlLog
Holds all of the log panel widgets.
|
(package private) javax.swing.JScrollPane |
spTextLog
Scroll pane that contains the text area.
|
javax.swing.JTextField |
txtMaxLogLines |
Constructor and Description |
---|
ViewScrapingSession()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
displayFindBox()
Displays the "find" box used to find text in the HTML from the last
scraped data.
|
java.awt.Component |
getRenderer()
Returns the component this view is rendered on, in the event that it
needs to be referenced by an external source.
|
javax.swing.text.JTextComponent |
getTextComponentToSearch()
Gets the text component to be searched.
|
void |
handleAppEvent(AppEvent ape)
Allows the class to handle AppEvents.
|
void |
init()
Initializes the class.
|
java.awt.Component |
mapToComponent(java.lang.reflect.Field f)
Needed for ALE to work.
|
getController, setController
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate
public static org.apache.log4j.Logger log
public javax.swing.JButton btnAddScrapeableFile
public javax.swing.JButton btnStartStopScraper
public javax.swing.JButton btnDelete
public javax.swing.JButton btnExportScrapingSessionToFile
javax.swing.JPanel pnlLog
javax.swing.JButton btnClearLog
javax.swing.JButton btnFind
javax.swing.JEditorPane logEditor
javax.swing.text.Document logDocument
javax.swing.text.html.HTMLEditorKit logKit
javax.swing.JScrollPane spTextLog
public javax.swing.JButton btnStartStopScraperSmall
public javax.swing.JButton btnBreakpoint
public javax.swing.JLabel lblLoggingLevel
public javax.swing.JComboBox cmbLoggingLevel
public javax.swing.JLabel lblMaxLogLines
public javax.swing.JTextField txtMaxLogLines
public javax.swing.JCheckBox jcbAutoScroll
javax.swing.JPanel pnlAdvanced
javax.swing.JPanel pnlAnonymize
public ViewScrapingSession()
public void init()
public void displayFindBox()
public javax.swing.text.JTextComponent getTextComponentToSearch()
JTextComponent
.public void handleAppEvent(AppEvent ape)
handleAppEvent
in class AbstractView
ape
- An AppEvent
.public java.awt.Component getRenderer()
getRenderer
in class AbstractView
public java.awt.Component mapToComponent(java.lang.reflect.Field f) throws java.lang.Exception
mapToComponent
in interface jfd.ale.FieldToComponentMapper
java.lang.Exception