コード例 #1
0
ファイル: MeterModelsBean.java プロジェクト: mlpiller/SFPark
  public String getParentBreadCrumbPageTitle() {
    NavigationType currentPageType = getCurrentPageType();

    if (currentPageType.isBulk()) {
      return "Bulk Parking Space Management";

    } else if (currentPageType.isSingle()) {
      NavigationMode currentPageMode = getCurrentPageMode();

      if (currentPageMode.isAddMode()) {
        return "ADD Parking Space";
      } else if (currentPageMode.isEditMode()) {
        return "EDIT Parking Space";
      }
    }

    return "Parking Space";
  }
コード例 #2
0
ファイル: MeterModelsBean.java プロジェクト: mlpiller/SFPark
  private void moveOn() {

    String backTo = NavigationFlow.ERROR.name();

    NavigationType currentPageType = getCurrentPageType();

    if (currentPageType.isSingle()) {
      NavigationMode currentPageMode = getCurrentPageMode();

      if (currentPageMode.isAddMode()) {
        backTo = NavigationFlow.AddParkingSpace.name();
      } else if (currentPageMode.isEditMode()) {
        backTo = NavigationFlow.EditParkingSpace.name();
      }

    } else if (currentPageType.isBulk()) {
      backTo = NavigationFlow.BulkEditParkingSpace.name();
    }

    setSessionScopeValue(SessionScopeKey.NAVIGATION_INFO.getKey(), backTo);
  }