public class CategoryFieldList extends ListPackManager
BaseManager.PackEntryChangeListener, BaseManager.RegistryEntry
TYPE_EJP, TYPE_NATIVE
Modifier and Type | Method and Description |
---|---|
CategoryField |
getCategoryField(java.lang.String guid)
Returns the category field for the given UID.
|
java.util.List<java.lang.String> |
getCategoryFieldNames()
Returns a list of category field UIDs contained in this list.
|
java.util.List<CategoryField> |
getCategoryFields()
Returns a list of all category fields known to this list.
|
java.util.List<GUID> |
getCategoryFieldUIDs()
Returns a list of category field UIDs contained in this list.
|
CategoryField |
insert(FieldDefinition fieldDefinition,
int pos)
Adds a new field to this list if no field using this fields UID has been added yet.
|
CategoryField |
insertSeparator(java.lang.String name,
int pos)
Creates a new field grouping separator element at the given position.
|
void |
moveDown(CategoryField entry)
Moves the specified entry one position down in this list.
|
void |
moveDownToEnd(CategoryField entry)
Moves the specified entry to the last position in this list.
|
void |
moveUp(CategoryField entry)
Moves the specified entry one position up in this list.
|
void |
moveUpToTop(CategoryField entry)
Moves the specified entry to the top position in this list.
|
void |
remove(CategoryField categoryField)
Removes the given field from this list.
|
addChangeListener, addChangeListener, addGlobalChangeListener, addPackListener, forgetPush, getPack, isShared, popPack, pushPack, removeChangeListener, removeChangeListener, removeGlobalChangeListener, removePackListener, save, save, toString, writeAsXML
public java.util.List<java.lang.String> getCategoryFieldNames()
String
UIDspublic java.util.List<GUID> getCategoryFieldUIDs()
GUID
public java.util.List<CategoryField> getCategoryFields()
CategoryField
instancespublic CategoryField getCategoryField(java.lang.String guid)
guid
- the field UID for the field to getpublic CategoryField insertSeparator(java.lang.String name, int pos)
name
- Name of the separating grouppos
- position to insertpublic CategoryField insert(FieldDefinition fieldDefinition, int pos)
fieldDefinition
- the field definition to create the field forpos
- the position to insert the fieldpublic void remove(CategoryField categoryField)
categoryField
- the field to removepublic void moveUp(CategoryField entry) throws JPack.NoSuchElementException
entry
- the entry to moveJPack.NoSuchElementException
- in case of an invalid entrypublic void moveUpToTop(CategoryField entry) throws JPack.NoSuchElementException
entry
- the entry to moveJPack.NoSuchElementException
- in case of an invalid entrypublic void moveDown(CategoryField entry) throws JPack.NoSuchElementException
entry
- the entry to moveJPack.NoSuchElementException
- in case of an invalid entrypublic void moveDownToEnd(CategoryField entry) throws JPack.NoSuchElementException
entry
- the entry to moveJPack.NoSuchElementException
- in case of an invalid entrywww.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.