com.rapidminer.gui.dialog
Class SearchableJTextComponent

java.lang.Object
  extended by com.rapidminer.gui.dialog.SearchableJTextComponent
All Implemented Interfaces:
SearchableTextComponent

public class SearchableJTextComponent
extends java.lang.Object
implements SearchableTextComponent

This is the implementation of a searchable text componend which is based on Swing's JTextComponents.

Author:
Ingo Mierswa

Constructor Summary
SearchableJTextComponent(javax.swing.text.JTextComponent component)
           
 
Method Summary
 boolean canHandleCarriageReturn()
           
 int getCaretPosition()
           
 java.lang.String getText()
           
 void replaceSelection(java.lang.String newString)
           
 void requestFocus()
           
 void select(int start, int end)
           
 void setCaretPosition(int pos)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchableJTextComponent

public SearchableJTextComponent(javax.swing.text.JTextComponent component)
Method Detail

select

public void select(int start,
                   int end)
Specified by:
select in interface SearchableTextComponent

getCaretPosition

public int getCaretPosition()
Specified by:
getCaretPosition in interface SearchableTextComponent

getText

public java.lang.String getText()
Specified by:
getText in interface SearchableTextComponent

replaceSelection

public void replaceSelection(java.lang.String newString)
Specified by:
replaceSelection in interface SearchableTextComponent

requestFocus

public void requestFocus()
Specified by:
requestFocus in interface SearchableTextComponent

setCaretPosition

public void setCaretPosition(int pos)
Specified by:
setCaretPosition in interface SearchableTextComponent

canHandleCarriageReturn

public boolean canHandleCarriageReturn()
Specified by:
canHandleCarriageReturn in interface SearchableTextComponent


Copyright © 2001-2009 by Rapid-I