-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add menu item ranking constants and update implementations (#7096)
* feat: add menu item ranking constants and update related implementations * feat: add ranking menu item constants and implement related menu item factories
- Loading branch information
Showing
39 changed files
with
688 additions
and
366 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
...a/web/impl/ui/application/views/common/menufactory/api/CountryRankingMenuItemFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.hack23.cia.web.impl.ui.application.views.common.menufactory.api; | ||
|
||
import com.vaadin.ui.MenuBar.MenuItem; | ||
import com.vaadin.ui.VerticalLayout; | ||
|
||
public interface CountryRankingMenuItemFactory { | ||
void createOverviewPage(VerticalLayout panelContent); | ||
void createCountryRankingTopics(MenuItem countryMenuItem); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
...ui/application/views/common/menufactory/api/MenuItemRankingPageVisitHistoryConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.hack23.cia.web.impl.ui.application.views.common.menufactory.api; | ||
|
||
|
||
public interface MenuItemRankingPageVisitHistoryConstants { | ||
String PAGE_VISIT_HISTORY_TEXT = "Page Visit History"; | ||
String PAGE_VISIT_HISTORY_DESCRIPTION = "View visit history and statistics"; | ||
} |
16 changes: 16 additions & 0 deletions
16
.../cia/web/impl/ui/application/views/common/menufactory/api/PageCommandBallotConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.hack23.cia.web.impl.ui.application.views.common.menufactory.api; | ||
|
||
import com.hack23.cia.web.impl.ui.application.views.common.pagelinks.api.PageModeMenuCommand; | ||
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.PageMode; | ||
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.UserViews; | ||
|
||
public interface PageCommandBallotConstants { | ||
PageModeMenuCommand COMMAND_BALLOT_OVERVIEW = new PageModeMenuCommand( | ||
UserViews.BALLOT_VIEW_NAME, PageMode.OVERVIEW); | ||
|
||
PageModeMenuCommand COMMAND_BALLOT_DECISION_SUMMARY = new PageModeMenuCommand( | ||
UserViews.BALLOT_VIEW_NAME, "decisionsummary"); | ||
|
||
PageModeMenuCommand COMMAND_BALLOT_PAGEVISIT_HISTORY = new PageModeMenuCommand( | ||
UserViews.BALLOT_VIEW_NAME, PageMode.PAGEVISITHISTORY); | ||
} |
20 changes: 20 additions & 0 deletions
20
...a/web/impl/ui/application/views/common/menufactory/api/PageCommandCommitteeConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.hack23.cia.web.impl.ui.application.views.common.menufactory.api; | ||
|
||
import com.hack23.cia.web.impl.ui.application.views.common.pagelinks.api.PageModeMenuCommand; | ||
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.ChartIndicators; | ||
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.PageMode; | ||
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.UserViews; | ||
|
||
public interface PageCommandCommitteeConstants { | ||
PageModeMenuCommand COMMAND_COMMITTEES_BY_PARTY = new PageModeMenuCommand( | ||
UserViews.COMMITTEE_RANKING_VIEW_NAME, | ||
PageMode.CHARTS, ChartIndicators.COMMITTEESBYPARTY.toString()); | ||
|
||
PageModeMenuCommand COMMAND_CURRENT_COMMITTEES_BY_PARTY_DAYS_SERVED = new PageModeMenuCommand( | ||
UserViews.COMMITTEE_RANKING_VIEW_NAME, | ||
PageMode.CHARTS, ChartIndicators.CURRENTCOMMITTEESBYPARTYDAYSSERVED.toString()); | ||
|
||
PageModeMenuCommand COMMAND_CHARTS_CURRENT_COMMITTEES = new PageModeMenuCommand( | ||
UserViews.PARTY_RANKING_VIEW_NAME, PageMode.CHARTS, | ||
ChartIndicators.CURRENTCOMMITTEES.toString()); | ||
} |
28 changes: 28 additions & 0 deletions
28
...mpl/ui/application/views/common/menufactory/api/PageCommandCommitteeRankingConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.hack23.cia.web.impl.ui.application.views.common.menufactory.api; | ||
|
||
import com.hack23.cia.web.impl.ui.application.views.common.pagelinks.api.PageModeMenuCommand; | ||
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.ChartIndicators; | ||
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.PageMode; | ||
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.UserViews; | ||
|
||
public interface PageCommandCommitteeRankingConstants { | ||
PageModeMenuCommand COMMAND_COMMITTEE_RANKING_DATAGRID = new PageModeMenuCommand( | ||
UserViews.COMMITTEE_RANKING_VIEW_NAME, PageMode.DATAGRID); | ||
|
||
PageModeMenuCommand COMMAND_COMMITTEE_RANKING_OVERVIEW = new PageModeMenuCommand( | ||
UserViews.COMMITTEE_RANKING_VIEW_NAME, PageMode.OVERVIEW); | ||
|
||
PageModeMenuCommand COMMAND_ALL_COMMITTEES_BY_HEADCOUNT = new PageModeMenuCommand( | ||
UserViews.COMMITTEE_RANKING_VIEW_NAME, | ||
PageMode.CHARTS, ChartIndicators.ALLCOMMITTEESBYHEADCOUNT.toString()); | ||
|
||
PageModeMenuCommand COMMAND_CURRENT_COMMITTEES_BY_HEADCOUNT = new PageModeMenuCommand( | ||
UserViews.COMMITTEE_RANKING_VIEW_NAME, | ||
PageMode.CHARTS, ChartIndicators.CURRENTCOMMITTEESBYHEADCOUNT.toString()); | ||
|
||
PageModeMenuCommand COMMITTEE_RANKING_COMMAND_PAGEVISIT_HISTORY = new PageModeMenuCommand( | ||
UserViews.COMMITTEE_RANKING_VIEW_NAME, PageMode.PAGEVISITHISTORY); | ||
|
||
// Remove this line to avoid ambiguity | ||
// PageModeMenuCommand COMMAND_PAGEVISIT_HISTORY = COMMITTEE_RANKING_COMMAND_PAGEVISIT_HISTORY; | ||
} |
18 changes: 18 additions & 0 deletions
18
.../impl/ui/application/views/common/menufactory/api/PageCommandCountryRankingConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.hack23.cia.web.impl.ui.application.views.common.menufactory.api; | ||
|
||
import com.hack23.cia.web.impl.ui.application.views.common.pagelinks.api.PageModeMenuCommand; | ||
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.PageMode; | ||
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.UserViews; | ||
|
||
public interface PageCommandCountryRankingConstants { | ||
// Standardize to: COMMAND_[VIEW]_[ACTION] | ||
PageModeMenuCommand COMMAND_COUNTRY_RANKING_OVERVIEW = new PageModeMenuCommand( | ||
UserViews.COUNTRY_RANKING_VIEW_NAME, PageMode.OVERVIEW); | ||
|
||
// Should be: COMMAND_COUNTRY_RANKING_PAGEVISIT_HISTORY for consistency | ||
PageModeMenuCommand COMMAND_COUNTRY_RANKING_PAGEVISIT_HISTORY = new PageModeMenuCommand( | ||
UserViews.COUNTRY_RANKING_VIEW_NAME, PageMode.PAGEVISITHISTORY); | ||
|
||
// Generic command reference | ||
PageModeMenuCommand COMMAND_OVERVIEW = COMMAND_COUNTRY_RANKING_OVERVIEW; | ||
} |
25 changes: 25 additions & 0 deletions
25
...ia/web/impl/ui/application/views/common/menufactory/api/PageCommandDocumentConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.hack23.cia.web.impl.ui.application.views.common.menufactory.api; | ||
|
||
import com.hack23.cia.web.impl.ui.application.views.common.pagelinks.api.PageModeMenuCommand; | ||
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.PageMode; | ||
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.UserViews; | ||
|
||
public interface PageCommandDocumentConstants { | ||
PageModeMenuCommand COMMAND_DOCUMENT_ACTIVITY = new PageModeMenuCommand( | ||
UserViews.DOCUMENT_VIEW_NAME, PageMode.OVERVIEW); | ||
|
||
PageModeMenuCommand COMMAND_DOCUMENT_DETAILS = new PageModeMenuCommand( | ||
UserViews.DOCUMENT_VIEW_NAME, "details"); | ||
|
||
PageModeMenuCommand COMMAND_DOCUMENT_REFERENCES = new PageModeMenuCommand( | ||
UserViews.DOCUMENT_VIEW_NAME, "references"); | ||
|
||
PageModeMenuCommand COMMAND_DOCUMENTS = new PageModeMenuCommand( | ||
UserViews.DOCUMENTS_VIEW_NAME, PageMode.OVERVIEW); | ||
|
||
PageModeMenuCommand COMMAND_SEARCH_DOCUMENT = new PageModeMenuCommand( | ||
UserViews.SEARCH_DOCUMENT_VIEW_NAME, ""); | ||
|
||
PageModeMenuCommand COMMAND_DOCUMENT_PAGEVISIT_HISTORY = new PageModeMenuCommand( | ||
UserViews.DOCUMENT_VIEW_NAME, PageMode.PAGEVISITHISTORY); | ||
} |
24 changes: 24 additions & 0 deletions
24
.../impl/ui/application/views/common/menufactory/api/PageCommandGovernmentBodyConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.hack23.cia.web.impl.ui.application.views.common.menufactory.api; | ||
|
||
import com.hack23.cia.web.impl.ui.application.views.common.pagelinks.api.PageModeMenuCommand; | ||
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.GovernmentBodyPageMode; | ||
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.PageMode; | ||
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.UserViews; | ||
|
||
public interface PageCommandGovernmentBodyConstants { | ||
PageModeMenuCommand GOVERNMENT_BODY_COMMAND_EXPENDITURE = new PageModeMenuCommand( | ||
UserViews.GOVERNMENT_BODY_VIEW_NAME, | ||
GovernmentBodyPageMode.EXPENDITURE.toString()); | ||
|
||
PageModeMenuCommand GOVERNMENT_BODY_COMMAND_HEADCOUNT = new PageModeMenuCommand( | ||
UserViews.GOVERNMENT_BODY_VIEW_NAME, | ||
GovernmentBodyPageMode.HEADCOUNT.toString()); | ||
|
||
PageModeMenuCommand GOVERNMENT_BODY_COMMAND_INCOME = new PageModeMenuCommand( | ||
UserViews.GOVERNMENT_BODY_VIEW_NAME, | ||
GovernmentBodyPageMode.INCOME.toString()); | ||
|
||
PageModeMenuCommand GOVERNMENT_BODY_COMMAND_OVERVIEW = new PageModeMenuCommand( | ||
UserViews.GOVERNMENT_BODY_VIEW_NAME, | ||
PageMode.OVERVIEW); | ||
} |
44 changes: 44 additions & 0 deletions
44
...i/application/views/common/menufactory/api/PageCommandGovernmentBodyRankingConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package com.hack23.cia.web.impl.ui.application.views.common.menufactory.api; | ||
|
||
import com.hack23.cia.web.impl.ui.application.views.common.pagelinks.api.PageModeMenuCommand; | ||
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.ChartIndicators; | ||
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.PageMode; | ||
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.UserViews; | ||
|
||
public interface PageCommandGovernmentBodyRankingConstants { | ||
PageModeMenuCommand GOVERNMENT_BODY_COMMAN_OVERVIEW = new PageModeMenuCommand( | ||
UserViews.GOVERNMENT_BODY_RANKING_VIEW_NAME, | ||
PageMode.OVERVIEW); | ||
|
||
PageModeMenuCommand COMMAND_GOVERNMENT_BODY_RANKING_DATAGRID = new PageModeMenuCommand( | ||
UserViews.GOVERNMENT_BODY_RANKING_VIEW_NAME, PageMode.DATAGRID); | ||
|
||
PageModeMenuCommand COMMAND_GOVERNMENT_BODY_RANKING_OVERVIEW = new PageModeMenuCommand( | ||
UserViews.GOVERNMENT_BODY_RANKING_VIEW_NAME, PageMode.OVERVIEW); | ||
|
||
PageModeMenuCommand COMMAND_GOVERNMENT_BODIES_HEADCOUNT = new PageModeMenuCommand( | ||
UserViews.GOVERNMENT_BODY_RANKING_VIEW_NAME, | ||
PageMode.CHARTS, ChartIndicators.GOVERNMENTBODIESHEADCOUNT.toString()); | ||
|
||
PageModeMenuCommand COMMAND_GOVERNMENT_BODIES_INCOME = new PageModeMenuCommand( | ||
UserViews.GOVERNMENT_BODY_RANKING_VIEW_NAME, | ||
PageMode.CHARTS, ChartIndicators.GOVERNMENTBODIESINCOME.toString()); | ||
|
||
PageModeMenuCommand COMMAND_GOVERNMENT_BODIES_EXPENDITURE = new PageModeMenuCommand( | ||
UserViews.GOVERNMENT_BODY_RANKING_VIEW_NAME, | ||
PageMode.CHARTS, ChartIndicators.GOVERNMENTBODIESEXPENDITURE.toString()); | ||
|
||
PageModeMenuCommand COMMAND_GOVERNMENT_OUTCOME = new PageModeMenuCommand( | ||
UserViews.GOVERNMENT_BODY_RANKING_VIEW_NAME, | ||
PageMode.CHARTS, ChartIndicators.GOVERNMENTOUTCOME.toString()); | ||
|
||
PageModeMenuCommand COMMAND_CHARTS_ALL_GOVERNMENT_ROLE_GANTT = new PageModeMenuCommand( | ||
UserViews.GOVERNMENT_BODY_RANKING_VIEW_NAME, | ||
PageMode.CHARTS, ChartIndicators.ALLGOVERNMENTROLEGANTT.toString()); | ||
|
||
PageModeMenuCommand GOVERNMENT_RANKING_COMMAND_PAGEVISIT_HISTORY = new PageModeMenuCommand( | ||
UserViews.GOVERNMENT_BODY_RANKING_VIEW_NAME, PageMode.PAGEVISITHISTORY); | ||
|
||
// Remove this line to avoid ambiguity | ||
// PageModeMenuCommand COMMAND_PAGEVISITHISTORY = GOVERNMENT_RANKING_COMMAND_PAGEVISIT_HISTORY; | ||
} |
26 changes: 26 additions & 0 deletions
26
...ia/web/impl/ui/application/views/common/menufactory/api/PageCommandMainViewConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.hack23.cia.web.impl.ui.application.views.common.menufactory.api; | ||
|
||
import com.hack23.cia.web.impl.ui.application.views.common.pagelinks.api.PageModeMenuCommand; | ||
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.ApplicationPageMode; | ||
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.CommonsViews; | ||
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.PageMode; | ||
|
||
public interface PageCommandMainViewConstants { | ||
PageModeMenuCommand COMMAND_MAINVIEW_OVERVIEW = new PageModeMenuCommand(CommonsViews.MAIN_VIEW_NAME, | ||
PageMode.OVERVIEW); | ||
|
||
PageModeMenuCommand COMMAND_DASHBOARDVIEW_OVERVIEW = new PageModeMenuCommand(CommonsViews.DASHBOARD_VIEW_NAME, | ||
PageMode.OVERVIEW); | ||
|
||
PageModeMenuCommand COMMAND_MAINVIEW_PAGEVISITHISTORY = new PageModeMenuCommand(CommonsViews.MAIN_VIEW_NAME, | ||
PageMode.PAGEVISITHISTORY); | ||
|
||
PageModeMenuCommand COMMAND_LOGIN = new PageModeMenuCommand(CommonsViews.MAIN_VIEW_NAME, | ||
ApplicationPageMode.LOGIN.toString()); | ||
|
||
PageModeMenuCommand COMMAND_LOGOUT = new PageModeMenuCommand(CommonsViews.MAIN_VIEW_NAME, | ||
ApplicationPageMode.LOGOUT.toString()); | ||
|
||
PageModeMenuCommand COMMAND_REGISTER = new PageModeMenuCommand(CommonsViews.MAIN_VIEW_NAME, | ||
ApplicationPageMode.REGISTER.toString()); | ||
} |
19 changes: 19 additions & 0 deletions
19
...ia/web/impl/ui/application/views/common/menufactory/api/PageCommandMinistryConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.hack23.cia.web.impl.ui.application.views.common.menufactory.api; | ||
|
||
import com.hack23.cia.web.impl.ui.application.views.common.pagelinks.api.PageModeMenuCommand; | ||
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.ChartIndicators; | ||
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.PageMode; | ||
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.UserViews; | ||
|
||
public interface PageCommandMinistryConstants { | ||
PageModeMenuCommand MINISTRY_COMMAND_CHARTS_CURRENT_BY_HEADCOUNT = new PageModeMenuCommand( | ||
UserViews.MINISTRY_VIEW_NAME, | ||
PageMode.CHARTS, ChartIndicators.CURRENTMINISTRIESBYHEADCOUNT.toString()); | ||
|
||
PageModeMenuCommand MINISTRY_COMMAND_CHARTS_ALL_BY_HEADCOUNT = new PageModeMenuCommand( | ||
UserViews.MINISTRY_VIEW_NAME, | ||
PageMode.CHARTS, ChartIndicators.ALLMINISTRIESBYHEADCOUNT.toString()); | ||
|
||
PageModeMenuCommand MINISTRY_COMMAND_PAGEVISITHISTORY = new PageModeMenuCommand( | ||
UserViews.MINISTRY_VIEW_NAME, PageMode.PAGEVISITHISTORY); | ||
} |
40 changes: 40 additions & 0 deletions
40
...impl/ui/application/views/common/menufactory/api/PageCommandMinistryRankingConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package com.hack23.cia.web.impl.ui.application.views.common.menufactory.api; | ||
|
||
import com.hack23.cia.web.impl.ui.application.views.common.pagelinks.api.PageModeMenuCommand; | ||
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.ChartIndicators; | ||
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.PageMode; | ||
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.UserViews; | ||
|
||
public interface PageCommandMinistryRankingConstants { | ||
PageModeMenuCommand COMMAND_MINISTRY_RANKING_DATAGRID = new PageModeMenuCommand( | ||
UserViews.MINISTRY_RANKING_VIEW_NAME, PageMode.DATAGRID); | ||
|
||
PageModeMenuCommand COMMAND_MINISTRY_RANKING_OVERVIEW = new PageModeMenuCommand( | ||
UserViews.MINISTRY_RANKING_VIEW_NAME, PageMode.OVERVIEW); | ||
|
||
PageModeMenuCommand COMMAND_CHARTS_CURRENT_MINISTRIES_LEADER_SCOREBOARD = new PageModeMenuCommand( | ||
UserViews.MINISTRY_RANKING_VIEW_NAME, | ||
PageMode.CHARTS, ChartIndicators.CURRENTMINISTRIESLEADERSCORECARD.toString()); | ||
|
||
PageModeMenuCommand COMMAND_CHARTS_CURRENT_MINISTRIES_BY_HEADCOUNT = new PageModeMenuCommand( | ||
UserViews.MINISTRY_RANKING_VIEW_NAME, | ||
PageMode.CHARTS, ChartIndicators.CURRENTMINISTRIESBYHEADCOUNT.toString()); | ||
|
||
PageModeMenuCommand COMMAND_CHARTS_ALL_MINISTRIES_BY_HEADCOUNT = new PageModeMenuCommand( | ||
UserViews.MINISTRY_RANKING_VIEW_NAME, | ||
PageMode.CHARTS, ChartIndicators.ALLMINISTRIESBYHEADCOUNT.toString()); | ||
|
||
PageModeMenuCommand COMMAND_CHARTS_ALLMINISTRIES_BY_TOTAL_DAYS = new PageModeMenuCommand( | ||
UserViews.MINISTRY_RANKING_VIEW_NAME, | ||
PageMode.CHARTS, ChartIndicators.ALLMINISTRIESBYTOTALDAYS.toString()); | ||
|
||
PageModeMenuCommand COMMAND_CHARTS_CURRENT_PARTIES_BY_HEADCOUNT = new PageModeMenuCommand( | ||
UserViews.MINISTRY_RANKING_VIEW_NAME, | ||
PageMode.CHARTS, ChartIndicators.CURRENTPARTIESBYHEADCOUNT.toString()); | ||
|
||
PageModeMenuCommand MINISTRY_RANKING_COMMAND_PAGEVISIT_HISTORY = new PageModeMenuCommand( | ||
UserViews.MINISTRY_RANKING_VIEW_NAME, PageMode.PAGEVISITHISTORY); | ||
|
||
// Remove ambiguous constant | ||
// PageModeMenuCommand COMMAND_PAGEVISITHISTORY | ||
} |
27 changes: 27 additions & 0 deletions
27
...ia/web/impl/ui/application/views/common/menufactory/api/PageCommandPageModeConstants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.hack23.cia.web.impl.ui.application.views.common.menufactory.api; | ||
|
||
import com.hack23.cia.web.impl.ui.application.views.common.pagelinks.api.PageModeMenuCommand; | ||
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.PageMode; | ||
import com.hack23.cia.web.impl.ui.application.views.common.viewnames.UserViews; | ||
|
||
public interface PageCommandPageModeConstants extends RankingNavigationConstants { | ||
// Generic base commands without view context - define these first | ||
PageModeMenuCommand COMMAND_GENERIC_OVERVIEW = new PageModeMenuCommand("", PageMode.OVERVIEW); | ||
PageModeMenuCommand COMMAND_GENERIC_PAGEVISIT = new PageModeMenuCommand("", PageMode.PAGEVISITHISTORY); | ||
PageModeMenuCommand COMMAND_GENERIC_DATAGRID = new PageModeMenuCommand("", PageMode.DATAGRID); | ||
PageModeMenuCommand COMMAND_GENERIC_CHARTS = new PageModeMenuCommand("", PageMode.CHARTS); | ||
|
||
// Base commands that reference the generic ones - these must come after | ||
PageModeMenuCommand COMMAND_OVERVIEW = COMMAND_GENERIC_OVERVIEW; | ||
PageModeMenuCommand COMMAND_PAGEVISIT = COMMAND_GENERIC_PAGEVISIT; | ||
PageModeMenuCommand COMMAND_DATAGRID = COMMAND_GENERIC_DATAGRID; | ||
PageModeMenuCommand COMMAND_CHARTS = COMMAND_GENERIC_CHARTS; | ||
|
||
// Party ranking commands | ||
PageModeMenuCommand COMMAND_CHARTS_CURRENT_PARTIES_LEADER_SCOREBOARD = | ||
new PageModeMenuCommand(UserViews.PARTY_RANKING_VIEW_NAME, PageMode.CHARTS); | ||
PageModeMenuCommand COMMAND_PARTY_RANKING_OVERVIEW = | ||
new PageModeMenuCommand(UserViews.PARTY_RANKING_VIEW_NAME, PageMode.OVERVIEW); | ||
PageModeMenuCommand COMMAND_PARTY_RANKING_DATAGRID = | ||
new PageModeMenuCommand(UserViews.PARTY_RANKING_VIEW_NAME, PageMode.DATAGRID); | ||
} |
Oops, something went wrong.