Package com.onec.ui

Class LayoutSet

java.lang.Object
com.onec.ui.LayoutSet

public final class LayoutSet extends Object
The resolved UiLayout for each Viewport. Built once at startup from the authored Layout beans: a viewport-specific layout replaces the universal one for the same profile on that device. The shell endpoint picks the entry matching the client's reported viewport.
  • Constructor Details

  • Method Details

    • forViewport

      public UiLayout forViewport(Viewport viewport)
      The layout for the given viewport, falling back to desktop then any present.
    • hasDedicated

      public boolean hasDedicated(Viewport viewport)
      Whether a Layout bean specifically targets this viewport (rather than being served the universal layout by fallback). When false for a non-desktop viewport, the shell uses a device-appropriate nav default instead of inheriting the universal one.