public void setControlValue(Object objValue)
    {
        boolean bSelected = false;
        if (objValue instanceof Boolean)
        {
            bSelected = ((Boolean)objValue).booleanValue();
        }
        else if (objValue instanceof String)
        {
            String strValue = objValue.toString();
            if (strValue.length() > 0)
            {
                if ((Character.toUpperCase(strValue.charAt(0)) == 'T')
                    || (Character.toUpperCase(strValue.charAt(0)) == 'Y'))
                        bSelected = true;
            }
        }
        this.setSelected(bSelected);
    }
public void setControlValue ( Object objValue ) { boolean bSelected = false ; if ( objValue instanceof Boolean ) { bSelected = ( ( Boolean ) objValue ) . booleanValue ( ) ; } else if ( objValue instanceof String ) { String strValue = objValue . toString ( ) ; if ( strValue . length ( ) > 0 ) { if ( ( Character . toUpperCase ( strValue . charAt ( 0 ) ) == 'T' ) || ( Character . toUpperCase ( strValue . charAt ( 0 ) ) == 'Y' ) ) bSelected = true ; } } this . setSelected ( bSelected ) ; }
Set the value.
@param objValue The raw data (a Boolean).