public class ViewScrapeableFile extends AbstractView implements jfd.ale.FieldToComponentMapper
Modifier and Type | Class and Description |
---|---|
(package private) class |
ViewScrapeableFile.CheckBoxListener
Class that handles the item listener for the will be invoked manually checkbox.
|
(package private) class |
ViewScrapeableFile.JScrollPaneScroller |
(package private) class |
ViewScrapeableFile.LongParameterEditor
Allows long parameters to be edited.
|
class |
ViewScrapeableFile.LongParameterRenderer
Renders long parameters in a JTable.
|
class |
ViewScrapeableFile.RightPaneObjectLoader |
Modifier and Type | Field and Description |
---|---|
ScreenScraperWebBrowser |
browserPanel
The web browser to render the html
|
(package private) javax.swing.JButton |
btnAddParameter
Adds a new parameter.
|
(package private) javax.swing.JButton |
btnCloseLastResponseWindow
Closes the last response window.
|
(package private) javax.swing.JButton |
btnCompareRequestWithProxyTransaction
Compare the request with a proxy transaction.
|
(package private) javax.swing.JButton |
btnCopy
Copies the scrapeable file.
|
(package private) javax.swing.JButton |
btnDelete
Deletes the scrapeable file.
|
(package private) javax.swing.JButton |
btnDisplayInWindow
Displays the last response tab in its own window.
|
(package private) javax.swing.JButton |
btnDisplayResponseInBrowser
Displays the last response in a web browser.
|
(package private) javax.swing.JButton |
btnFindLastRequest
Finds stuff in the request.
|
(package private) javax.swing.JButton |
btnFindLastResponse
Finds stuff in the HTML.
|
(package private) javax.swing.JButton |
btnHighlightNextDataRecord
Highlights the next data record.
|
(package private) javax.swing.JButton |
btnLastResponseChangeContentType
Swaps the last response between text and HTML.
|
(package private) javax.swing.JButton |
btnLoadLastResponseFromClipboard
Loads text into the last response text box from the clipborad.
|
(package private) javax.swing.JButton |
btnPasteExtractorPattern
Pastes an extractor pattern.
|
(package private) HelpButton |
btnPropertiesPanelHelp
The help button.
|
(package private) javax.swing.JButton |
btnRefreshLastRequest
Refreshes the last request tab.
|
(package private) javax.swing.JButton |
btnRefreshLastResponse
Refreshes the last response tab.
|
FieldChooserDialog |
fieldChooserDialog
ADVANCED PANEL ************
|
(package private) javax.swing.JFrame |
frmLastResponse
Holds the last response stuff when they're in an external window.
|
(package private) javax.swing.JCheckBox |
jcbWillBeInvokedManually
The will be invoked manually checkbox.
|
(package private) javax.swing.JCheckBox |
jcbWrapTextLastRequest
Determines whether or not the text in the last request text box should be wrapped.
|
(package private) javax.swing.JCheckBox |
jcbWrapTextLastResponse
Determines whether or not the text in the last response text box should be wrapped.
|
(package private) boolean |
lastResponseFirstView
We use this so that when we initialize the view we know to scroll to the top.
|
(package private) javax.swing.JLabel |
lblBASICAuthenticationHeader
Used to set BASIC authentication parameters.
|
(package private) javax.swing.JLabel |
lblBASICAuthenticationPassword |
(package private) javax.swing.JLabel |
lblBASICAuthenticationUsername |
(package private) javax.swing.JLabel |
lblFailedTidy
Label to notify user of failed tidy.
|
(package private) javax.swing.JLabel |
lblName
Used to set the name.
|
(package private) javax.swing.JLabel |
lblScripts
The scripts label.
|
(package private) javax.swing.JLabel |
lblSequence
Used to set the sequence.
|
(package private) javax.swing.JLabel |
lblTruncatedHTML
Label to notify user of truncated HTML.
|
(package private) javax.swing.JLabel |
lblURL
Used to set the URL.
|
static org.apache.log4j.Logger |
log
Used for logging.
|
(package private) javax.swing.JPanel |
pnlAdvanced
The advanced panel.
|
(package private) javax.swing.JPanel |
pnlExtractorPatternButtons
Holds the buttons.
|
(package private) javax.swing.JPanel |
pnlExtractorPatterns
The patterns panel.
|
(package private) javax.swing.JPanel |
pnlKeyValuePairs
The key/value pairs panel.
|
(package private) javax.swing.JPanel |
pnlLastRequest
The last request panel.
|
(package private) javax.swing.JPanel |
pnlLastResponse
The last response panel.
|
(package private) javax.swing.JPanel |
pnlLastResponseContainer
Contains either the last response panel or a button to close the external window.
|
(package private) javax.swing.JPanel |
pnlLastResponseWindowComponents
Holds components related to the last response window.
|
(package private) javax.swing.JPanel |
pnlNavigationActionButtons
Holds the buttons.
|
(package private) javax.swing.JPanel |
pnlNavigationActions
The navigation actions panel.
|
(package private) javax.swing.JPanel |
pnlOuterExtractorPatterns
The outer panel.
|
(package private) javax.swing.JPanel |
pnlParameters
The parameters panel.
|
(package private) javax.swing.JPanel |
pnlProperties
The properties panel.
|
(package private) javax.swing.JPanel |
pnlRequestEntity
The request entity panel.
|
(package private) javax.swing.JPanel |
pnlScriptInstancesRenderer
The script instances renderer.
|
(package private) java.awt.Point |
scrollPosition
The position of the scroll view.
|
(package private) boolean |
scrollToHighlightedDataSet
Indicates whether or not the last response should be scrolled to the first position of the current highlighted dataset.
|
(package private) java.awt.Point |
selectionPosition
The position of the selected text.
|
(package private) javax.swing.JScrollPane |
spExtractorPatternPanels
The scroll pane that will hold the various pattern panels.
|
(package private) javax.swing.JScrollPane |
spNavigationActionPanels
The scroll pane that will hold the various navigation action panels.
|
(package private) javax.swing.JScrollPane |
spParametersTable
The scroll pane that will hold the table.
|
(package private) javax.swing.JScrollPane |
spRequest
Scroll pane that contains the text area.
|
(package private) javax.swing.JScrollPane |
spScrapedData
Scroll pane that contains the text area.
|
(package private) javax.swing.JTable |
tblParameters
Displays the parameters.
|
(package private) TableModelParameters |
tmParameters
The table model that the parameters table will sit on top of.
|
(package private) javax.swing.JTabbedPane |
tpMain
The main tabbed pane.
|
(package private) javax.swing.JTabbedPane |
tpParameters
The parameters tabbed pane.
|
(package private) javax.swing.JTextField |
txtBASICAuthenticationPassword |
(package private) javax.swing.JTextField |
txtBASICAuthenticationUsername |
(package private) javax.swing.JTextArea |
txtLastRequest
Holds the request.
|
(package private) javax.swing.JTextField |
txtName |
(package private) LastResponseTextArea |
txtScrapedData
Contains the data that was last scraped from the file.
|
(package private) javax.swing.JTextField |
txtSequence |
(package private) javax.swing.JTextField |
txtURL |
Constructor and Description |
---|
ViewScrapeableFile()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addExtractorPatternPanel(javax.swing.JTabbedPane tpExtractorPattern)
Adds a new pattern panel to the patterns panel.
|
void |
addNavigationActionPanel(javax.swing.JPanel pnlNavigationAction)
Adds a new navigation action panel to the navigation actions panel.
|
void |
displayFindBox(javax.swing.JFrame parentFrame,
javax.swing.JTextArea textBox)
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 field)
Needed for ALE to work.
|
void |
removeExtractorPatternPanel(javax.swing.JPanel pnlExtractorPattern)
Removes a pattern panel from the patterns panel.
|
void |
removeNavigationActionPanel(javax.swing.JPanel pnlNavigationAction)
Removes a navigation action panel from the navigation actions panel.
|
void |
setWillBeInvokedManually(boolean willBeInvokedManually)
Handles setting the value of the "will be invoked manually" checkbox and anything that results from the state change.
|
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
javax.swing.JTabbedPane tpMain
javax.swing.JPanel pnlProperties
javax.swing.JButton btnDelete
javax.swing.JButton btnCopy
javax.swing.JLabel lblName
javax.swing.JTextField txtName
javax.swing.JLabel lblURL
javax.swing.JTextField txtURL
javax.swing.JLabel lblSequence
javax.swing.JTextField txtSequence
javax.swing.JCheckBox jcbWillBeInvokedManually
HelpButton btnPropertiesPanelHelp
javax.swing.JPanel pnlScriptInstancesRenderer
javax.swing.JLabel lblScripts
javax.swing.JPanel pnlParameters
javax.swing.JTabbedPane tpParameters
javax.swing.JPanel pnlKeyValuePairs
javax.swing.JPanel pnlRequestEntity
javax.swing.JButton btnAddParameter
javax.swing.JTable tblParameters
TableModelParameters tmParameters
javax.swing.JScrollPane spParametersTable
javax.swing.JPanel pnlOuterExtractorPatterns
javax.swing.JPanel pnlExtractorPatterns
javax.swing.JPanel pnlExtractorPatternButtons
javax.swing.JButton btnPasteExtractorPattern
javax.swing.JScrollPane spExtractorPatternPanels
javax.swing.JPanel pnlNavigationActions
javax.swing.JPanel pnlNavigationActionButtons
javax.swing.JScrollPane spNavigationActionPanels
javax.swing.JPanel pnlLastRequest
javax.swing.JTextArea txtLastRequest
javax.swing.JButton btnFindLastRequest
javax.swing.JButton btnRefreshLastRequest
javax.swing.JButton btnCompareRequestWithProxyTransaction
javax.swing.JCheckBox jcbWrapTextLastRequest
javax.swing.JScrollPane spRequest
javax.swing.JPanel pnlLastResponseContainer
javax.swing.JFrame frmLastResponse
javax.swing.JPanel pnlLastResponse
javax.swing.JPanel pnlLastResponseWindowComponents
javax.swing.JButton btnCloseLastResponseWindow
javax.swing.JButton btnLastResponseChangeContentType
javax.swing.JButton btnDisplayResponseInBrowser
javax.swing.JButton btnFindLastResponse
javax.swing.JButton btnRefreshLastResponse
javax.swing.JButton btnDisplayInWindow
javax.swing.JButton btnLoadLastResponseFromClipboard
javax.swing.JButton btnHighlightNextDataRecord
javax.swing.JLabel lblTruncatedHTML
javax.swing.JLabel lblFailedTidy
javax.swing.JCheckBox jcbWrapTextLastResponse
LastResponseTextArea txtScrapedData
javax.swing.JScrollPane spScrapedData
java.awt.Point scrollPosition
java.awt.Point selectionPosition
boolean scrollToHighlightedDataSet
boolean lastResponseFirstView
public ScreenScraperWebBrowser browserPanel
javax.swing.JPanel pnlAdvanced
javax.swing.JLabel lblBASICAuthenticationHeader
javax.swing.JLabel lblBASICAuthenticationUsername
javax.swing.JTextField txtBASICAuthenticationUsername
javax.swing.JLabel lblBASICAuthenticationPassword
javax.swing.JTextField txtBASICAuthenticationPassword
public FieldChooserDialog fieldChooserDialog
public ViewScrapeableFile()
public void init()
public void setWillBeInvokedManually(boolean willBeInvokedManually)
willBeInvokedManually
- Whether or not the scrapeable file will be invoked manaully.public void displayFindBox(javax.swing.JFrame parentFrame, javax.swing.JTextArea textBox)
parentFrame
- The frame to be used as the parent.textBox
- The JTextArea
to search.public javax.swing.text.JTextComponent getTextComponentToSearch()
JTextComponent
.public void addExtractorPatternPanel(javax.swing.JTabbedPane tpExtractorPattern)
tpExtractorPattern
- The pattern panel to be added.public void removeExtractorPatternPanel(javax.swing.JPanel pnlExtractorPattern)
pnlExtractorPattern
- The pattern panel to be removed.public void addNavigationActionPanel(javax.swing.JPanel pnlNavigationAction)
pnlNavigationAction
- The navigation action panel to be added.public void removeNavigationActionPanel(javax.swing.JPanel pnlNavigationAction)
pnlNavigationAction
- The navigation action to be removed.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 field) throws java.lang.Exception
mapToComponent
in interface jfd.ale.FieldToComponentMapper
java.lang.Exception