public class StringFilterWrapper extends Filter implements java.awt.event.ActionListener, javax.swing.event.DocumentListener, java.lang.Runnable
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
构造器和说明 |
---|
StringFilterWrapper()
Create a wrapper over a new StringFilter.
|
限定符和类型 | 方法和说明 |
---|---|
boolean |
accept(Node node)
Predicate to determine whether or not to keep the given node.
|
void |
actionPerformed(java.awt.event.ActionEvent event)
Invoked when an action occurs on the combo box.
|
void |
changedUpdate(javax.swing.event.DocumentEvent e)
Handle a change update event.
|
java.lang.String |
getDescription()
Get the name of the filter.
|
java.lang.String |
getIconSpec()
Get the resource name for the icon.
|
NodeFilter |
getNodeFilter()
Get the underlying node filter object.
|
NodeFilter[] |
getSubNodeFilters()
Get the underlying node filter's subordinate filters.
|
void |
insertUpdate(javax.swing.event.DocumentEvent e)
Handle an insert update event.
|
void |
removeUpdate(javax.swing.event.DocumentEvent e)
Handle a remove update event.
|
void |
run()
Background thread task to get the available locales.
|
void |
setNodeFilter(NodeFilter filter,
Parser context)
Assign the underlying node filter for this wrapper.
|
void |
setSubNodeFilters(NodeFilter[] filters)
Assign the underlying node filter's subordinate filters.
|
java.lang.String |
toJavaCode(java.lang.StringBuffer out,
int[] context)
Convert this filter into Java code.
|
deconstitute, deserialize, getIcon, instantiate, newline, pickle, reconstitute, serialize, setExpanded, setSelected, spaces, toString, unpickle, wrap
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, transferFocus, transferFocusBackward, transferFocusUpCycle
public java.lang.String getDescription()
getDescription
在类中 Filter
public java.lang.String getIconSpec()
getIconSpec
在类中 Filter
public NodeFilter getNodeFilter()
getNodeFilter
在类中 Filter
public void setNodeFilter(NodeFilter filter, Parser context)
setNodeFilter
在类中 Filter
filter
- The filter to wrap.context
- The parser to use for conditioning this filter.
Some filters need contextual information to provide to the user,
i.e. for tag names or attribute names or values,
so the Parser context is provided.public NodeFilter[] getSubNodeFilters()
getSubNodeFilters
在类中 Filter
public void setSubNodeFilters(NodeFilter[] filters)
setSubNodeFilters
在类中 Filter
filters
- The filters to insert into the underlying node filter.public java.lang.String toJavaCode(java.lang.StringBuffer out, int[] context)
toJavaCode
在类中 Filter
out
- The output buffer.context
- Three integers as follows:
indent level - the number of spaces to insert at the beginning of each line
filter number - the next available filter number
filter array number - the next available array of filters numberpublic boolean accept(Node node)
accept
在接口中 NodeFilter
node
- The node to test.true
if the node is to be kept, false
if it is to be discarded.public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
在接口中 java.awt.event.ActionListener
event
- Details about the action event.public void run()
run
在接口中 java.lang.Runnable
public void insertUpdate(javax.swing.event.DocumentEvent e)
insertUpdate
在接口中 javax.swing.event.DocumentListener
e
- Details about the insert event.public void removeUpdate(javax.swing.event.DocumentEvent e)
removeUpdate
在接口中 javax.swing.event.DocumentListener
e
- Details about the remove event.public void changedUpdate(javax.swing.event.DocumentEvent e)
changedUpdate
在接口中 javax.swing.event.DocumentListener
e
- Details about the change event.