Class CollectionPage

    • Constructor Detail

      • CollectionPage

        public CollectionPage​(java.lang.String path)
        Parameters:
        path - of the collection page to open the view on it's collection.
    • Method Detail

      • collection

        public Collection collection()
        Access to the collection inside the Sites Page.
        Returns:
        CollectionComponent.
      • leftRail

        public Rail leftRail()
        Access to the left rail.
        Returns:
        RailComponent.
      • railToggle

        public CoralCycleButton railToggle()
        Access the rail toggle cycle button.
        Returns:
        CycleButtonComponent.
      • breadcrumbs

        public Breadcrumbs breadcrumbs()
        Access the collection page breadcrumbs used to control the navigation inside this collection page.
        Returns:
        the breadcrumbs component or null if the selector for the underlying collection was not yet set
      • actionBar

        public CoralActionBar actionBar()
        Returns:
        the actionbar object.
      • quickActions

        public CoralQuickActions quickActions()
        Returns:
        quickactions object.
      • openRail

        public void openRail​(EnumRail railtype)
        Opens the rail by using the name of the rail.
        Parameters:
        railtype - - a known type of rail.
      • switchToView

        public CollectionPage switchToView​(ViewType viewType)
        Parameters:
        viewType - any from supported view (currently viewCard, viewTable, and viewList)
        Returns:
        self
      • setCurrentView

        public void setCurrentView​(ViewType viewType)
        Parameters:
        viewType - the view type to use as current view
      • hasRailItem

        public boolean hasRailItem​(java.lang.String name)
        Determines if the collection pages has a rail item in the rail toggle.
        Parameters:
        name - - the name of the item
        Returns:
        true weather or not the item exists in the rail toggle