@SuppressWarnings({ "unchecked", "rawtypes" }) @Override public JComponent prepare(WizardNavigationState state) { JPanel container = new JPanel(new MigLayout("fillx,wrap 2", "[left]rel[grow,fill]")); Map<String, ForgeComponent> components = new HashMap<>(); UIContext context = navigationState.getController().getContext(); ValueChangeListener listener = new ValueChangeListener(model, components, navigationState); for (InputComponent input : navigationState.getController().getInputs().values()) { ComponentBuilder builder = ComponentBuilderRegistry.INSTANCE.getBuilderFor(input); ForgeComponent component = builder.build(context, input); component.buildUI(container); component.setValueChangeListener(listener); components.put(input.getName(), component); } navigationState.refreshNavigationState(); listener.updateComponentsState(); return container; }
public void refreshNavigationState() { WizardNavigationState navigationState = model.getCurrentNavigationState(); navigationState.CANCEL.setEnabled(true); navigationState.PREVIOUS.setEnabled(isPreviousEnabled()); navigationState.NEXT.setEnabled(isNextEnabled()); navigationState.FINISH.setEnabled(isFinishEnabled()); if (model.getDialog() != null) { model.getDialog().refreshTitle(); } }
public JComponent prepare(final WizardNavigationState state) { myRootPanel.revalidate(); myPluginsList.requestFocusInWindow(); return myRootPanel; }
@Override public JComponent prepare(final WizardNavigationState state) { rootPanel.revalidate(); return rootPanel; }
@Override public JComponent prepare(final WizardNavigationState state) { libraryPropertiesPanel = new LibraryPropertiesPanel(myModel.getMyModule(), myModel.getSelectedLibrary(), false, true); return libraryPropertiesPanel.prepare(); }
@Override public JComponent prepare(WizardNavigationState state) { rootPanel.revalidate(); return rootPanel; }
@Override public JComponent prepare(final WizardNavigationState state) { // rootPanel.revalidate(); state.FINISH.setEnabled(true); return jdkServerPanel.getPanel(); }