Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  *  Copyright (c) 2011 Leibniz Institute of Plant Genetics and Crop Plant Research (IPK), Gatersleben, Germany.
  *  All rights reserved. This program and the accompanying materials
  *  are made available under the terms of the GNU Lesser Public License v2.1
  *  which accompanies this distribution, and is available at
  *  http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
  *
  *  Contributors:
  *      Leibniz Institute of Plant Genetics and Crop Plant Research (IPK), Gatersleben, Germany - RMI Client, FileChooser and WebDAV
 */
package de.ipk_gatersleben.bit.bi.edal.rmi.client.gui.editor;
The IdentifierRelationEditor wrappers class IdentifierRelationDialog as a MetadataEditor Dialog to edit IdentifierRelation datatype. we can use it with a couple of lines of code:

   IdentifierRelationEditor identifierRelationEditor = new IdentifierRelationEditor();
   identifierRelationEditor.showOpenDialog();
  

Author(s):
Jinbo Chen
Version:
1.0
	private String _title;
pop up a IdentifierRelationDialog Dialog
	public int showOpenDialog() {
		int returnVal = dlg.showOpenDialog();
			this. = dlg.getRelations();
		}
		return returnVal;
	}
set the IdentifierRelation value. set the IdentifierRelation value.
	public void setValue(UntypedData relations) {
		if(relations!=null)
		{
			this. = ((IdentifierRelation)relations).getRelations();
		}
	}
Returns the IdentifierRelation inputted by user.

Returns:
the IdentifierRelation inputted by user.
	public UntypedData getValue() {
		IdentifierRelation identifierRelation = new IdentifierRelation();
		identifierRelation.addAll(this.);
		return identifierRelation;
	}
	public void setTitle(String title) {
		 = title;
	}
New to GrepCode? Check out our FAQ X