question: public void addCommandToSideMenu ( Command cmd ) { checkIfInitialized ( ) ; if ( permanentSideMenu ) { constructPermanentSideMenu ( ) ; Button b = new Button ( cmd ) ; b . setEndsWith3Points ( false ) ; Integer gap = ( Integer ) cmd . getClientProperty ( "iconGap" ) ; if ( gap != null ) { b . setGap ( gap . intValue ( ) ) ; } b . setTextPosition ( Label . RIGHT ) ; String uiid = ( String ) cmd . getClientProperty ( "uiid" ) ; if ( uiid != null ) { b . setUIID ( uiid ) ; } else { b . setUIID ( "SideCommand" ) ; } addComponentToSideMenu ( permanentSideMenuContainer , b ) ; } else { sideMenu . addCommand ( cmd ) ; sideMenu . installMenuBar ( ) ; } }
target:  Adds a Command to the side navigation menu