net.sf.zekr.common.config
Interface IUserView

All Known Implementing Classes:
UserViewController

public interface IUserView

Author:
Mohsen Saboorian

Field Summary
static int VM_ADVANCED_SEARCH
          View mode corresponds to advanced search.
static int VM_QURAN_TRANS
          View mode corresponds to simple non-search mode set in the Quran browser.
static int VM_ROOT_SEARCH
          View mode corresponds to root search.
static int VM_SEARCH
          View mode corresponds to basic search.
 
Method Summary
 void changeTo(int page)
           
 void changeTo(IQuranLocation location)
           
 IQuranLocation getLocation()
           
 int getPage()
           
 int getViewMode()
           
 void setLocation(IQuranLocation location)
           
 void setPage(int page)
           
 void setViewMode(int viewMode)
          Set current runtime view mode.
 void synchLocation()
          Synchronize internal location with the current page number.
 void synchPage()
          Synchronize internal page number with the current location.
 

Field Detail

VM_SEARCH

static final int VM_SEARCH
View mode corresponds to basic search.

See Also:
Constant Field Values

VM_ADVANCED_SEARCH

static final int VM_ADVANCED_SEARCH
View mode corresponds to advanced search.

See Also:
Constant Field Values

VM_ROOT_SEARCH

static final int VM_ROOT_SEARCH
View mode corresponds to root search.

See Also:
Constant Field Values

VM_QURAN_TRANS

static final int VM_QURAN_TRANS
View mode corresponds to simple non-search mode set in the Quran browser.

See Also:
Constant Field Values
Method Detail

getLocation

IQuranLocation getLocation()

setLocation

void setLocation(IQuranLocation location)

getPage

int getPage()
Returns:
current page number.

setPage

void setPage(int page)

changeTo

void changeTo(int page)

changeTo

void changeTo(IQuranLocation location)

synchPage

void synchPage()
Synchronize internal page number with the current location.


synchLocation

void synchLocation()
Synchronize internal location with the current page number.


setViewMode

void setViewMode(int viewMode)
Set current runtime view mode. Can be one of the VM_* constants available in this interface.

Parameters:
viewMode - runtime view mode. Can be one of VM_SEARCH, VM_ADVANCED_SEARCH, VM_ROOT_SEARCH, or VM_QURAN_TRANS.

getViewMode

int getViewMode()
Returns:
current runtime view mode. Can be one of VM_SEARCH, VM_ADVANCED_SEARCH, VM_ROOT_SEARCH, or VM_QURAN_TRANS.