Package org.pentaho.gwt.widgets.client.menuitem

Examples of org.pentaho.gwt.widgets.client.menuitem.PentahoMenuItem


                JsArray<JsTheme> themes = JsTheme.getThemes( JsonUtils.escapeJsonForEval( response.getText() ) );

                for ( int i = 0; i < themes.length(); i++ ) {
                  JsTheme theme = themes.get( i );
                  PentahoMenuItem themeMenuItem =
                      new PentahoMenuItem( theme.getName(), new SwitchThemeCommand( theme.getId() ) );
                  themeMenuItem.getElement().setId( theme.getId() + "_menu_item" ); //$NON-NLS-1$
                  themeMenuItem.setChecked( theme.getId().equals( activeTheme ) );
                  ( (MenuBar) themesMenu.getManagedObject() ).addItem( themeMenuItem );
                }

                bf.createBinding( model, "saveEnabled", saveMenuItem, "!disabled" ); //$NON-NLS-1$ //$NON-NLS-2$
                bf.createBinding( model, "saveAsEnabled", saveAsMenuItem, "!disabled" ); //$NON-NLS-1$ //$NON-NLS-2$
View Full Code Here

TOP

Related Classes of org.pentaho.gwt.widgets.client.menuitem.PentahoMenuItem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.