IBM Rational Performance Tester SDK

com.ibm.rational.common.test.editor.framework.search
Class SearchForTypeHandler

java.lang.Object
  extended by com.ibm.rational.common.test.editor.framework.search.SearchForTypeHandler
All Implemented Interfaces:
com.ibm.rational.common.test.editor.framework.kernel.search.IExtensionPointPropertiesNames

public abstract class SearchForTypeHandler
extends Object
implements com.ibm.rational.common.test.editor.framework.kernel.search.IExtensionPointPropertiesNames


Field Summary
protected static String _NAME_KEY
           
 
Fields inherited from interface com.ibm.rational.common.test.editor.framework.kernel.search.IExtensionPointPropertiesNames
_CONTRIBUTOR_CLASS, _ID, _OPTIONS_CONTRIBUTOR, _OPTIONS_CONTRIBUTOR_ID, _TYPE_SEARCH_ID, DISCOVERY_INSTANCE, DISCOVERY_METHOD, DISCOVERY_TYPE, EDITOR_OBJECT_TYPE, EDITOR_TYPE, ENABLED, HANDLER_CLASS, ICON, LABEL, OBJECT_TYPE, SEARCHABLE_TYPE, SUB_ID
 
Constructor Summary
SearchForTypeHandler(com.ibm.rational.common.test.editor.framework.kernel.search.ISearchComparator comparator)
           
 
Method Summary
 boolean canSearch(com.ibm.rational.common.test.editor.framework.kernel.search.SearchPage page)
           
 boolean contributorsLoaded()
           
 void createLabel(Composite parent, int span)
           
protected  Button createOptionButton(Composite fieldsParent, String label, String akey)
           
protected  void enableSearchButton()
           
 com.ibm.rational.common.test.editor.framework.kernel.search.ISearchComparator getComparator()
           
 Vector getContributors()
           
 String getID()
           
 com.ibm.rational.common.test.editor.framework.kernel.search.SearchPage getSearchPage()
           
 void handlerEnabled(boolean b)
           
protected  void hookComboBox(Combo cmbTextSearch)
           
 boolean isEnabled()
           
 boolean isEnabledAtRuntime()
           
 Vector<SearchOptionsContibutor> loadOptionsContributors(String id, String myEditorType)
           
static Vector<SearchOptionsContibutor> loadOptionsContributors(String id, String myEditorType, Vector<SearchOptionsContibutor> loaded_contributors)
           
protected  void searchTextModified(Combo combo)
           
 void setComparator(com.ibm.rational.common.test.editor.framework.kernel.search.ISearchComparator comparator)
           
 void setEnabled(boolean enabled)
           
 void setID(String id)
          Set the ID of this handler.
 void setSearchPage(com.ibm.rational.common.test.editor.framework.kernel.search.SearchPage searchDialog)
          Initializes or de-initializes the searcher.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_NAME_KEY

protected static final String _NAME_KEY
See Also:
Constant Field Values
Constructor Detail

SearchForTypeHandler

public SearchForTypeHandler(com.ibm.rational.common.test.editor.framework.kernel.search.ISearchComparator comparator)
Method Detail

getID

public String getID()
Returns:
String

setID

public void setID(String id)
Set the ID of this handler.


canSearch

public boolean canSearch(com.ibm.rational.common.test.editor.framework.kernel.search.SearchPage page)
Parameters:
page -
Returns:
boolean

getSearchPage

public com.ibm.rational.common.test.editor.framework.kernel.search.SearchPage getSearchPage()

setSearchPage

public void setSearchPage(com.ibm.rational.common.test.editor.framework.kernel.search.SearchPage searchDialog)
Initializes or de-initializes the searcher.

Parameters:
searchDialog - SearchPage. The host SearchPage when the UI is ablut to be displayed, or null when the dialog is closing. Extension classes need to clear any cached information when this argument is null.

handlerEnabled

public void handlerEnabled(boolean b)
Parameters:
b -

isEnabled

public boolean isEnabled()

setEnabled

public void setEnabled(boolean enabled)

loadOptionsContributors

public Vector<SearchOptionsContibutor> loadOptionsContributors(String id,
                                                               String myEditorType)

loadOptionsContributors

public static Vector<SearchOptionsContibutor> loadOptionsContributors(String id,
                                                                      String myEditorType,
                                                                      Vector<SearchOptionsContibutor> loaded_contributors)

getComparator

public com.ibm.rational.common.test.editor.framework.kernel.search.ISearchComparator getComparator()

setComparator

public void setComparator(com.ibm.rational.common.test.editor.framework.kernel.search.ISearchComparator comparator)

isEnabledAtRuntime

public boolean isEnabledAtRuntime()

enableSearchButton

protected void enableSearchButton()

getContributors

public Vector getContributors()

contributorsLoaded

public boolean contributorsLoaded()

createOptionButton

protected Button createOptionButton(Composite fieldsParent,
                                    String label,
                                    String akey)
Parameters:
fieldsParent -

createLabel

public void createLabel(Composite parent,
                        int span)
Parameters:
parent - Composite
span - int

hookComboBox

protected void hookComboBox(Combo cmbTextSearch)
Parameters:
cmbTextSearch -

searchTextModified

protected void searchTextModified(Combo combo)

IBM Rational Performance Tester SDK

© Copyright IBM Corp. 2012. All rights reserved.