Java tutorial
/** * (C) Copyright 2010, 2011 upTick Pty Ltd * * Licensed under the terms of the GNU General Public License version 3 * as published by the Free Software Foundation. You may obtain a copy of the * License at: http://www.gnu.org/copyleft/gpl.html * * 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.gwtcx.extgwt.client.desktop.view; import com.google.gwt.user.client.ui.HTMLPanel; import com.google.gwt.user.client.ui.Widget; import com.gwtplatform.mvp.client.ViewImpl; public class PlaceholderView extends ViewImpl { private final String html = "<div>\n" + "<table align=\"center\">\n" + " <tr>\n" + "<td> </td>\n" + "</tr>\n" + " <tr>\n" + "<td> </td>\n" + "</tr>\n" + " <tr>\n" + "<td> </td>\n" + "</tr>\n" + " <tr>\n" + "<td> </td>\n" + "</tr>\n" + " <tr>\n" + "<td> </td>\n" + "</tr>\n" + " <tr>\n" + " <td style=\"font-weight:bold;\">Placeholder view</td>\n" + " </tr>\n" + " <tr>\n" + "<td> </td>\n" + "</tr>\n" + " <tr>\n" + "<td> </td>\n" + "</tr>\n" + " <tr>\n" + "<td> </td>\n" + "</tr>\n" + " <tr>\n" + "<td> </td>\n" + "</tr>\n" + " <tr>\n" + "<td> </td>\n" + "</tr>\n" + "</table>\n" + "</div>\n"; private final HTMLPanel panel; public PlaceholderView() { panel = new HTMLPanel(getPanelHtml()); } @Override public Widget asWidget() { return panel; } protected String getPanelHtml() { return html; } }