Save This Page
Home » jakarta-regexp-1.5 » org.apache » regexp » [javadoc | source]
org.apache.regexp
public class: REDemo [javadoc | source]
java.lang.Object
   java.awt.Component
      java.awt.Container
         java.awt.Panel
            java.applet.Applet
               org.apache.regexp.REDemo

All Implemented Interfaces:
    TextListener, Accessible, MenuContainer, ImageObserver, Serializable

Interactive demonstration and testing harness for regular expressions classes.
Field Summary
 RE r    Matcher and compiler objects 
 REDebugCompiler compiler     
 TextField fieldRE    Components 
 TextField fieldMatch     
 TextArea outRE     
 TextArea outMatch     
Fields inherited from java.awt.Component:
TOP_ALIGNMENT,  CENTER_ALIGNMENT,  BOTTOM_ALIGNMENT,  LEFT_ALIGNMENT,  RIGHT_ALIGNMENT
Method from org.apache.regexp.REDemo Summary:
init,   main,   sayMatch,   sayRE,   textValueChanged,   throwableToString,   updateMatch,   updateRE
Methods from java.applet.Applet:
destroy,   getAccessibleContext,   getAppletContext,   getAppletInfo,   getAudioClip,   getAudioClip,   getCodeBase,   getDocumentBase,   getImage,   getImage,   getLocale,   getParameter,   getParameterInfo,   init,   isActive,   newAudioClip,   play,   play,   resize,   resize,   setStub,   showStatus,   start,   stop
Methods from java.awt.Panel:
addNotify,   getAccessibleContext
Methods from java.awt.Container:
add,   add,   add,   add,   add,   addContainerListener,   addNotify,   addPropertyChangeListener,   addPropertyChangeListener,   applyComponentOrientation,   areFocusTraversalKeysSet,   countComponents,   deliverEvent,   doLayout,   findComponentAt,   findComponentAt,   getAlignmentX,   getAlignmentY,   getComponent,   getComponentAt,   getComponentAt,   getComponentCount,   getComponentZOrder,   getComponents,   getContainerListeners,   getFocusTraversalKeys,   getFocusTraversalPolicy,   getInsets,   getLayout,   getListeners,   getMaximumSize,   getMinimumSize,   getMousePosition,   getPreferredSize,   insets,   invalidate,   isAncestorOf,   isFocusCycleRoot,   isFocusCycleRoot,   isFocusTraversalPolicyProvider,   isFocusTraversalPolicySet,   layout,   list,   list,   locate,   minimumSize,   paint,   paintComponents,   preferredSize,   print,   printComponents,   remove,   remove,   removeAll,   removeContainerListener,   removeNotify,   setComponentZOrder,   setFocusCycleRoot,   setFocusTraversalKeys,   setFocusTraversalPolicy,   setFocusTraversalPolicyProvider,   setFont,   setLayout,   transferFocusBackward,   transferFocusDownCycle,   update,   validate
Methods from java.awt.Component:
action,   add,   addComponentListener,   addFocusListener,   addHierarchyBoundsListener,   addHierarchyListener,   addInputMethodListener,   addKeyListener,   addMouseListener,   addMouseMotionListener,   addMouseWheelListener,   addNotify,   addPropertyChangeListener,   addPropertyChangeListener,   applyComponentOrientation,   areFocusTraversalKeysSet,   bounds,   checkImage,   checkImage,   contains,   contains,   createImage,   createImage,   createVolatileImage,   createVolatileImage,   deliverEvent,   disable,   dispatchEvent,   doLayout,   enable,   enable,   enableInputMethods,   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,   isFocusCycleRoot,   isFocusOwner,   isFocusTraversable,   isFocusable,   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,   postEvent,   preferredSize,   prepareImage,   prepareImage,   print,   printAll,   remove,   removeComponentListener,   removeFocusListener,   removeHierarchyBoundsListener,   removeHierarchyListener,   removeInputMethodListener,   removeKeyListener,   removeMouseListener,   removeMouseMotionListener,   removeMouseWheelListener,   removeNotify,   removePropertyChangeListener,   removePropertyChangeListener,   repaint,   repaint,   repaint,   repaint,   requestFocus,   requestFocusInWindow,   reshape,   resize,   resize,   setBackground,   setBounds,   setBounds,   setComponentOrientation,   setCursor,   setDropTarget,   setEnabled,   setFocusTraversalKeys,   setFocusTraversalKeysEnabled,   setFocusable,   setFont,   setForeground,   setIgnoreRepaint,   setLocale,   setLocation,   setLocation,   setMaximumSize,   setMinimumSize,   setName,   setPreferredSize,   setSize,   setSize,   setVisible,   show,   show,   size,   toString,   transferFocus,   transferFocusBackward,   transferFocusUpCycle,   update,   validate
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.regexp.REDemo Detail:
 public  void init() 
    Add controls and init applet
 public static  void main(String[] arg) 
    Main application entrypoint.
  void sayMatch(String s) 
    Say something into match text area
  void sayRE(String s) 
    Say something into RE text area
 public  void textValueChanged(TextEvent e) 
    Called when text values change
 String throwableToString(Throwable t) 
    Convert throwable to string
  void updateMatch(String match) 
    Update matching info by matching the string against the current compiled regular expression.
  void updateRE(String expr) 
    Change regular expression