import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.ui.Widget;
-import com.vaadin.terminal.gwt.client.ApplicationConnection;
-import com.vaadin.terminal.gwt.client.Paintable;
-import com.vaadin.terminal.gwt.client.UIDL;
-import com.vaadin.terminal.gwt.client.VUIDLBrowser;
-public class UnknownComponentConnector extends AbstractComponentConnector
- implements Paintable {
+public class UnknownComponentConnector extends AbstractComponentConnector {
@Override
public boolean delegateCaptionHandling() {
return false;
}
- public void updateFromUIDL(UIDL uidl, ApplicationConnection client) {
- if (!isRealUpdate(uidl)) {
- return;
- }
- getWidget()
- .setCaption(
- "Widgetset does not contain implementation for "
- + getWidget().serverClassName
- + ". Check its component connector's @Connect mapping, widgetsets "
- + "GWT module description file and re-compile your"
- + " widgetset. In case you have downloaded a vaadin"
- + " add-on package, you might want to refer to "
- + "<a href='http://vaadin.com/using-addons'>add-on "
- + "instructions</a>. Unrendered UIDL:");
- if (getWidget().uidlTree != null) {
- getWidget().uidlTree.removeFromParent();
- }
-
- getWidget().uidlTree = new VUIDLBrowser(uidl, client.getConfiguration());
- getWidget().uidlTree.open(true);
- getWidget().uidlTree.setText("Unrendered UIDL");
- getWidget().panel.add(getWidget().uidlTree);
- }
-
@Override
protected Widget createWidget() {
return GWT.create(VUnknownComponent.class);
}
public void setServerSideClassName(String serverClassName) {
- getWidget().setServerSideClassName(serverClassName);
+ getWidget()
+ .setCaption(
+ "Widgetset does not contain implementation for "
+ + serverClassName
+ + ". Check its component connector's @Connect mapping, widgetsets "
+ + "GWT module description file and re-compile your"
+ + " widgetset. In case you have downloaded a vaadin"
+ + " add-on package, you might want to refer to "
+ + "<a href='http://vaadin.com/using-addons'>add-on "
+ + "instructions</a>.");
}
}
com.google.gwt.user.client.ui.Label caption = new com.google.gwt.user.client.ui.Label();;
SimpleTree uidlTree;
protected VerticalPanel panel;
- protected String serverClassName = "unkwnown";
public VUnknownComponent() {
panel = new VerticalPanel();
caption.setStyleName("vaadin-unknown-caption");
}
- public void setServerSideClassName(String serverClassName) {
- this.serverClassName = serverClassName;
- }
-
public void setCaption(String c) {
caption.getElement().setInnerHTML(c);
}