Class TabRegistry

java.lang.Object
net.minheur.potoflux.screen.tabs.TabRegistry
All Implemented Interfaces:
IRegistry<Tab>

public class TabRegistry extends Object implements IRegistry<Tab>
Registry to stores all tabs.
All tabs should be added to it, otherwise they will not be found by the app.
  • Constructor Details

    • TabRegistry

      public TabRegistry()
  • Method Details

    • getAll

      public static Collection<Tab> getAll()
      Getter for all the tabs
      Returns:
      all the tabs
    • add

      public Tab add(Tab item)
      Adds a tab to the reg
      Specified by:
      add in interface IRegistry<Tab>
      Parameters:
      item - tab to add to the reg
      Returns:
      the added item