Class SolverConfigPanelManagerImpl
- java.lang.Object
-
- cern.accsoft.steering.aloha.gui.panels.solve.SolverConfigPanelManagerImpl
-
- All Implemented Interfaces:
SolverConfigPanelManager
public class SolverConfigPanelManagerImpl extends java.lang.Object implements SolverConfigPanelManager
This class keeps track of config-panels for solvers.
-
-
Constructor Summary
Constructors Constructor Description SolverConfigPanelManagerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFactory(SolverConfigPanelFactory factory)registers a factory to the managerSolverConfigPanelgetConfigPanel(Solver solver)must return a config-panel for the given solver.voidsetSolverConfigPanels(java.util.Map<Solver,SolverConfigPanel> configPanels)adds all the panels for the solvers to the internal map.
-
-
-
Method Detail
-
getConfigPanel
public SolverConfigPanel getConfigPanel(Solver solver)
Description copied from interface:SolverConfigPanelManagermust return a config-panel for the given solver. In general the manager should reuse the instances for the same solver-instances.- Specified by:
getConfigPanelin interfaceSolverConfigPanelManager- Parameters:
solver- the Solver for which to return the panel- Returns:
- the config-panel for the given solver.
-
setSolverConfigPanels
public void setSolverConfigPanels(java.util.Map<Solver,SolverConfigPanel> configPanels)
adds all the panels for the solvers to the internal map.- Parameters:
configPanels- all the panel-instances to add
-
addFactory
public void addFactory(SolverConfigPanelFactory factory)
Description copied from interface:SolverConfigPanelManagerregisters a factory to the manager- Specified by:
addFactoryin interfaceSolverConfigPanelManager- Parameters:
factory- the factory to add
-
-