001 package biz.hammurapi.registry; 002 003 /** 004 * Configuration components may implement this interface for 005 * integration with registry browser. 006 * @author Pavel 007 * 008 */ 009 public interface PropertyPage { 010 011 /** 012 * Configuration wizard calls this method when "Next" or "Finish" 013 * buttons are clicked. If the method returns false, the wizard 014 * remains on the page. It is responsibility of the property page 015 * to communicate to the user the nature of the problem. 016 * @return False if information on the property page is not correct. 017 */ 018 boolean validate(); 019 020 /** 021 * Passes registry to the page to enable property pages to 022 * browse the registry. 023 * @param browser 024 */ 025 void setBrowser(Registry registry); 026 }