/** * Add the navigation button(s) to the left of the grid row. */ public void addNavButtons() { BaseApplication application = (BaseApplication)this.getTask().getApplication(); new SCannedBox(this.getNextLocation(ScreenConstants.FIRST_SCREEN_LOCATION, ScreenConstants.SET_ANCHOR), this, null, ScreenConstants.DEFAULT_DISPLAY, null, null, Booking.BUTTON_LOCATION + ProductType.ITEM, ProductType.ITEM, application.getResources(ResourceConstants.PRODUCT_RESOURCE, true).getString(ProductType.ITEM)); new SCannedBox(this.getNextLocation(ScreenConstants.FIRST_SCREEN_LOCATION, ScreenConstants.SET_ANCHOR), this, null, ScreenConstants.DEFAULT_DISPLAY, null, null, Booking.BUTTON_LOCATION + ProductType.CRUISE, ProductType.CRUISE, application.getResources(ResourceConstants.PRODUCT_RESOURCE, true).getString(ProductType.CRUISE)); new SCannedBox(this.getNextLocation(ScreenConstants.FIRST_SCREEN_LOCATION, ScreenConstants.SET_ANCHOR), this, null, ScreenConstants.DEFAULT_DISPLAY, null, null, Booking.BUTTON_LOCATION + ProductType.TRANSPORTATION, ProductType.TRANSPORTATION, application.getResources(ResourceConstants.PRODUCT_RESOURCE, true).getString(ProductType.TRANSPORTATION)); new SCannedBox(this.getNextLocation(ScreenConstants.FIRST_SCREEN_LOCATION, ScreenConstants.SET_ANCHOR), this, null, ScreenConstants.DEFAULT_DISPLAY, null, null, Booking.BUTTON_LOCATION + ProductType.CAR, ProductType.CAR, application.getResources(ResourceConstants.PRODUCT_RESOURCE, true).getString(ProductType.CAR)); new SCannedBox(this.getNextLocation(ScreenConstants.FIRST_SCREEN_LOCATION, ScreenConstants.SET_ANCHOR), this, null, ScreenConstants.DEFAULT_DISPLAY, null, null, Booking.BUTTON_LOCATION + ProductType.LAND, ProductType.LAND, application.getResources(ResourceConstants.PRODUCT_RESOURCE, true).getString(ProductType.LAND)); new SCannedBox(this.getNextLocation(ScreenConstants.FIRST_SCREEN_LOCATION, ScreenConstants.SET_ANCHOR), this, null, ScreenConstants.DEFAULT_DISPLAY, null, null, Booking.BUTTON_LOCATION + ProductType.HOTEL, ProductType.HOTEL, application.getResources(ResourceConstants.PRODUCT_RESOURCE, true).getString(ProductType.HOTEL)); new SCannedBox(this.getNextLocation(ScreenConstants.FIRST_SCREEN_LOCATION, ScreenConstants.SET_ANCHOR), this, null, ScreenConstants.DEFAULT_DISPLAY, null, null, Booking.BUTTON_LOCATION + ProductType.AIR, ProductType.AIR, application.getResources(ResourceConstants.PRODUCT_RESOURCE, true).getString(ProductType.AIR)); new SCannedBox(this.getNextLocation(ScreenConstants.FIRST_SCREEN_LOCATION, ScreenConstants.SET_ANCHOR), this, null, ScreenConstants.DEFAULT_DISPLAY, null, null, Booking.BUTTON_LOCATION + ProductType.AIR + "Header", ProductType.AIR + "Header", application.getResources(ResourceConstants.PRODUCT_RESOURCE, true).getString(ProductType.AIR + "Header")); new SCannedBox(this.getNextLocation(ScreenConstants.FIRST_SCREEN_LOCATION, ScreenConstants.SET_ANCHOR), this, null, ScreenConstants.DEFAULT_DISPLAY, null, null, Booking.BUTTON_LOCATION + ProductType.TOUR, ProductType.TOUR, application.getResources(ResourceConstants.PRODUCT_RESOURCE, true).getString(ProductType.TOUR)); new SCannedBox(this.getNextLocation(ScreenConstants.FIRST_SCREEN_LOCATION, ScreenConstants.SET_ANCHOR), this, null, ScreenConstants.DEFAULT_DISPLAY, null, null, Booking.BUTTON_LOCATION + "Price", Product.PRICING_DETAIL, application.getResources(ResourceConstants.PRODUCT_RESOURCE, true).getString(Product.PRICING_DETAIL)); super.addNavButtons(); // Next buttons will be "First!" } /**
/** * Add the navigation button(s) to the left of the grid row. */ public void addNavButtons() { BaseApplication application = (BaseApplication)this.getTask().getApplication(); new SCannedBox(this.getNextLocation(ScreenConstants.FIRST_SCREEN_LOCATION, ScreenConstants.SET_ANCHOR), this, null, ScreenConstants.DEFAULT_DISPLAY, null, null, Booking.BUTTON_LOCATION + ProductType.ITEM, ProductType.ITEM, application.getResources(ResourceConstants.PRODUCT_RESOURCE, true).getString(ProductType.ITEM)); new SCannedBox(this.getNextLocation(ScreenConstants.FIRST_SCREEN_LOCATION, ScreenConstants.SET_ANCHOR), this, null, ScreenConstants.DEFAULT_DISPLAY, null, null, Booking.BUTTON_LOCATION + ProductType.CRUISE, ProductType.CRUISE, application.getResources(ResourceConstants.PRODUCT_RESOURCE, true).getString(ProductType.CRUISE)); new SCannedBox(this.getNextLocation(ScreenConstants.FIRST_SCREEN_LOCATION, ScreenConstants.SET_ANCHOR), this, null, ScreenConstants.DEFAULT_DISPLAY, null, null, Booking.BUTTON_LOCATION + ProductType.TRANSPORTATION, ProductType.TRANSPORTATION, application.getResources(ResourceConstants.PRODUCT_RESOURCE, true).getString(ProductType.TRANSPORTATION)); new SCannedBox(this.getNextLocation(ScreenConstants.FIRST_SCREEN_LOCATION, ScreenConstants.SET_ANCHOR), this, null, ScreenConstants.DEFAULT_DISPLAY, null, null, Booking.BUTTON_LOCATION + ProductType.CAR, ProductType.CAR, application.getResources(ResourceConstants.PRODUCT_RESOURCE, true).getString(ProductType.CAR)); new SCannedBox(this.getNextLocation(ScreenConstants.FIRST_SCREEN_LOCATION, ScreenConstants.SET_ANCHOR), this, null, ScreenConstants.DEFAULT_DISPLAY, null, null, Booking.BUTTON_LOCATION + ProductType.LAND, ProductType.LAND, application.getResources(ResourceConstants.PRODUCT_RESOURCE, true).getString(ProductType.LAND)); new SCannedBox(this.getNextLocation(ScreenConstants.FIRST_SCREEN_LOCATION, ScreenConstants.SET_ANCHOR), this, null, ScreenConstants.DEFAULT_DISPLAY, null, null, Booking.BUTTON_LOCATION + ProductType.HOTEL, ProductType.HOTEL, application.getResources(ResourceConstants.PRODUCT_RESOURCE, true).getString(ProductType.HOTEL)); new SCannedBox(this.getNextLocation(ScreenConstants.FIRST_SCREEN_LOCATION, ScreenConstants.SET_ANCHOR), this, null, ScreenConstants.DEFAULT_DISPLAY, null, null, Booking.BUTTON_LOCATION + ProductType.AIR, ProductType.AIR, application.getResources(ResourceConstants.PRODUCT_RESOURCE, true).getString(ProductType.AIR)); new SCannedBox(this.getNextLocation(ScreenConstants.FIRST_SCREEN_LOCATION, ScreenConstants.SET_ANCHOR), this, null, ScreenConstants.DEFAULT_DISPLAY, null, null, Booking.BUTTON_LOCATION + ProductType.AIR + "Header", ProductType.AIR + "Header", application.getResources(ResourceConstants.PRODUCT_RESOURCE, true).getString(ProductType.AIR + "Header")); new SCannedBox(this.getNextLocation(ScreenConstants.FIRST_SCREEN_LOCATION, ScreenConstants.SET_ANCHOR), this, null, ScreenConstants.DEFAULT_DISPLAY, null, null, Booking.BUTTON_LOCATION + ProductType.TOUR, ProductType.TOUR, application.getResources(ResourceConstants.PRODUCT_RESOURCE, true).getString(ProductType.TOUR)); new SCannedBox(this.getNextLocation(ScreenConstants.FIRST_SCREEN_LOCATION, ScreenConstants.SET_ANCHOR), this, null, ScreenConstants.DEFAULT_DISPLAY, null, null, Booking.BUTTON_LOCATION + "Price", Product.PRICING_DETAIL, application.getResources(ResourceConstants.PRODUCT_RESOURCE, true).getString(Product.PRICING_DETAIL)); super.addNavButtons(); // Next buttons will be "First!" } /**