org.gswing.components.common
Interface ISelectionSource

All Known Implementing Classes:
MainGui

public interface ISelectionSource

Constituency navigation selection source.


Method Summary
 char getCurrentType()
          Get the current search level type.
 String getNation()
          Get the state / nation of the results.
 char getSearchType()
          Get the search type.
 void setSearchType(char type)
          Set the seach type.
 void show(String constituency, char type, String parent)
          Display result.
 void showConstituencyList(String constituency, char type)
          Show constituency list.
 boolean showCouncilForLocal()
          This defines if the selection source wishes to show council results (for example overall results) when local results have been selected.
 

Method Detail

getCurrentType

char getCurrentType()
Get the current search level type.

Returns:
Current search type character.

setSearchType

void setSearchType(char type)
Set the seach type.

Parameters:
type - The search type. Options: Result.NATION, Result.REGIONAL, Result.CONSTITUENCY, Result.COUNCIL or Result.LOCAL

getSearchType

char getSearchType()
Get the search type.

Returns:
Search type character.

show

void show(String constituency,
          char type,
          String parent)
Display result.

Parameters:
constituency - The constituency name.
type - The search type. Options: Result.NATION, Result.REGIONAL, Result.CONSTITUENCY, Result.COUNCIL or Result.LOCAL
parent - Parent constituency.

showConstituencyList

void showConstituencyList(String constituency,
                          char type)
Show constituency list.

Parameters:
constituency - Constituency to display.
type - The search type. Options: Result.NATION, Result.REGIONAL, Result.CONSTITUENCY, Result.COUNCIL or Result.LOCAL

getNation

String getNation()
Get the state / nation of the results.

Returns:
Nation / state string.

showCouncilForLocal

boolean showCouncilForLocal()
This defines if the selection source wishes to show council results (for example overall results) when local results have been selected.

Returns:
True if coucil results are to be shown.


Copyright © 2008. All Rights Reserved.