@Override protected void createUI(JComponent parent) { setInstructions("Please specify the URL that points to the file that contains the " + "ontology. (Please note that this should be the physical URL, rather than the " + "ontology URI)"); parent.setLayout(new BorderLayout()); parent.add(urlPanel = new OpenFromURLPanel(){ protected boolean isValidURI() { try { if (super.isValidURI()){ getURI().toURL(); return true; } } catch (MalformedURLException e) { // drop through to return false } return false; } }, BorderLayout.CENTER); parent.add(createCustomizedImportsComponent(), BorderLayout.SOUTH); }
public void verifiedStatusChanged(boolean newState) { getWizard().setNextFinishButtonEnabled(newState); } });
@Override public void aboutToHidePanel() { OntologyImportWizard wizard = (OntologyImportWizard) getWizard(); wizard.clearImports(); ImportInfo parameters = new ImportInfo(); parameters.setPhysicalLocation(urlPanel.getURI()); wizard.addImport(parameters); ((SelectImportLocationPage) getWizardModel().getPanel(SelectImportLocationPage.ID)).setBackPanelDescriptor(ID); ((ImportConfirmationPage) getWizardModel().getPanel(ImportConfirmationPage.ID)).setBackPanelDescriptor(ID); super.aboutToHidePanel(); }
public OntologyImportWizard(Frame owner, OWLEditorKit owlEditorKit) { super(owner); setTitle("Import ontology wizard"); registerWizardPanel(ImportTypePage.ID, new ImportTypePage(owlEditorKit)); registerWizardPanel(LocalFilePage.ID, new LocalFilePage(owlEditorKit)); registerWizardPanel(URLPage.ID, new URLPage(owlEditorKit)); registerWizardPanel(LoadedOntologyPage.ID, new LoadedOntologyPage(owlEditorKit)); registerWizardPanel(AnticipateOntologyIdPage.ID, new AnticipateOntologyIdPage(owlEditorKit)); registerWizardPanel(SelectImportLocationPage.ID, new SelectImportLocationPage(owlEditorKit)); registerWizardPanel(ImportConfirmationPage.ID, new ImportConfirmationPage(owlEditorKit)); setCurrentPanel(ImportTypePage.ID); }
@Override public void aboutToHidePanel() { OntologyImportWizard wizard = getWizard(); wizard.setImportsAreFinal(false); wizard.clearImports(); ImportInfo parameters = new ImportInfo(); parameters.setPhysicalLocation(urlPanel.getURI()); wizard.addImport(parameters); ((SelectImportLocationPage) getWizardModel().getPanel(SelectImportLocationPage.ID)).setBackPanelDescriptor(ID); ((ImportConfirmationPage) getWizardModel().getPanel(ImportConfirmationPage.ID)).setBackPanelDescriptor(ID); super.aboutToHidePanel(); }
public OntologyImportWizard(Frame owner, OWLEditorKit owlEditorKit) { super(owner); setTitle("Import ontology wizard"); registerWizardPanel(ImportTypePage.ID, new ImportTypePage(owlEditorKit)); registerWizardPanel(LocalFilePage.ID, new LocalFilePage(owlEditorKit)); registerWizardPanel(URLPage.ID, new URLPage(owlEditorKit)); registerWizardPanel(LoadedOntologyPage.ID, new LoadedOntologyPage(owlEditorKit)); registerWizardPanel(LibraryPage.ID, new LibraryPage(owlEditorKit)); registerWizardPanel(AnticipateOntologyIdPage.ID, new AnticipateOntologyIdPage(owlEditorKit)); registerWizardPanel(SelectImportLocationPage.ID, new SelectImportLocationPage(owlEditorKit)); registerWizardPanel(ImportConfirmationPage.ID, new ImportConfirmationPage(owlEditorKit)); setCurrentPanel(ImportTypePage.ID); }
@Override public void aboutToHidePanel() { OntologyImportWizard wizard = (OntologyImportWizard) getWizard(); wizard.setImportsAreFinal(false); wizard.clearImports(); ImportInfo parameters = new ImportInfo(); parameters.setPhysicalLocation(urlPanel.getURI()); wizard.addImport(parameters); ((SelectImportLocationPage) getWizardModel().getPanel(SelectImportLocationPage.ID)).setBackPanelDescriptor(ID); ((ImportConfirmationPage) getWizardModel().getPanel(ImportConfirmationPage.ID)).setBackPanelDescriptor(ID); super.aboutToHidePanel(); }
@Override protected void createUI(JComponent parent) { setInstructions("Please specify the URL that points to the file that contains the " + "ontology. (Please note that this should be the physical URL, rather than the " + "ontology URI)"); parent.setLayout(new BorderLayout()); parent.add(urlPanel = new OpenFromURLPanel(){ protected boolean isValidURI() { try { if (super.isValidURI()){ getURI().toURL(); return true; } } catch (MalformedURLException e) { // drop through to return false } return false; } }, BorderLayout.CENTER); parent.add(createCustomizedImportsComponent(), BorderLayout.SOUTH); }
public void verifiedStatusChanged(boolean newState) { getWizard().setNextFinishButtonEnabled(newState); } });
public OntologyImportWizard(Frame owner, OWLEditorKit owlEditorKit) { super(owner); setTitle("Import ontology wizard"); registerWizardPanel(ImportTypePage.ID, new ImportTypePage(owlEditorKit)); registerWizardPanel(LocalFilePage.ID, new LocalFilePage(owlEditorKit)); registerWizardPanel(URLPage.ID, new URLPage(owlEditorKit)); registerWizardPanel(LoadedOntologyPage.ID, new LoadedOntologyPage(owlEditorKit)); registerWizardPanel(LibraryPage.ID, new LibraryPage(owlEditorKit)); registerWizardPanel(AnticipateOntologyIdPage.ID, new AnticipateOntologyIdPage(owlEditorKit)); registerWizardPanel(SelectImportLocationPage.ID, new SelectImportLocationPage(owlEditorKit)); registerWizardPanel(ImportConfirmationPage.ID, new ImportConfirmationPage(owlEditorKit)); setCurrentPanel(ImportTypePage.ID); }
@Override public void aboutToHidePanel() { OntologyImportWizard wizard = getWizard(); wizard.setImportsAreFinal(false); wizard.clearImports(); ImportInfo parameters = new ImportInfo(); parameters.setPhysicalLocation(urlPanel.getURI()); wizard.addImport(parameters); ((SelectImportLocationPage) getWizardModel().getPanel(SelectImportLocationPage.ID)).setBackPanelDescriptor(ID); ((ImportConfirmationPage) getWizardModel().getPanel(ImportConfirmationPage.ID)).setBackPanelDescriptor(ID); super.aboutToHidePanel(); }
@Override protected void createUI(JComponent parent) { setInstructions("Please specify the URL that points to the file that contains the " + "ontology. (Please note that this should be the physical URL, rather than the " + "ontology URI)"); parent.setLayout(new BorderLayout()); parent.add(urlPanel = new OpenFromURLPanel(){ protected boolean isValidURI() { try { if (super.isValidURI()){ getURI().toURL(); return true; } } catch (MalformedURLException e) { // drop through to return false } return false; } }, BorderLayout.CENTER); parent.add(createCustomizedImportsComponent(), BorderLayout.SOUTH); }
public OntologyImportWizard(Frame owner, OWLEditorKit owlEditorKit) { super(owner); setTitle("Import ontology wizard"); registerWizardPanel(ImportTypePage.ID, new ImportTypePage(owlEditorKit)); registerWizardPanel(LocalFilePage.ID, new LocalFilePage(owlEditorKit)); registerWizardPanel(URLPage.ID, new URLPage(owlEditorKit)); registerWizardPanel(LoadedOntologyPage.ID, new LoadedOntologyPage(owlEditorKit)); registerWizardPanel(LibraryPage.ID, new LibraryPage(owlEditorKit)); registerWizardPanel(AnticipateOntologyIdPage.ID, new AnticipateOntologyIdPage(owlEditorKit)); registerWizardPanel(SelectImportLocationPage.ID, new SelectImportLocationPage(owlEditorKit)); registerWizardPanel(ImportConfirmationPage.ID, new ImportConfirmationPage(owlEditorKit)); setCurrentPanel(ImportTypePage.ID); }
@Override protected void createUI(JComponent parent) { setInstructions("Please specify the URL that points to the file that contains the " + "ontology. (Please note that this should be the physical URL, rather than the " + "ontology URI)"); parent.setLayout(new BorderLayout()); parent.add(urlPanel = new OpenFromURLPanel(){ protected boolean isValidURI() { try { if (super.isValidURI()){ getURI().toURL(); return true; } } catch (MalformedURLException e) { // drop through to return false } return false; } }, BorderLayout.CENTER); parent.add(createCustomizedImportsComponent(), BorderLayout.SOUTH); }
public void displayingPanel() { urlPanel.requestFocus(); getWizard().setNextFinishButtonEnabled(urlPanel.isValid()); if (!displayed){ urlPanel.addStatusChangedListener(new InputVerificationStatusChangedListener(){ public void verifiedStatusChanged(boolean newState) { getWizard().setNextFinishButtonEnabled(newState); } }); } displayed = true; }
public void displayingPanel() { urlPanel.requestFocus(); getWizard().setNextFinishButtonEnabled(urlPanel.isValid()); if (!displayed){ urlPanel.addStatusChangedListener(new InputVerificationStatusChangedListener(){ public void verifiedStatusChanged(boolean newState) { getWizard().setNextFinishButtonEnabled(newState); } }); } displayed = true; }