@Override
public void onModuleLoad()
{
MyCss css = GWT.create( MyCss.class );
final ListBox listBox = new ListBox();
listBox.addItem( "theme-1" );
listBox.addItem( "theme-2" );
listBox.addItem( "theme-3" );
listBox.addChangeHandler( new ChangeHandler()
{
@Override
public void onChange( ChangeEvent event )
{
ThemeManager.get().setTheme( listBox.getSelectedValue() );
}
} );
Label label = new Label("This is the application, you can change theme with the list box above");
label.addStyleName( css.panel() );
RootPanel.get().add( listBox );
RootPanel.get().add( label );
}
Application.java 文件源码
java
阅读 27
收藏 0
点赞 0
评论 0
项目:hexa.tools
作者:
评论列表
文章目录