protected void setPrincipal(int type, String principalName) {

        m_principalName.setValue(principalName);

        String typeName = null;
        switch (type) {
            case 0:
                typeName = I_CmsPrincipal.PRINCIPAL_GROUP;
                break;
            case 1:
            default:
                typeName = I_CmsPrincipal.PRINCIPAL_USER;
                break;
        }
        if (typeName != null) {
            m_principalTypeSelect.setValue(typeName);
        }
    }
protected void setPrincipal ( int type , String principalName ) { m_principalName . setValue ( principalName ) ; String typeName = null ; switch ( type ) { case 0 : typeName = I_CmsPrincipal . PRINCIPAL_GROUP ; break ; case 1 : default : typeName = I_CmsPrincipal . PRINCIPAL_USER ; break ; } if ( typeName != null ) { m_principalTypeSelect . setValue ( typeName ) ; } }
Sets the principal type and name.<p>

@param type the principal type
@param principalName the principal name