public class ViewScript extends AbstractView implements jfd.ale.FieldToComponentMapper
Modifier and Type | Class and Description |
---|---|
(package private) class |
ViewScript.CheckBoxListener
Class that handles the item listener for the wrap text checkbox.
|
(package private) class |
ViewScript.ExtractorPatternScroller |
(package private) class |
ViewScript.ScriptHighlighter |
Modifier and Type | Field and Description |
---|---|
(package private) javax.swing.JButton |
btnDelete
Deletes the script.
|
javax.swing.JButton |
btnExportScriptToFile
Saves this script to an external file.
|
(package private) javax.swing.JButton |
btnFind
Finds stuff in the log.
|
javax.swing.JButton |
btnRunScript
Runs this script.
|
(package private) HelpButton |
btnScriptPanelHelp
The help button.
|
javax.swing.JButton |
btnShowInstances
Displays the "show instances" dialog.
|
(package private) javax.swing.JComboBox |
cmbLanguage |
(package private) javax.swing.JFrame |
frameScriptInstances
Shows the script instances.
|
(package private) javax.swing.JCheckBox |
jcbOverWriteOnImport
Indicates whether or not the script should be overwritten on import.
|
(package private) javax.swing.JCheckBox |
jcbWrapText
Determines whether or not the text in the script text box should be wrapped.
|
(package private) javax.swing.JLabel |
lblLanguage
Used to set the language.
|
(package private) javax.swing.JLabel |
lblName
Used to set the name.
|
(package private) javax.swing.JLabel |
lblScriptText
Used to set the script text.
|
static org.apache.log4j.Logger |
log
Used for logging.
|
(package private) javax.swing.JPanel |
pnlProperties
The properties panel.
|
(package private) org.fife.ui.rtextarea.RTextScrollPane |
spScriptText |
(package private) javax.swing.JTextField |
txtName |
(package private) org.fife.ui.rsyntaxtextarea.RSyntaxTextArea |
txtScriptText |
Constructor and Description |
---|
ViewScript()
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
javax.swing.JPanel pnlProperties
javax.swing.JButton btnDelete
javax.swing.JLabel lblName
javax.swing.JTextField txtName
javax.swing.JLabel lblScriptText
org.fife.ui.rsyntaxtextarea.RSyntaxTextArea txtScriptText
org.fife.ui.rtextarea.RTextScrollPane spScriptText
javax.swing.JButton btnFind
javax.swing.JFrame frameScriptInstances
javax.swing.JLabel lblLanguage
javax.swing.JComboBox cmbLanguage
javax.swing.JCheckBox jcbOverWriteOnImport
javax.swing.JCheckBox jcbWrapText
HelpButton btnScriptPanelHelp
public javax.swing.JButton btnRunScript
public javax.swing.JButton btnExportScriptToFile
public javax.swing.JButton btnShowInstances
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