You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.copilot.

Class FlowUtil

java.lang.Object
com.vaadin.copilot.FlowUtil
public class FlowUtil extends Object
  • Method Details

    • findActiveJavaFiles

      public static Map<ComponentTracker.Location,File> findActiveJavaFiles(ProjectManager projectManager, int uiId)

      Finds all Java files that are used to create the current component tree for the given ui.

      Parameters:

      projectManager - the project manager

      uiId - the id for the UI, inside the given session

      Returns:

      a map of the locations and the corresponding Java files

    • findAllComponents

      public static Map<Component,ComponentTypeAndSourceLocation> findAllComponents(ProjectManager projectManager, int uiId)
    • getViewChain

      public static List<Class<? extends HasElement>> getViewChain(VaadinSession session, int uiId)

      Returns the view chain for the given UI.

      Parameters:

      session - the vaadin session

      uiId - the id for the UI, inside the given session

      Returns:

      a list of the view classes currently being shown in the UI

    • getNodeId

      public static Integer getNodeId(Component component)