Ejemplo n.º 1
0
  @Override
  public void loadSettings() {
    final Position position = step5cModel.getPosition();
    positionController = new PositionController(position);
    final List<Component> components = step5cModel.getMissingPositionComponents();
    positionController.setMissingComponents(components);
    positionController.unassignMissingComponentValues();

    final String description = step5cModel.getDescription();
    final List<MissingComponentPanel> missingComponentPanels =
        positionController.getMissingComponentPanels();
    step5Panel = new Step5Panel(description, missingComponentPanels);

    tableController.turnSelectionOff();
    positionController.markComponents();
  }
Ejemplo n.º 2
0
  @Override
  public void saveSettings() {
    positionController.assignMissingComponentValues();

    final List<Component> components = positionController.getMissingComponents();
    step5cModel.setMissingPositionComponents(components);

    tableController.clearMarkedTableElements();
    tableController.turnSelectionOn();

    positionController = null;
    step5Panel = null;
  }