Class AbstractPage

    • Constructor Detail

      • AbstractPage

        protected AbstractPage()
    • Method Detail

      • getFirstRoot

        public Component getFirstRoot()
        Description copied from interface: Page
        Returns the first root component.
        Specified by:
        getFirstRoot in interface Page
      • getLastRoot

        public Component getLastRoot()
        Description copied from interface: Page
        Returns the last root component.
        Specified by:
        getLastRoot in interface Page
      • hasFellow

        public boolean hasFellow​(java.lang.String compId)
        Description copied from interface: IdSpace
        Returns whether there is a fellow named with the specified component ID.
        Specified by:
        hasFellow in interface IdSpace
      • hasFellow

        public boolean hasFellow​(java.lang.String compId,
                                 boolean recurse)
        The same as hasFellow(String). In other words, the recurse parameter is not applicable.
        Specified by:
        hasFellow in interface IdSpace
        recurse - whether to look up the parent ID space for the existence of the fellow
        Since:
        5.0.0
      • getFellowIfAny

        public Component getFellowIfAny​(java.lang.String compId)
        Description copied from interface: IdSpace
        Returns a component of the specified ID in this ID space, or null if not found.

        Unlike IdSpace.getFellow(String), it returns null if not found.

        Specified by:
        getFellowIfAny in interface IdSpace
      • getFellowIfAny

        public Component getFellowIfAny​(java.lang.String compId,
                                        boolean recurse)
        The same as getFellowIfAny(String). In other words, the recurse parameter is not applicable.
        Specified by:
        getFellowIfAny in interface IdSpace
        recurse - whether to look up the parent ID space for the existence of the fellow
        Since:
        5.0.0
      • getFellows

        public java.util.Collection<Component> getFellows()
        Description copied from interface: IdSpace
        Returns all fellows in this ID space. The returned collection is readonly.
        Specified by:
        getFellows in interface IdSpace
      • getRoots

        public java.util.Collection<Component> getRoots()
        Description copied from interface: Page
        Returns a readonly list of the root components.
        Specified by:
        getRoots in interface Page
      • destroy

        public void destroy()
        Description copied from interface: PageCtrl
        Called when this page is about to be destroyed. It is called by desktop, after removing it from the desktop.
        Specified by:
        destroy in interface PageCtrl