Class PartManager


  • @ApplicationScoped
    public class PartManager
    extends Object
    Manages part instances on behalf of LayoutPanelView. It's needed to retain each parts state across perspective changes.
    • Constructor Detail

      • PartManager

        public PartManager()
    • Method Detail

      • getActivePart

        public org.uberfire.commons.data.Pair<org.uberfire.workbench.model.PartDefinition,​com.google.gwt.user.client.ui.Widget> getActivePart()
      • hasActivePart

        public boolean hasActivePart()
      • registerPart

        public void registerPart​(org.uberfire.workbench.model.PartDefinition partDef,
                                 com.google.gwt.user.client.ui.Widget w)
      • removePart

        public void removePart​(org.uberfire.workbench.model.PartDefinition partDef)
      • clearParts

        public void clearParts()
      • getParts

        public Collection<org.uberfire.workbench.model.PartDefinition> getParts()
      • hasPart

        public boolean hasPart​(org.uberfire.workbench.model.PartDefinition partDef)
      • selectPart

        public com.google.gwt.user.client.ui.Widget selectPart​(org.uberfire.workbench.model.PartDefinition partDef)