Code example for Vector

Methods: removeAllElements

0
    public void setXStatus(String id, String text) {
        setXStatus(Jabber.xStatus.createXStatus(id), text);
    } 
 
    public final void setOfflineStatus() { 
        subcontacts.removeAllElements();
        super.setOfflineStatus(); 
    } 
    public void setActiveResource(String resource) {
        SubContact c = getExistSubContact(resource);
        currentResource = (null == c) ? null : c.resource;
 
        SubContact cur = getCurrentSubContact();
        if (null == cur) {
            setStatus(StatusInfo.STATUS_OFFLINE, null); 
        } else { 
            setStatus(cur.status, cur.statusText);
        } 
        setClient((null == cur) ? ClientInfo.CLI_NONE : cur.client, null);
    }