Class CaiModelUtil

java.lang.Object
com._1c.g5.v8.dt.cai.model.util.CaiModelUtil

public final class CaiModelUtil extends Object
Util for model of Client Application Interface
  • Method Details

    • createCaiPanel

      public static CaiPanel createCaiPanel(CaiPanelInfo panelInfo)
      Create panel of Client Application Interface with random uuid by given panel info
      Parameters:
      panelInfo - the new panel basic information, cannot be null
      Returns:
      new instance of CaiPanel, never null
    • createCaiGroup

      public static CaiGroup createCaiGroup()
      Create group of Client Application Interface with random uuid
      Returns:
      new instance of CaiGroup, never null
    • getContainedPanelInfos

      public static Set<CaiPanelInfo> getContainedPanelInfos(ClientApplicationInterface clientApplicationInterface)
      Set of all panel infos contained in ClientApplicationInterface
      Parameters:
      clientApplicationInterface - the ClientApplicationInterface contains panels, cannot be null
      Returns:
      set of CaiPanelInfo, never null
    • getContainedPanelInfos

      public static Set<CaiPanelInfo> getContainedPanelInfos(Collection<? extends CaiAbstractItem> side)
      Set of all panel infos contained in given collection
      Parameters:
      side - the collection contains panels, cannot be null
      Returns:
      set of CaiPanelInfo, never null
    • getContainedPanels

      public static List<CaiPanel> getContainedPanels(ClientApplicationInterface clientApplicationInterface)
      List of all panels contained in ClientApplicationInterface
      Parameters:
      clientApplicationInterface - the ClientApplicationInterface contains panels, cannot be null
      Returns:
      list of CaiPanel, never null
    • getContainedPanels

      public static List<CaiPanel> getContainedPanels(Collection<? extends CaiAbstractItem> side)
      List of all panels contained in given collection
      Parameters:
      side - the collection contains panels, cannot be null
      Returns:
      list of CaiPanel, never null
    • getClientApplicationInterface

      public static ClientApplicationInterface getClientApplicationInterface(CaiAbstractItem item)
      Get parent ClientApplicationInterface for given item
      Parameters:
      item - the client application interface item, cannot be null
      Returns:
      parent ClientApplicationInterface or null if given item not contains in any ClientApplicationInterface
    • getDirectionFeature

      public static org.eclipse.emf.ecore.EStructuralFeature getDirectionFeature(CaiAbstractItem item)
      Get direction feature of Client Application Interface containing given item
      Parameters:
      item - the client application interface item, cannot be null
      Returns:
      one of Client Application Interface direction feature (top, bottom, left, right), or null