class ViewExtractorPattern.TokenEditor
extends javax.swing.JDialog
implements jfd.ale.FieldToComponentMapper
ExtractorPatternTokens
to be edited via a GUI.javax.swing.JDialog.AccessibleJDialog
java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
Modifier and Type | Field and Description |
---|---|
(package private) javax.swing.JButton |
btnAddMapping |
(package private) javax.swing.JButton |
btnDeleteMappingSet |
(package private) javax.swing.JComboBox |
cmbMappingSets |
(package private) javax.swing.JComboBox |
cmbRegularExpression |
(package private) javax.swing.JComboBox<ExtractorPatternTokenDefaults> |
cmbTokenDefaults |
(package private) javax.swing.JEditorPane |
editorPane
The
JEditorPane associated with the token editor. |
(package private) ExtractorPattern |
extractorPattern
The
ExtractorPattern holding the token being manipulated. |
(package private) boolean |
isNewToken |
(package private) javax.swing.JCheckBox |
jcbExcludeFromData |
(package private) javax.swing.JCheckBox |
jcbNullSessionVariable |
(package private) javax.swing.JCheckBox |
jcbReplaceHTMLEntities |
(package private) javax.swing.JCheckBox |
jcbResolveRelativeURL |
(package private) javax.swing.JCheckBox |
jcbSaveInSessionVariable |
(package private) javax.swing.JCheckBox |
jcbStripHTML |
(package private) javax.swing.JCheckBox |
jcbTrimWhiteSpace |
(package private) javax.swing.JCheckBox |
jcbUseToFilterDuplicates
Check boxes for the advanced tab.
|
(package private) javax.swing.JLabel |
lblEnterRegularExpression |
(package private) javax.swing.JLabel |
lblMappingSet
Mapping elements.
|
(package private) javax.swing.JLabel |
lblOrManualSetup |
(package private) javax.swing.JLabel |
lblOrRegularExpression |
(package private) javax.swing.JLabel |
lblRegularExpression |
(package private) javax.swing.JLabel |
lblSelectDefaults |
(package private) javax.swing.JLabel |
lblSelectRegularExpression |
(package private) javax.swing.JLabel |
lblTokenIdentifier |
(package private) MappingSet |
mappingSet
The current
MappingSet we're working with. |
(package private) MappingSetComboBoxModel |
mappingSetComboBoxModel |
(package private) java.lang.String |
originalIdentifier
The original identifier.
|
(package private) javax.swing.JPanel |
pnlAdvanced
Holds advanced elements.
|
(package private) javax.swing.JPanel |
pnlGeneral
Holds general elements.
|
(package private) javax.swing.JPanel |
pnlMapping
Holds mapping elements.
|
(package private) javax.swing.JPanel |
pnlRegularExpression
Holds elements related to the regular expressions.
|
(package private) javax.swing.JScrollPane |
spMappingTable |
(package private) TableModelMappingSet |
tableModelMappingSet |
(package private) javax.swing.JTable |
tblMappingSet |
(package private) ExtractorPatternToken |
token |
(package private) javax.swing.JTabbedPane |
tpMain
Holds the tabs.
|
(package private) javax.swing.JTextField |
txtIdentifier |
(package private) javax.swing.JTextField |
txtRegularExpression |
accessibleContext, rootPane, rootPaneCheckingEnabled
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
TokenEditor(ExtractorPatternToken token,
boolean isNewToken,
javax.swing.JEditorPane editorPane,
ExtractorPattern extractorPattern,
java.lang.String originalIdentifier)
Constructs an editor.
|
TokenEditor(ExtractorPatternToken token,
boolean isNewToken,
javax.swing.JEditorPane editorPane,
ExtractorPattern extractorPattern,
java.lang.String originalIdentifier,
java.awt.event.MouseEvent mouseEvent)
Constructs an editor.
|
Modifier and Type | Method and Description |
---|---|
void |
activate()
Makes the dialog visible and gives the identifier box focus.
|
void |
deleteCurrentlySelectedMappings()
Deletes all of the currently selected mappings in the table.
|
void |
deleteMapping(int index)
Deletes the mapping corresponding to the given index.
|
java.awt.Component |
mapToComponent(java.lang.reflect.Field f)
Needed for ALE to work.
|
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, setVisible, show, toBack
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFront
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
javax.swing.JTabbedPane tpMain
javax.swing.JPanel pnlGeneral
javax.swing.JPanel pnlRegularExpression
javax.swing.JPanel pnlAdvanced
javax.swing.JPanel pnlMapping
ExtractorPatternToken token
boolean isNewToken
javax.swing.JLabel lblTokenIdentifier
javax.swing.JTextField txtIdentifier
javax.swing.JCheckBox jcbSaveInSessionVariable
javax.swing.JCheckBox jcbNullSessionVariable
javax.swing.JCheckBox jcbUseToFilterDuplicates
javax.swing.JCheckBox jcbStripHTML
javax.swing.JCheckBox jcbResolveRelativeURL
javax.swing.JCheckBox jcbReplaceHTMLEntities
javax.swing.JCheckBox jcbTrimWhiteSpace
javax.swing.JCheckBox jcbExcludeFromData
javax.swing.JLabel lblRegularExpression
javax.swing.JLabel lblEnterRegularExpression
javax.swing.JTextField txtRegularExpression
javax.swing.JLabel lblOrManualSetup
javax.swing.JComboBox<ExtractorPatternTokenDefaults> cmbTokenDefaults
javax.swing.JLabel lblSelectDefaults
javax.swing.JLabel lblOrRegularExpression
javax.swing.JLabel lblSelectRegularExpression
javax.swing.JComboBox cmbRegularExpression
javax.swing.JLabel lblMappingSet
javax.swing.JComboBox cmbMappingSets
javax.swing.JTable tblMappingSet
javax.swing.JScrollPane spMappingTable
javax.swing.JButton btnDeleteMappingSet
javax.swing.JButton btnAddMapping
MappingSetComboBoxModel mappingSetComboBoxModel
TableModelMappingSet tableModelMappingSet
MappingSet mappingSet
MappingSet
we're working with.javax.swing.JEditorPane editorPane
JEditorPane
associated with the token editor.ExtractorPattern extractorPattern
ExtractorPattern
holding the token being manipulated.java.lang.String originalIdentifier
public TokenEditor(ExtractorPatternToken token, boolean isNewToken, javax.swing.JEditorPane editorPane, ExtractorPattern extractorPattern, java.lang.String originalIdentifier)
token
- The ExtractorPatternToken
to be edited by this editor.isNewToken
- Indicates whether or not this token already exists in the pattern text.editorPane
- The JEditorPane
associated with the token editor.extractorPattern
- The ExtractorPattern
holding the token being manipulated.public TokenEditor(ExtractorPatternToken token, boolean isNewToken, javax.swing.JEditorPane editorPane, ExtractorPattern extractorPattern, java.lang.String originalIdentifier, java.awt.event.MouseEvent mouseEvent)
token
- The ExtractorPatternToken
to be edited by this editor.isNewToken
- Indicates whether or not this token already exists in the pattern text.editorPane
- The JEditorPane
associated with the token editor.extractorPattern
- The ExtractorPattern
holding the token being manipulated.mouseEvent
- The MouseEvent
to position relative to the current mouse coordinates.public void activate()
public void deleteCurrentlySelectedMappings()
public void deleteMapping(int index)
index
- The index of the mapping to delete.public java.awt.Component mapToComponent(java.lang.reflect.Field f) throws java.lang.Exception
mapToComponent
in interface jfd.ale.FieldToComponentMapper
java.lang.Exception