Author: bbrossaud Date: 2010-08-13 14:15:16 +0200 (Fri, 13 Aug 2010) New Revision: 129 Url: http://chorem.org/repositories/revision/bonzoms/129 Log: remove old files Removed: trunk/bonzoms-ui-zk/src/main/java/org/chorem/bonzoms/ui/MainController.java trunk/bonzoms-ui-zk/src/main/webapp/index.zul Deleted: trunk/bonzoms-ui-zk/src/main/java/org/chorem/bonzoms/ui/MainController.java =================================================================== --- trunk/bonzoms-ui-zk/src/main/java/org/chorem/bonzoms/ui/MainController.java 2010-08-13 12:13:00 UTC (rev 128) +++ trunk/bonzoms-ui-zk/src/main/java/org/chorem/bonzoms/ui/MainController.java 2010-08-13 12:15:16 UTC (rev 129) @@ -1,75 +0,0 @@ -/* - * #%L - * Bonzoms : bonzoms-zk - * - * $Id$ - * $HeadURL$ - * %% - * Copyright (C) 2010 CodeLutin - * %% - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - * #L% - */ -package org.chorem.bonzoms.ui; - -import org.zkoss.zk.ui.util.GenericForwardComposer; -import org.zkoss.zul.Textbox; -import org.zkoss.zul.Include; - -/** - * - * @author bbrossaud - */ -public class MainController extends GenericForwardComposer { - - protected Textbox searchBox; - protected Include include; - /* - * Events - */ - public void onOK$searchBox() { - String search = searchBox.getValue(); - include.setSrc(null); - include.setSrc("resultPage.zul?search=" + search); - } - - public void onClick$searchButton() { - onOK$searchBox(); - } - - public void onClick$employees() { - include.setSrc(null); - include.setSrc("employeePage.zul"); - } - - public void onClick$persons() { - include.setSrc(null); - include.setSrc("personPage.zul"); - } - - public void onClick$companies() { - include.setSrc(null); - include.setSrc("companyPage.zul"); - } - - public void onClick$services() { - include.setSrc(null); - include.setSrc("servicePage.zul"); - } - - public void onClick$contracts() { - include.setSrc(null); - include.setSrc("contractPage.zul"); - } -} Deleted: trunk/bonzoms-ui-zk/src/main/webapp/index.zul =================================================================== --- trunk/bonzoms-ui-zk/src/main/webapp/index.zul 2010-08-13 12:13:00 UTC (rev 128) +++ trunk/bonzoms-ui-zk/src/main/webapp/index.zul 2010-08-13 12:15:16 UTC (rev 129) @@ -1,25 +0,0 @@ -<?page id="home" title="HOME" cacheable="false" language="xul/html" zscriptLanguage="Java"?> -<?meta content="text/html; charset=UTF-8" pageEncoding="UTF-8"?> -<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" root="win"?> - -<window id="win" title="Win" border="normal" apply="org.chorem.bonzoms.ui.MainController"> - <hbox> - <groupbox height="800px" > - <caption label="Menu" /> - <vbox> - <toolbarbutton id="companies" label="Companies" /> - <toolbarbutton id="contracts" label="Contracts" /> - <toolbarbutton id="employees" label="Employees" /> - <toolbarbutton id="persons" label="Persons" /> - <toolbarbutton id="services" label="Services" /> - </vbox> - </groupbox> - <vbox id="content" > - <hbox> - Search: <textbox id="searchBox" /> <button label="Search" id="searchButton" /> - </hbox> - <separator bar="true" /> - <include id="include" src="employeePage.zul" /> - </vbox> - </hbox> -</window> \ No newline at end of file