@Override protected IQChildElementXmlStringBuilder getIQChildElementBuilder(IQChildElementXmlStringBuilder buf) { if (ModelUtil.hasLength(getJid())) { buf.append("jid=\"" + getJid() + "\" "); } buf.setEmptyElement(); return buf; }
@Override protected IQChildElementXmlStringBuilder getIQChildElementBuilder(IQChildElementXmlStringBuilder buf) { buf.append(">"); if (ModelUtil.hasLength(getQuery())) { buf.append("<query>" + getQuery() + "</query>"); } return buf; }
public String getChildElementXML() { StringBuilder buf = new StringBuilder(); buf.append("<").append(ELEMENT_NAME).append(" xmlns="); buf.append('"'); buf.append(NAMESPACE); buf.append('"'); if (ModelUtil.hasLength(getJid())) { buf.append("jid=\"" + getJid() + "\" "); } buf.append("></").append(ELEMENT_NAME).append("> "); return buf.toString(); }
public String getChildElementXML() { StringBuilder buf = new StringBuilder(); buf.append("<").append(ELEMENT_NAME).append(" xmlns="); buf.append('"'); buf.append(NAMESPACE); buf.append('"'); buf.append(">"); if (ModelUtil.hasLength(getQuery())) { buf.append("<query>" + getQuery() + "</query>"); } buf.append("</").append(ELEMENT_NAME).append("> "); return buf.toString(); }
public void actionPerformed(ActionEvent e) { if (e.getSource() == goButton) { showSpecifiedPage(); } else if (e.getSource() == pushCurrentPageButton) { if (ModelUtil.hasLength(urlField.getText())) { pushPage(urlField.getText()); followMeButton.setSelected(true); } } else if (e.getSource() == backButton) { if (ModelUtil.hasLength(lastLink)) { browser.goBack(); } } else if (e.getSource() == followMeButton) { boolean isSelected = followMeButton.isSelected(); if (!isSelected) { //followMeButton.setIcon(lockIcon); followMeButton.setToolTipText(PRIVATE_TOOLTIP); } else { //followMeButton.setIcon(unlockIcon); followMeButton.setToolTipText(PUBLIC_TOOLTIP); } } }
public boolean isSearchEnabled() { return ModelUtil.hasLength(getForumsLocation()) && ModelUtil.hasLength(getKbLocation()); }
public boolean hasKB(){ return ModelUtil.hasLength(getKbLocation()); }
public boolean hasForums(){ return ModelUtil.hasLength(getForumsLocation()); }
public String getRedirectURL() { if (!ModelUtil.hasLength(redirectURL)) { return ""; } return redirectURL; }
public String getOfflineText() { if (!ModelUtil.hasLength(offlineText)) { return ""; } return offlineText; }
public String getEmailAddress() { if (!ModelUtil.hasLength(emailAddress)) { return ""; } return emailAddress; }
public String getSubject() { if (!ModelUtil.hasLength(subject)) { return ""; } return subject; }
public boolean redirects() { return (ModelUtil.hasLength(getRedirectURL())); }
public boolean isConfigured(){ return ModelUtil.hasLength(getEmailAddress()) && ModelUtil.hasLength(getSubject()) && ModelUtil.hasLength(getOfflineText()); }