JIVE Platform
Release 0.3.1

edu.buffalo.cse.jive.ui.search
Class AbstractJiveSearchPage

java.lang.Object
  extended by edu.buffalo.cse.jive.ui.search.AbstractJiveSearchPage
All Implemented Interfaces:
IJiveSearchPage, EventListener, ModifyListener, org.eclipse.swt.internal.SWTEventListener
Direct Known Subclasses:
ExceptionCaughtSearchPage, InvariantViolatedSearchPage, LineExecutedSearchPage, MethodCalledSearchPage, MethodReturnedSearchPage, ObjectCreatedSearchPage, VariableChangedSearchPage

public abstract class AbstractJiveSearchPage
extends Object
implements IJiveSearchPage, ModifyListener

An abstract implementation of an IJiveSearchPage used to update the status of the Search button. This class also implements the ModifyListener interface, so input controls that need their content checked for validity can simply add this class as a listener.


Constructor Summary
AbstractJiveSearchPage()
           
 
Method Summary
protected  ISearchPageContainer getContainer()
          Returns the search page container in which this page is hosted.
 void modifyText(ModifyEvent e)
           
 void setContainer(ISearchPageContainer container)
          Sets the supplied ISearchPageContainer as the container of the page.
protected  void updatePerformAction()
          Updates the search button based on the validity of the input.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.buffalo.cse.jive.ui.search.IJiveSearchPage
createControl, createSearchQuery, getControl, initializeInput, isInputValid
 

Constructor Detail

AbstractJiveSearchPage

public AbstractJiveSearchPage()
Method Detail

setContainer

public void setContainer(ISearchPageContainer container)
Description copied from interface: IJiveSearchPage
Sets the supplied ISearchPageContainer as the container of the page. This allows the page to enable or disable the Search button based on the input fields.

Specified by:
setContainer in interface IJiveSearchPage
Parameters:
container - the search container for the page

getContainer

protected ISearchPageContainer getContainer()
Returns the search page container in which this page is hosted.

Returns:
the search page container

modifyText

public void modifyText(ModifyEvent e)
Specified by:
modifyText in interface ModifyListener

updatePerformAction

protected void updatePerformAction()
Updates the search button based on the validity of the input.


JIVE Platform
Release 0.3.1