com.infoengine.modeler.UI
Class FindDialog

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Window
              extended byjava.awt.Dialog
                  extended byjavax.swing.JDialog
                      extended bycom.infoengine.modeler.UI.FindDialog
All Implemented Interfaces:
Accessible, ImageObserver, MenuContainer, RootPaneContainer, Serializable, WindowConstants

public class FindDialog
extends JDialog

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JDialog
JDialog.AccessibleJDialog
 
Nested classes inherited from class java.awt.Dialog
Dialog.AccessibleAWTDialog
 
Nested classes inherited from class java.awt.Window
Window.AccessibleAWTWindow
 
Nested classes inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
(package private)  JCheckBox AllFilesCheckBox
           
(package private)  ButtonGroup bgroup
           
(package private)  JPanel ButtonPanel
           
(package private)  JButton CancelButton
           
(package private)  JCheckBox CaseCheckBox
           
(package private)  JPanel DirectionPanel
           
(package private)  JRadioButton DownRadioButton
           
(package private)  EditorContainer editorContainer
           
(package private)  JPanel filler1
           
(package private)  JPanel filler2
           
(package private)  JButton FindButton
           
(package private)  JLabel FindLabel
           
(package private)  JTextField FindTextField
           
(package private)  FlowLayout flowLayout2
           
(package private)  JPanel OptionsPanel
           
(package private)  JPanel panel1
           
(package private)  JButton ReplaceAllButton
           
(package private)  JButton ReplaceButton
           
(package private)  JLabel ReplaceLabel
           
(package private)  JTextField ReplaceTextField
           
(package private)  StackedLayout sl
           
(package private)  StackedLayout stackedLayout1
           
(package private)  TwoColumnLayout tcl
           
(package private)  TitledBorder titledBorder1
           
(package private)  TitledBorder titledBorder2
           
(package private)  JRadioButton UpRadioButton
           
 
Fields inherited from class javax.swing.JDialog
accessibleContext, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Dialog
 
Fields inherited from class java.awt.Window
 
Fields inherited from class java.awt.Container
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
FindDialog()
          create a default FindDialog attached to main UI ModelerFrame with default title
FindDialog(Frame frame, String title, boolean modal)
          create a find dialog attached to a frame
 
Method Summary
(package private)  void CancelButton_actionPerformed(ActionEvent e)
          cancel button clicked
(package private)  void CaseCheckBox_actionPerformed(ActionEvent e)
           
(package private)  boolean find()
          default find in the down direction
(package private)  boolean find(boolean down)
          perform a find up or down
(package private)  void FindButton_actionPerformed(ActionEvent e)
          find button clicked
(package private)  boolean findDown()
          perform a find in the down direction
(package private)  void FindTextField_keyPressed(KeyEvent e)
          handle ENTER key as if Find button clicked
(package private)  boolean findUp()
          perform a find in the up direction
(package private)  JTextComponent getTextComponent()
          get the currently selected JTextComponent
(package private)  void jbInit()
           
(package private)  void replace()
          replace the selection with the contents of the ReplaceTextField
(package private)  void ReplaceAllButton_actionPerformed(ActionEvent e)
          replace all button clicked
(package private)  void ReplaceButton_actionPerformed(ActionEvent e)
          replace button clicked
 void setEditorContainer(EditorContainer ec)
          set the EditorContainer this find dialog is attached to
private  void SetReplaceStatus()
           
(package private)  void this_componentShown(ComponentEvent e)
          select the contents of the FindTextField when the component appears
 
Methods inherited from class javax.swing.JDialog
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Dialog
addNotify, dispose, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, finalize, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, removeNotify, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
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, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, 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, isOpaque, 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, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

panel1

JPanel panel1

FindLabel

JLabel FindLabel

FindTextField

JTextField FindTextField

ReplaceLabel

JLabel ReplaceLabel

ReplaceTextField

JTextField ReplaceTextField

CaseCheckBox

JCheckBox CaseCheckBox

AllFilesCheckBox

JCheckBox AllFilesCheckBox

UpRadioButton

JRadioButton UpRadioButton

DownRadioButton

JRadioButton DownRadioButton

bgroup

ButtonGroup bgroup

OptionsPanel

JPanel OptionsPanel

DirectionPanel

JPanel DirectionPanel

titledBorder1

TitledBorder titledBorder1

titledBorder2

TitledBorder titledBorder2

stackedLayout1

StackedLayout stackedLayout1

flowLayout2

FlowLayout flowLayout2

ButtonPanel

JPanel ButtonPanel

tcl

TwoColumnLayout tcl

sl

StackedLayout sl

FindButton

JButton FindButton

ReplaceButton

JButton ReplaceButton

ReplaceAllButton

JButton ReplaceAllButton

CancelButton

JButton CancelButton

editorContainer

EditorContainer editorContainer

filler1

JPanel filler1

filler2

JPanel filler2
Constructor Detail

FindDialog

public FindDialog(Frame frame,
                  String title,
                  boolean modal)
create a find dialog attached to a frame

Parameters:
frame - - the parent frame of this dialog, if null uses main ModelerFrame
title - - title for this dialog if null uses default
modal - - is this dialog modal?

FindDialog

public FindDialog()
create a default FindDialog attached to main UI ModelerFrame with default title

Method Detail

jbInit

void jbInit()
      throws Exception
Throws:
Exception

setEditorContainer

public void setEditorContainer(EditorContainer ec)
set the EditorContainer this find dialog is attached to

Parameters:
ec - - the EditorContainer

CancelButton_actionPerformed

void CancelButton_actionPerformed(ActionEvent e)
cancel button clicked


getTextComponent

JTextComponent getTextComponent()
get the currently selected JTextComponent

Returns:
selected JTextComponent or null

findUp

boolean findUp()
perform a find in the up direction

Returns:
true if found else false

findDown

boolean findDown()
perform a find in the down direction

Returns:
true if found else false

find

boolean find()
default find in the down direction

Returns:
true if found else false

find

boolean find(boolean down)
perform a find up or down

Parameters:
down - - boolean true find down, false find up
Returns:
true if found else false

FindButton_actionPerformed

void FindButton_actionPerformed(ActionEvent e)
find button clicked


replace

void replace()
replace the selection with the contents of the ReplaceTextField


ReplaceButton_actionPerformed

void ReplaceButton_actionPerformed(ActionEvent e)
replace button clicked


ReplaceAllButton_actionPerformed

void ReplaceAllButton_actionPerformed(ActionEvent e)
replace all button clicked


FindTextField_keyPressed

void FindTextField_keyPressed(KeyEvent e)
handle ENTER key as if Find button clicked


this_componentShown

void this_componentShown(ComponentEvent e)
select the contents of the FindTextField when the component appears


SetReplaceStatus

private void SetReplaceStatus()

CaseCheckBox_actionPerformed

void CaseCheckBox_actionPerformed(ActionEvent e)