Java Code Examples for org.jivesoftware.smackx.xdata.FormField#getFormFieldChildElement()
The following examples show how to use
org.jivesoftware.smackx.xdata.FormField#getFormFieldChildElement() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SoftwareInfoForm.java From Smack with Apache License 2.0 | 5 votes |
/** * Returns the software icon if used by client. * <br> * @return {@link MediaElement} MediaElement or null */ public MediaElement getIcon () { FormField field = getField(ICON); if (field == null) { return null; } FormFieldChildElement media = field.getFormFieldChildElement(MediaElement.QNAME); if (media == null) { return null; } return (MediaElement) media; }
Example 2
Source File: DataFormsXmlElement.java From Smack with Apache License 2.0 | 4 votes |
public static DataFormsXmlElement from(FormField formField) { return (DataFormsXmlElement) formField.getFormFieldChildElement(QNAME); }
Example 3
Source File: MediaElement.java From Smack with Apache License 2.0 | 4 votes |
public MediaElement from(FormField formField) { return (MediaElement) formField.getFormFieldChildElement(QNAME); }
Example 4
Source File: ValidateElement.java From Smack with Apache License 2.0 | 4 votes |
public static ValidateElement from(FormField formField) { return (ValidateElement) formField.getFormFieldChildElement(QNAME); }
Example 5
Source File: GeoLocation.java From Smack with Apache License 2.0 | 2 votes |
/** * Returns the first GeoLocation, or <code>null</code> if it doesn't exist in {@link FormField}. * <br> * @param formField the Formfield containing GeoLocation * @return GeoLocation */ public static GeoLocation from(FormField formField) { return (GeoLocation) formField.getFormFieldChildElement(QNAME); }