com.google.code.facebookapi
Class ProfileInfoField

java.lang.Object
  extended by com.google.code.facebookapi.ProfileInfoField

public class ProfileInfoField
extends java.lang.Object

A data structure for managing the profile info fields objects required by the profile.setInfo and profile.setInfoOptions API calls. Each field is identified by name, and may contain any number of field items. Each field-item must specify a label and a link URL, and may optionally include a description, a sublabel, and an image URL.


Constructor Summary
ProfileInfoField(java.lang.String name)
          Constructor, constructs a new profile field with the specified name.
 
Method Summary
 void addItem(ProfileFieldItem item)
          Add an item to this ProfileInfoField.
 java.lang.String getFieldName()
           
 java.util.List<ProfileFieldItem> getItems()
          Get the items that currently comprise this field.
 void setItems(java.util.List<ProfileFieldItem> items)
          Set the items associated with this profile field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProfileInfoField

public ProfileInfoField(java.lang.String name)
Constructor, constructs a new profile field with the specified name.

Parameters:
name - the name to use for this field.
Method Detail

getFieldName

public java.lang.String getFieldName()
Returns:
the name of thi field

getItems

public java.util.List<ProfileFieldItem> getItems()
Get the items that currently comprise this field.

Returns:
the items that comprise this field.

setItems

public void setItems(java.util.List<ProfileFieldItem> items)
Set the items associated with this profile field.

Parameters:
items - the items to set.

addItem

public void addItem(ProfileFieldItem item)
Add an item to this ProfileInfoField.

Parameters:
item - the item to add.


Copyright © 2010. All Rights Reserved.