Java tutorial
/* * Roperty - An advanced property management and retrival system * Copyright (C) 2013 PARSHIP GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.parship.roperty.ui; import com.vaadin.annotations.AutoGenerated; import com.vaadin.navigator.View; import com.vaadin.navigator.ViewChangeListener.ViewChangeEvent; import com.vaadin.ui.AbsoluteLayout; import com.vaadin.ui.CustomComponent; import com.vaadin.ui.Label; /** * TODO * * @author marc * Since 01.08.2013 */ public class ErrorUI extends CustomComponent implements View { /*- VaadinEditorProperties={"grid":"RegularGrid,20","showGrid":true,"snapToGrid":true,"snapToObject":true,"movingGuides":false,"snappingDistance":10} */ private static final long serialVersionUID = 1L; @AutoGenerated private AbsoluteLayout mainLayout; @AutoGenerated private Label label_1; /** * The constructor should first build the main layout, set the * composition root and then do any custom initialization. * The constructor will not be automatically regenerated by the * visual editor. */ public ErrorUI() { buildMainLayout(); setCompositionRoot(mainLayout); // TODO add user code here } @AutoGenerated private AbsoluteLayout buildMainLayout() { // common part: create layout mainLayout = new AbsoluteLayout(); mainLayout.setImmediate(false); mainLayout.setWidth("100%"); mainLayout.setHeight("100%"); // top-level component properties setWidth("100.0%"); setHeight("100.0%"); // label_1 label_1 = new Label(); label_1.setImmediate(false); label_1.setWidth("-1px"); label_1.setHeight("-1px"); label_1.setValue("ERROR"); mainLayout.addComponent(label_1, "top:20.0px;left:20.0px;"); return mainLayout; } /* (non-Javadoc) * @see com.vaadin.navigator.View#enter(com.vaadin.navigator.ViewChangeListener.ViewChangeEvent) */ @Override public void enter(ViewChangeEvent event) { // TODO Auto-generated method stub } }