net.sf.zekr.engine.search.ui
Class ManageScopesForm

java.lang.Object
  extended by net.sf.zekr.ui.BaseForm
      extended by net.sf.zekr.engine.search.ui.ManageScopesForm
All Implemented Interfaces:
EventProtocol

public class ManageScopesForm
extends BaseForm


Field Summary
protected  int selectedIndex
           
 
Fields inherited from class net.sf.zekr.ui.BaseForm
display, lang, logger, parent, resource, shell
 
Fields inherited from interface net.sf.zekr.ui.helper.EventProtocol
CLEAR_CACHE_ON_EXIT, CUSTOM_ZEKR_EVENT, END_WAITING, GOTO_LOCATION, RECREATE_VIEW, REFRESH_VIEW, SPLASH_PROGRESS, SPLASH_PROGRESS_FULLY, UPDATE_BOOKMARKS_MENU, UPDATE_SURA_NAMES
 
Constructor Summary
ManageScopesForm(org.eclipse.swt.widgets.Shell parent, java.util.List searchScopes)
           
 
Method Summary
protected  org.eclipse.swt.widgets.Display getDisplay()
           
 java.util.List getSearchScopeList()
           
 int getSelectedIndex()
          This method should be called after OK button pressed.
protected  org.eclipse.swt.widgets.Shell getShell()
           
 boolean open()
           
 
Methods inherited from class net.sf.zekr.ui.BaseForm
isDisposed, loopEver, show
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

selectedIndex

protected int selectedIndex
Constructor Detail

ManageScopesForm

public ManageScopesForm(org.eclipse.swt.widgets.Shell parent,
                        java.util.List searchScopes)
Method Detail

getSearchScopeList

public java.util.List getSearchScopeList()

getSelectedIndex

public int getSelectedIndex()
This method should be called after OK button pressed.

Returns:
selected item index, or -1 if no item selected.

open

public boolean open()
Returns:
true if ok pressed, false otherwise.

getShell

protected org.eclipse.swt.widgets.Shell getShell()

getDisplay

protected org.eclipse.swt.widgets.Display getDisplay()