Class PetsPageBuilders
java.lang.Object
org.apache.juneau.petstore.console.pages.PetsPageBuilders
Builder twins of the Pets pages: P2 Pets (
pets.ftlh), its ?mixed variant, P3 Sold
(pets-sold.ftlh) and P4 one pet (pet.ftlh).
Example:
-
Method Details
-
pets
P2 Pets.- Returns:
- The page spec.
-
petsMixed
P2 Pets, half FTL:pets-mixed.ftlhlays out the page and places this spec's table with<@card ref="pets"/>.- Returns:
- The page spec.
-
sold
P3 Sold.- Returns:
- The page spec.
-
pet
public static PageSpec pet(Pet pet, String tab, String activeNav, Order order, List<String> roles, String apiCsrf) P4 one pet, on one tab.- Parameters:
pet- The pet.tab- The tab:summary,photo,ordersorhistory.activeNav- The active nav path,pets/p<id>/<tab>orpets/p<id>/orders/o<orderId>.order- The selected order on the orders tab, ornull .roles- The viewer's roles.apiCsrf- The API's CSRF token for the photo upload form, ornull to render the form without one.- Returns:
- The page spec.
-