*/
public ThemeMenuPiece( DockController controller, boolean defaultThemes ) {
setController( controller );
setTransferTheme( true );
ThemeMap themes = new ThemeMap();
if( defaultThemes ){
DockUI ui = DockUI.getDefaultDockUI();
int index = 0;
for( ThemeFactory theme : ui.getThemes() ){
themes.add( String.valueOf( index++ ), theme );
}
themes.select( ui.getDefaultTheme() );
}
setThemes( themes );
}