Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright (c) 2014 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 Creative Commons Attribution-NoDerivatives 4.0 International (CC BY-ND 4.0)
  * which accompanies this distribution, and is available at http://creativecommons.org/licenses/by-nd/4.0/
  *
  * 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 LegalPersonInfoEditor is a wrapper class for LegalPersonDialog, we can use it with a couple of lines of code:

   PersonInfoEditor personInfoEditor = new PersonInfoEditor();
   personInfoEditor.setValue(person); 
   personInfoEditor.showOpenDialog();
  

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

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