Class AbstractApplicationFrame

    • Field Detail

      • LABEL_SEPARATOR

        public static final java.lang.String LABEL_SEPARATOR
        The delimiter to use when constructing the label from its various segments.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractApplicationFrame

        public AbstractApplicationFrame​(Component component)
        Component constructor.
        Parameters:
        component - The single child component, or null if this frame should have no child component.
    • Method Detail

      • addChildFrame

        public void addChildFrame​(Frame frame)
        Description copied from interface: ApplicationFrame
        Adds a frame to the list of child frames. This method should usually only be called by the frames themselves.
        Specified by:
        addChildFrame in interface ApplicationFrame
        Parameters:
        frame - The frame to add.
      • removeChildFrame

        public void removeChildFrame​(Frame frame)
        Description copied from interface: ApplicationFrame
        Removes a frame from the list of child frames. This method should usually only be called by the frames themselves.
        Specified by:
        removeChildFrame in interface ApplicationFrame
        Parameters:
        frame - The frame to remove.
      • getBasePlainLabel

        protected abstract java.lang.String getBasePlainLabel()
        Retrieves the plain-text base title to use when constructing a label.
        Returns:
        A base plain-text string to use when constructing a label, or null if there is no base label.
        See Also:
        updateLabel()
      • canClose

        public boolean canClose()
        Description copied from interface: Frame
        Determines whether the frame should be allowed to close. This method is called from Frame.close().
        Specified by:
        canClose in interface Frame
        Overrides:
        canClose in class AbstractFrame
        Returns:
        true if the frame should be allowed to close.
      • getChildList

        protected java.util.List<Component> getChildList()
        Retrieves a list of all child components. This method can be overridden to provide further child components to the returned list.

        This version adds all this frame's child frames to the list.

        Overrides:
        getChildList in class AbstractArrayCompositeComponent
        Returns:
        A list of child components.