org.trypticon.snipsnap.label
Class JabberIDLabel

java.lang.Object
  extended by org.snipsnap.snip.label.BaseLabel
      extended by org.trypticon.snipsnap.label.JabberIDLabel
All Implemented Interfaces:
org.snipsnap.snip.label.Indexable, org.snipsnap.snip.label.Label, org.snipsnap.snip.label.LifeCycle

public class JabberIDLabel
extends org.snipsnap.snip.label.BaseLabel

Label identifying the Jabber ID of a user.


Field Summary
 
Fields inherited from class org.snipsnap.snip.label.BaseLabel
name, snip, value
 
Constructor Summary
JabberIDLabel()
          Default constructor.
JabberIDLabel(java.lang.String name, java.lang.String value)
          Constructor setting the name and value.
 
Method Summary
 java.lang.String getInputProxy()
          Generates the markup for displaying the input form for the label.
 java.lang.String getListProxy()
          Generates the text for displaying the label.
 java.lang.String getType()
          Gets the type of the label.
 void handleInput(java.util.Map map)
          Handles the input from the user, setting the instance fields as appropriate.
 
Methods inherited from class org.snipsnap.snip.label.BaseLabel
change, create, getContext, getName, getSnip, getValue, index, remove, setName, setSnip, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JabberIDLabel

public JabberIDLabel()
Default constructor.


JabberIDLabel

public JabberIDLabel(java.lang.String name,
                     java.lang.String value)
Constructor setting the name and value.

Parameters:
name - the name to set.
value - the value to set.
Method Detail

getType

public java.lang.String getType()
Gets the type of the label.

Specified by:
getType in interface org.snipsnap.snip.label.Label
Specified by:
getType in class org.snipsnap.snip.label.BaseLabel
Returns:
the label type.

getInputProxy

public java.lang.String getInputProxy()
Generates the markup for displaying the input form for the label.

Specified by:
getInputProxy in interface org.snipsnap.snip.label.Label
Overrides:
getInputProxy in class org.snipsnap.snip.label.BaseLabel
Returns:
the markup.

getListProxy

public java.lang.String getListProxy()
Generates the text for displaying the label.

Specified by:
getListProxy in interface org.snipsnap.snip.label.Label
Overrides:
getListProxy in class org.snipsnap.snip.label.BaseLabel
Returns:
the markup.

handleInput

public void handleInput(java.util.Map map)
Handles the input from the user, setting the instance fields as appropriate.

Specified by:
handleInput in interface org.snipsnap.snip.label.Label
Overrides:
handleInput in class org.snipsnap.snip.label.BaseLabel
Parameters:
map - the input map, containing the user's input into the fields.