Interface Frame

All Superinterfaces:
ActionsHolder, Component, Component.BelongToFrame, Component.HasCaption, Component.HasDescription, Component.HasIcon, ComponentContainer, ExpandingLayout, HasComponents, HasMargin, HasSpacing, HasSubParts, OrderedContainer, SupportsExpandRatio
All Known Subinterfaces:
DialogWindow, Fragment, FragmentImplementation, RootWindow, TabWindow, Window, WindowImplementation
All Known Implementing Classes:
DialogWindowImpl, FragmentImpl, RootWindowImpl, TabWindowImpl, WindowImpl

Root class of UI components having controller.
See Also:
  • Method Details

    • getFrameOwner

      FrameOwner getFrameOwner()
      Returns:
      UI controller of the frame
      See Also:
    • getContext

      FrameContext getContext()
      Returns:
      current frame context
    • isValid

      boolean isValid()
      Check validity by invoking validators on all components which support them.
      Returns:
      true if all components are in valid state
    • validate

      void validate() throws ValidationException
      Check validity by invoking validators on all components which support them.
      Throws:
      ValidationException - if some components are currently in invalid state
    • validate

      boolean validate(List<Validatable> fields)
      Check validity by invoking validators on specified components which support them and show validation result notification.
      Returns:
      true if the validation was successful, false if there were any problems
    • validateAll

      boolean validateAll()
      Check validity by invoking validators on all components which support them and show validation result notification.
      Returns:
      true if the validation was successful, false if there were any problems
    • addFacet

      void addFacet(Facet facet)
      Registers the passed non-visual component in the frame.
      Parameters:
      facet - facet
    • getFacet

      @Nullable Facet getFacet(String id)
      Finds registered facet by ID.
      Parameters:
      id - facet ID
      Returns:
      facet instance or null
    • getFacetNN

      default Facet getFacetNN(String id)
      Finds registered facet by ID. Throws IllegalArgumentException if not found.
      Parameters:
      id - facet ID
      Returns:
      facet instance
    • removeFacet

      void removeFacet(Facet facet)
      Removes the non-visual component from the frame.
      Parameters:
      facet - facet
    • getFacets

      Stream<Facet> getFacets()
      Returns:
      stream of registered non-visual components