Java tutorial
/** * ******** * Copyright 2013-2015 Olanto Foundation Geneva * * This file is part of myTERM. * * myTERM 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. * * myCAT 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 Affero General Public License for more * details. * * You should have received a copy of the GNU Affero General Public License * along with myTERM. If not, see <http://www.gnu.org/licenses/>. * ********* */ package olanto.myTerm.client.Forms; import com.google.gwt.user.client.ui.Label; import olanto.myTerm.shared.SysFieldDTO; /** * * @author nizar ghoula simple */ public class LabelMyTerm extends Label { public int position = 1; LabelMyTerm(String content, SysFieldDTO type) { super(); this.setVisible(type.getVisibility()); this.position = type.getPosition(); this.setText(content); } }