CODE shows simple subclasses that would allow for use of gwt-2.3 activities/places/history management within smartgwt. As I understand it, java classes cannot be added to the visual builder component pallet, but the following approach seemed to get close:
http://forums.smartclient.com/showth...nent+schema%22.
Is there a recommended approach to adding classes like these to the component pallet?
Edit: Instead of, clear(), in the above code use:
http://forums.smartclient.com/showth...nent+schema%22.
Is there a recommended approach to adding classes like these to the component pallet?
Code:
package com.smartgwt.client.widgets.layout;
import com.google.gwt.user.client.ui.AcceptsOneWidget;
import com.google.gwt.user.client.ui.IsWidget;
public class HSimpleLayoutPanel extends HLayout implements AcceptsOneWidget{
@Override
public void setWidget(IsWidget widget) {
clear();
addMember(asWidgetOrNull(widget));
}
}
package com.smartgwt.client.widgets.layout;
import com.google.gwt.user.client.ui.AcceptsOneWidget;
import com.google.gwt.user.client.ui.IsWidget;
public class VSimpleLayoutPanel extends VLayout implements AcceptsOneWidget{
@Override
public void setWidget(IsWidget widget) {
clear();
addMember(asWidgetOrNull(widget));
}
}
Code:
for (Canvas child : getChildren())
removeChild(child);
Comment