Java 类com.intellij.ui.wizard.WizardNavigationState 实例源码

项目:intellij-idea-plugin    文件:ForgeWizardStep.java   
@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;
}
项目:intellij-idea-plugin    文件:NavigationState.java   
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();
    }
}
项目:intellij-ce-playground    文件:SelectPluginsStep.java   
public JComponent prepare(final WizardNavigationState state) {
  myRootPanel.revalidate();
  myPluginsList.requestFocusInWindow();
  return myRootPanel;
}
项目:Azure-Toolkit-for-IntelliJ    文件:SelectLibraryStep.java   
@Override
public JComponent prepare(final WizardNavigationState state) {
    rootPanel.revalidate();
    return rootPanel;
}
项目:Azure-Toolkit-for-IntelliJ    文件:LibraryPropertiesStep.java   
@Override
public JComponent prepare(final WizardNavigationState state) {
    libraryPropertiesPanel = new LibraryPropertiesPanel(myModel.getMyModule(), myModel.getSelectedLibrary(), false, true);
    return libraryPropertiesPanel.prepare();
}
项目:Azure-Toolkit-for-IntelliJ    文件:SelectLocationStep.java   
@Override
public JComponent prepare(final WizardNavigationState state) {
    rootPanel.revalidate();
    return rootPanel;
}
项目:Azure-Toolkit-for-IntelliJ    文件:KeyFeaturesStep.java   
@Override
public JComponent prepare(WizardNavigationState state) {
    rootPanel.revalidate();
    return rootPanel;
}
项目:Azure-Toolkit-for-IntelliJ    文件:PublishSettingsStep.java   
@Override
    public JComponent prepare(final WizardNavigationState state) {
//        rootPanel.revalidate();
        state.FINISH.setEnabled(true);
        return jdkServerPanel.getPanel();
    }
项目:tools-idea    文件:SelectPluginsStep.java   
public JComponent prepare(final WizardNavigationState state) {
  myRootPanel.revalidate();
  myPluginsList.requestFocusInWindow();
  return myRootPanel;
}
项目:intellij-plugin-wizard    文件:AzureMobileServiceStep.java   
@Override
public JComponent prepare(WizardNavigationState state) {
    rootPanel.revalidate();
    return rootPanel;
}
项目:intellij-plugin-wizard    文件:NotificationHubStep.java   
@Override
public JComponent prepare(WizardNavigationState state) {
    rootPanel.revalidate();
    return rootPanel;
}
项目:intellij-plugin-wizard    文件:SummaryStep.java   
@Override
public JComponent prepare(WizardNavigationState state) {
    rootPanel.revalidate();
    return rootPanel;
}