jaroslav@770: /** jaroslav@770: * Back 2 Browser Bytecode Translator jaroslav@770: * Copyright (C) 2012 Jaroslav Tulach jaroslav@770: * jaroslav@770: * This program is free software: you can redistribute it and/or modify jaroslav@770: * it under the terms of the GNU General Public License as published by jaroslav@770: * the Free Software Foundation, version 2 of the License. jaroslav@770: * jaroslav@770: * This program is distributed in the hope that it will be useful, jaroslav@770: * but WITHOUT ANY WARRANTY; without even the implied warranty of jaroslav@770: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the jaroslav@770: * GNU General Public License for more details. jaroslav@770: * jaroslav@770: * You should have received a copy of the GNU General Public License jaroslav@770: * along with this program. Look for COPYING file in the top folder. jaroslav@770: * If not, see http://opensource.org/licenses/GPL-2.0. jaroslav@770: */ jaroslav@770: package org.apidesign.bck2brwsr.htmlpage; jaroslav@770: jaroslav@770: import org.apidesign.bck2brwsr.htmlpage.api.ComputedProperty; jaroslav@770: import org.apidesign.bck2brwsr.htmlpage.api.Model; jaroslav@770: import org.apidesign.bck2brwsr.htmlpage.api.Property; jaroslav@770: jaroslav@770: /** jaroslav@770: * jaroslav@770: * @author Jaroslav Tulach jaroslav@770: */ jaroslav@770: @Model(className = "Person", properties = { jaroslav@770: @Property(name = "firstName", type = String.class), jaroslav@770: @Property(name = "lastName", type = String.class) jaroslav@770: }) jaroslav@770: final class PersonImpl { jaroslav@770: @ComputedProperty jaroslav@770: public static String fullName(String firstName, String lastName) { jaroslav@770: return firstName + " " + lastName; jaroslav@770: } jaroslav@770: }