public String getInitialCommand ( boolean bIncludeAppletCommands ) { String strCommand = Constants . BLANK ; if ( bIncludeAppletCommands ) { if ( this . getProperty ( Params . APPLET ) != null ) strCommand = Util . addURLParam ( strCommand , Params . APPLET , this . getProperty ( Params . APPLET ) ) ; else if ( this . getProperty ( "code" ) != null ) strCommand = Util . addURLParam ( strCommand , Params . APPLET , this . getProperty ( "code" ) ) ; else strCommand = Util . addURLParam ( strCommand , Params . APPLET , this . getClass ( ) . getName ( ) ) ; if ( this . getProperty ( "webStartPropertiesFile" ) != null ) strCommand = Util . addURLParam ( strCommand , "webStartPropertiesFile" , this . getProperty ( "webStartPropertiesFile" ) ) ; else { if ( this . getProperty ( "jnlpjars" ) != null ) strCommand = Util . addURLParam ( strCommand , "jnlpjars" , this . getProperty ( "jnlpjars" ) ) ; if ( this . getProperty ( "jnlpextensions" ) != null ) strCommand = Util . addURLParam ( strCommand , "jnlpextensions" , this . getProperty ( "jnlpextensions" ) ) ; if ( this . getProperty ( ScreenUtil . BACKGROUND_COLOR ) != null ) strCommand = Util . addURLParam ( strCommand , ScreenUtil . BACKGROUND_COLOR , this . getProperty ( ScreenUtil . BACKGROUND_COLOR ) ) ; if ( this . getProperty ( Params . BACKGROUND ) != null ) strCommand = Util . addURLParam ( strCommand , Params . BACKGROUND , this . getProperty ( Params . BACKGROUND ) ) ; if ( this . getProperty ( "webStart" ) != null ) strCommand = Util . addURLParam ( strCommand , "webStart" , this . getProperty ( "webStart" ) ) ; } if ( this . getProperty ( Params . USER_ID ) != null ) strCommand = Util . addURLParam ( strCommand , Params . USER_ID , this . getProperty ( Params . USER_ID ) ) ; if ( this . getProperty ( Params . USER_NAME ) != null ) strCommand = Util . addURLParam ( strCommand , Params . USER_NAME , this . getProperty ( Params . USER_NAME ) ) ; } if ( ( this . getProperty ( Params . SCREEN ) != null ) && ( this . getProperty ( Params . SCREEN ) . length ( ) > 0 ) ) strCommand = Util . addURLParam ( strCommand , Params . SCREEN , this . getProperty ( Params . SCREEN ) ) ; if ( strCommand . length ( ) == 0 ) { String strMenu = this . getProperty ( Params . MENU ) ; if ( strMenu == null ) strMenu = Constants . BLANK ; strCommand = Util . addURLParam ( strCommand , Params . MENU , strMenu ) ; } return strCommand ; }
Get the original screen params .