public void initOrgUnits(List<CmsOrganizationalUnit> orgUnits) {

        if ((orgUnits.size() == 1) && (orgUnits.get(0).getParentFqn() == null)) {
            setVisible(false);
            m_alwaysHidden = true;
        }
        for (CmsOrganizationalUnit ou : orgUnits) {
            String key = normalizeOuName(ou.getName());
            m_ouSelect.addItem(key);
            m_ouSelect.setItemCaption(key, ou.getDisplayName(A_CmsUI.get().getLocale()));
        }
    }
public void initOrgUnits ( List < CmsOrganizationalUnit > orgUnits ) { if ( ( orgUnits . size ( ) == 1 ) && ( orgUnits . get ( 0 ) . getParentFqn ( ) == null ) ) { setVisible ( false ) ; m_alwaysHidden = true ; } for ( CmsOrganizationalUnit ou : orgUnits ) { String key = normalizeOuName ( ou . getName ( ) ) ; m_ouSelect . addItem ( key ) ; m_ouSelect . setItemCaption ( key , ou . getDisplayName ( A_CmsUI . get ( ) . getLocale ( ) ) ) ; } }
Initializes the select options.<p>

@param orgUnits the selectable OUs