Smack

org.jivesoftware.smackx
Class FormField.Option

java.lang.Object
  extended by org.jivesoftware.smackx.FormField.Option
Enclosing class:
FormField

public static class FormField.Option
extends Object

Represents the available option of a given FormField.

Author:
Gaston Dombiak

Constructor Summary
FormField.Option(String value)
           
FormField.Option(String label, String value)
           
 
Method Summary
 String getLabel()
          Returns the label that represents the option.
 String getValue()
          Returns the value of the option.
 String toString()
           
 String toXML()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FormField.Option

public FormField.Option(String value)

FormField.Option

public FormField.Option(String label,
                        String value)
Method Detail

getLabel

public String getLabel()
Returns the label that represents the option.

Returns:
the label that represents the option.

getValue

public String getValue()
Returns the value of the option.

Returns:
the value of the option.

toString

public String toString()
Overrides:
toString in class Object

toXML

public String toXML()

Smack

Copyright © 2003-2007 Jive Software.