edu.stanford.protege.widgetmap.client.WidgetMapRootWidget Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of widgetmap Show documentation
Show all versions of widgetmap Show documentation
widgetmap is a GWT library that provides a treemap-like nesting for Widget
package edu.stanford.protege.widgetmap.client;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.IsWidget;
import com.google.gwt.user.client.ui.RequiresResize;
import com.google.gwt.user.client.ui.SimplePanel;
/**
* Author: Matthew Horridge
* Stanford University
* Bio-Medical Informatics Research Group
* Date: 08/01/2014
*/
public class WidgetMapRootWidget extends Composite implements IsRootWidget {
private SimplePanel simplePanel;
public WidgetMapRootWidget() {
simplePanel = new SimplePanel();
initWidget(simplePanel);
}
@Override
public void setWidget(IsWidget w) {
simplePanel.setWidget(w);
}
@Override
public void onResize() {
IsWidget w = simplePanel.getWidget();
if(w instanceof RequiresResize) {
((RequiresResize) w).onResize();
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy