Interface IELayoutMgr<LAYOUT_PROP extends LayoutProp>

All Superinterfaces:
IAdaptable, IEUICompBase, IGProp<GProp<?>[]>, ILinkCapable, IPropCnr, IPropDesigner, ITransferContainerProps, IUIBuilderFromVSLinkEnabler
All Known Subinterfaces:
IELayoutMgrDND<LAYOUT_PROP>, IELayoutMgrSimpleDND<LAYOUT_PROP>
All Known Implementing Classes:
EAbsoluteLayout, EAccordionLayout, EBorderLayout, ECalendarLayout, EContextMenuLayout, EFlexLayout, EGridLayout, EHeadingLayout, EListLayout, EMapLayout, EMenuBarLayout, EMenuLayout, EMLGroupLayout, EMListLayout, ESwapLayout, ETabBarLayout, ETabLayout, EUITableLayout

public interface IELayoutMgr<LAYOUT_PROP extends LayoutProp> extends IEUICompBase, IUIBuilderFromVSLinkEnabler, ITransferContainerProps
Interface implemented by layout managers.
Author:
Christopher Mindus
  • Method Details

    • getPropertyEditorLayoutDataSetup

      Object[] getPropertyEditorLayoutDataSetup()
      Gets the layout data settings for a component.
      Returns:
      The layout additional objects, or null for none.
    • createDefaultLayoutProp

      LAYOUT_PROP createDefaultLayoutProp(UIComp uiComp)
      Creates the default LayoutProp to use for a new component that is inserted directly into the UIComps container.
      Parameters:
      uiComp - The component requesting the default layout property.
      Returns:
      A new instance of the layout data of this layout manager.
    • getCompsCnr

      UIComps getCompsCnr()
      Gets the container associated with this layout manager and the UI container.
      Returns:
      The UI components container.
    • getUIComps

      UIComp[] getUIComps()
      Gets all components for the container of the layout manager.
      Returns:
      The components in the container for the layout manager.
    • getLayoutDataClass

      Class<LAYOUT_PROP> getLayoutDataClass()
      Gets the layout data class.
    • isCNVisible

      default boolean isCNVisible()
      Checks if a property should be included in the view or if it's hidden or filtered out.
      Returns:
      Default is false, override to display in tree.
    • isReplaceable

      default boolean isReplaceable()
      Checks if this layout manager is replaceable by another.
      Returns:
      By default, the layout managers are not replaceable, so this method must be overridden.
    • layoutNewComponents

      default IStatus layoutNewComponents(List<UIComp> components, ComplexOperation op)
      Called to perform layout of the newly added components.
      Parameters:
      components - The new components.
      op - The complex operation.
      Returns:
      Status of the operation.