public void initialise() throws Exception { setLayout(new GridLayout(3,1,0,12)); add(createEntityURIPanel()); add(createEntityLabelPanel()); add(createAutoGeneratedIDPanel()); }
private void handleActionEndWithName() { boolean selected = nameAsIriFragment.isSelected(); if (selected) { enableAutoGeneratedIDPanel(false); enableLabelCreationPanel(false); } }
public void actionPerformed(ActionEvent e) { Object object = e.getSource(); if (object == iterativeButton) { // "Numeric (iterative)" enableNumericIterativeOptions(true); } else if (object == uniqueIdButton) { // "Numeric (pseudo random)", "Unique and meaningless" enableNumericIterativeOptions(false); } }
public void initialise() throws Exception { setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); add(createEntityIriPanel()); add(Box.createVerticalStrut(7)); add(createEntityLabelPanel()); add(Box.createVerticalStrut(7)); add(createAutoGeneratedIDPanel()); }
private void showEntityCreationPreferences() { try { NewEntitiesPreferencesPanel panel = new NewEntitiesPreferencesPanel(); panel.setup("Entity creation preferences", owlEditorKit); panel.initialise(); int ret = JOptionPane.showConfirmDialog(this, panel, "Entity Creation Preferences", JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE); if (ret == JOptionPane.OK_OPTION) { panel.applyChanges(); update(); } } catch (Exception e) { e.printStackTrace(); } }
protected void handleSelectAnnotation() { OWLAnnotationProperty prop = new UIHelper(getOWLEditorKit()).pickAnnotationProperty(); if (prop != null){ labelAnnotation = prop.getIRI(); annotationURILabel.setText(labelAnnotation.toString()); } }
private void handleActionCreateLabelFromID() { if (autoIDLabel.isSelected()) { enableAutoGeneratedIDPanel(true); } else if (!autoIDURIFragment.isSelected()) { enableAutoGeneratedIDPanel(false); } }
public void actionPerformed(ActionEvent event) { handleSelectAnnotation(); } });
public void initialise() throws Exception { setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); add(createEntityIriPanel()); add(Box.createVerticalStrut(7)); add(createEntityLabelPanel()); add(Box.createVerticalStrut(7)); add(createAutoGeneratedIDPanel()); }
private void showEntityCreationPreferences() { try { NewEntitiesPreferencesPanel panel = new NewEntitiesPreferencesPanel(); panel.setup("Entity creation preferences", owlEditorKit); panel.initialise(); int ret = JOptionPane.showConfirmDialog(this, panel, "Entity Creation Preferences", JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE); if (ret == JOptionPane.OK_OPTION) { panel.applyChanges(); update(); } } catch (Exception e) { e.printStackTrace(); } }
protected void handleSelectAnnotation() { OWLAnnotationProperty prop = new UIHelper(getOWLEditorKit()).pickAnnotationProperty(); if (prop != null){ labelAnnotation = prop.getIRI(); annotationIriLabel.setText(labelAnnotation.toString()); } }
private void handleActionEndWithName() { boolean selected = nameAsURIFragment.isSelected(); if (selected && !autoIDLabel.isSelected()) { enableAutoGeneratedIDPanel(false); } nameAsLabel.setEnabled(selected); }
public void actionPerformed(ActionEvent event) { handleSelectAnnotation(); } });
public void initialise() throws Exception { setLayout(new GridLayout(3,1,0,12)); add(createEntityURIPanel()); add(createEntityLabelPanel()); add(createAutoGeneratedIDPanel()); }
private void handleActionEndWithName() { boolean selected = nameAsIriFragment.isSelected(); if (selected) { enableAutoGeneratedIDPanel(false); enableLabelCreationPanel(false); } }
private void showEntityCreationPreferences() { try { NewEntitiesPreferencesPanel panel = new NewEntitiesPreferencesPanel(); panel.setup("Entity creation preferences", owlEditorKit); panel.initialise(); int ret = JOptionPane.showConfirmDialog(this, panel, "Entity Creation Preferences", JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE); if (ret == JOptionPane.OK_OPTION) { panel.applyChanges(); update(); } } catch (Exception e) { e.printStackTrace(); } }
protected void handleSelectAnnotation() { OWLAnnotationProperty prop = new UIHelper(getOWLEditorKit()).pickAnnotationProperty(); if (prop != null){ labelAnnotation = prop.getIRI(); annotationURILabel.setText(labelAnnotation.toString()); } }
public void actionPerformed(ActionEvent e) { Object object = e.getSource(); if (object == iterativeButton) { // "Numeric (iterative)" enableNumericIterativeOptions(true); } else if ((object == pseudoRandomButton) || (object == uniqueIdButton)) { // "Numeric (pseudo random)", "Unique and meaningless" enableNumericIterativeOptions(false); } }
private void handleActionEndWithID() { boolean selected = autoIDURIFragment.isSelected(); enableAutoGeneratedIDPanel(selected); nameAsLabel.setEnabled(!selected); }
public void actionPerformed(ActionEvent event) { handleSelectAnnotation(); } });