|
Clearspace API (1.7.0) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MultiOptionDocumentField
An extension of the document field interface to support multi optioned field types such as radio and selection lists.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.jivesoftware.community.DocumentTypeElement |
|---|
DocumentTypeElement.Type |
| Method Summary | |
|---|---|
DocumentFieldOption |
addOption(java.lang.String option)
Adds an option to this document field. |
void |
deleteOption(DocumentFieldOption option)
Deletes an option. |
DocumentFieldOption |
getOption(long optionID)
Returns a DocumentFieldOption by its id. |
java.util.List<DocumentFieldOption> |
getOptions()
Returns an iterator of DocumentFieldOption objects. |
void |
setOptionIndex(int index,
DocumentFieldOption option)
Sets a particular option at the given index. |
| Methods inherited from interface com.jivesoftware.community.DocumentField |
|---|
getAttributes, getDefaultValue, getDescription, getDisplayName, getFieldType, getMaxFieldSize, getName, save, setDefaultValue, setDescription, setDisplayName, setFieldType, setMaxFieldSize, setName |
| Methods inherited from interface com.jivesoftware.community.DocumentTypeElement |
|---|
getType |
| Method Detail |
|---|
java.util.List<DocumentFieldOption> getOptions()
void setOptionIndex(int index,
DocumentFieldOption option)
throws UnauthorizedException
index - the index of the option to change.option - the new option to set at the specified index.
UnauthorizedException - if not an administrator.
java.lang.IndexOutOfBoundsException - if the index is out of bounds.
DocumentFieldOption addOption(java.lang.String option)
throws UnauthorizedException
option - the option to add.
UnauthorizedException - if not an administrator.
java.lang.IllegalArgumentException - If null is passed in.
void deleteOption(DocumentFieldOption option)
throws UnauthorizedException
option - the option to delete
UnauthorizedException - if not an administrator.
java.lang.IllegalArgumentException - if the option doesn't exist in the document field.
DocumentFieldOption getOption(long optionID)
throws DocumentObjectNotFoundException
optionID - id of the DocumentFieldOption
DocumentObjectNotFoundException - thrown if the option does not exist
java.lang.IllegalArgumentException - thrown if the option does not belong to this DocumentField
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||