@Override public boolean validatePage() { if (super.validatePage()) { VariableSelectionPaneModel variableModel = getAssistantModel().getVariableSelectionModel(); for (int i = 0; i < variableModel.getSize(); i++) { final Variable variable = variableModel.getElementAt(i); if (variable.isSelected()) { return true; } } } return false; }
@Override public AssistantPage getNextPage() { removeModeListener(); final TimeSeriesAssistantModel model = getAssistantModel(); final VariableSelectionPaneModel variableModel = model.getVariableSelectionModel(); for (int i = 0; i < variableModel.getSize(); i++) { final Variable variable = variableModel.getElementAt(i); if (variable.isSelected()) { model.setTimeSeriesName("TimeSeries_" + variable.getName()); break; } } return new TimeSeriesAssistantPage_TimeSeriesName(model); }