public boolean doCommand(String strCommand, ScreenField sourceSField, int iCommandOptions)
    {
        boolean bLogin = false;
        if (MenuConstants.SUBMIT.equalsIgnoreCase(strCommand))
            if (this.getMainRecord().isModified())
                bLogin = true;
        boolean bFlag = super.doCommand(strCommand, sourceSField, iCommandOptions);
        if (MenuConstants.SUBMIT.equalsIgnoreCase(strCommand))
            if (bFlag)
                if (bLogin)
            return super.doCommand(MenuConstants.HOME, sourceSField, iCommandOptions);
        return bFlag;
    }
public boolean doCommand ( String strCommand , ScreenField sourceSField , int iCommandOptions ) { boolean bLogin = false ; if ( MenuConstants . SUBMIT . equalsIgnoreCase ( strCommand ) ) if ( this . getMainRecord ( ) . isModified ( ) ) bLogin = true ; boolean bFlag = super . doCommand ( strCommand , sourceSField , iCommandOptions ) ; if ( MenuConstants . SUBMIT . equalsIgnoreCase ( strCommand ) ) if ( bFlag ) if ( bLogin ) return super . doCommand ( MenuConstants . HOME , sourceSField , iCommandOptions ) ; return bFlag ; }
Process the command.
<br />Step 1 - Process the command if possible and return true if processed.
<br />Step 2 - If I can't process, pass to all children (with me as the source).
<br />Step 3 - If children didn't process, pass to parent (with me as the source).
<br />Note: Never pass to a parent or child that matches the source (to avoid an endless loop).
@param strCommand The command to process.
@param sourceSField The source screen field (to avoid echos).
@param iCommandOptions If this command creates a new screen, create in a new window?
@return true if success.