public class CategoryViewSet extends CategoryViewSetTable implements Item
BaseManager.PackEntryChangeListener, BaseManager.RegistryEntry
TYPE_EJP, TYPE_NATIVE
Modifier and Type | Method and Description |
---|---|
void |
addAllowedMasterCategoryName(java.lang.String name)
Add a master category name to the list of allowed master categories.
|
JPack |
exportSet()
Exports this set into a
JPack . |
java.util.Collection<java.lang.String> |
getAllowedMasterCategoryNames()
Returns a collection of all allowed master category names.
|
java.lang.String |
getAutoSwitchCategoryName()
Returns the name of the master category to switch to after activating this category view set.
|
int |
getBackgroundColor()
Returns the RGB value representing the background color in the default sRGB
ColorModel . |
CategoryViewSetTableList |
getCategoryViewSetTableList()
Returns the manager for the list of sub-tables with specific configurations.
|
boolean |
getCountAssignedRecords()
Returns whether the application should display the number of directly assigned records behind each category.
|
java.lang.String |
getDescription(int languageID)
Returns the description for the given language id.
|
java.lang.String |
getDisplayName(int languageID,
boolean fallbackToDefaultName)
Returns the display name for the given language id.
|
FontDetail |
getFont()
This returns the font configuration for the category tree for the current platform.
|
FontDetail |
getFontMac()
This returns the font configuration for the category tree for the Mac platform.
|
FontDetail |
getFontWin()
This returns the font configuration for the category tree for the Windows platform.
|
java.lang.String |
getID()
Returns the UID of the item in the items namespace.
|
boolean |
getIsDefault()
Returns whether this category view set is the default set.
|
java.lang.String |
getName()
Returns the name of this category view set.
|
int |
getPreferredLanguageID()
Returns the language ID to use for displaying the category tree.
|
RestrictionsList |
getRestrictionsList()
Returns the list of roles and users that are allowed to view this set.
|
boolean |
getRestrictMasterCategories()
Returns whether the list of shown master categories should only contain the allowed master categories of the catalog.
|
boolean |
getUseAutoSwitchViewMode()
Returns true if the application should switch to a specific master category after activating this category view set.
|
boolean |
isDefault()
Returns whether this item is the default item.
|
boolean |
isSharingRestricted()
Returns whether the set visibility is restricted to a group of users or roles.
|
boolean |
isShowLanguageOfCategory()
Returns whether this category view set is configured to show the used language for the displayed category name.
|
boolean |
isUseCustomOrderedLanguageSpecificSortedTree()
Returns whether this category view set is configured to allow custom ordering and language specific sorting of the category tree.
|
boolean |
isUsePreferredLanguage()
Returns whether this category view set is configured to use a preferred language for displaying the category tree when available.
|
void |
removeAllowedMasterCategoryName(java.lang.String name)
Removes a master category name from the list of allowed master categories.
|
void |
setAutoSwitchCategoryName(java.lang.String value)
Sets the name of the master category to switch to after activating this category view set.
|
void |
setBackgroundColor(int color)
Sets the background color as RGB value representing the color.
|
void |
setCountAssignedRecords(boolean count)
Configures whether the application should display the number of directly assigned records behind each category.
|
void |
setDescription(int languageID,
java.lang.String description)
Sets the description for the given language.
|
void |
setDisplayName(int languageID,
java.lang.String displayName)
Sets the display name for the given language.
|
void |
setPreferredLanguageID(int languageID)
Specifies the language ID to use for displaying the category tree.
|
void |
setRestrictMasterCategories(boolean value)
Sets whether the list of shown master categories should not contain some master categories of the catalog.
|
void |
setSharingRestricted(boolean value)
Sets whether the set visibility is restricted to a group of users or roles.
|
void |
setShowLanguageOfCategory(boolean value)
Specifies whether this category view set is configured to show the used language for the displayed category name.
|
void |
setUseAutoSwitchViewMode(boolean value)
Configures whether the application should switch to a specific master category after activating this category view set.
|
void |
setUseCustomOrderedLanguageSpecificSortedTree(boolean value)
Specifies whether this category view set should allow custom ordering and language specific sorting of the category tree.
|
void |
setUsePreferredLanguage(boolean value)
Specifies whether this category view set should use a preferred language for displaying the category tree when available.
|
getAllowDynamicLanguageSwitchForFieldsSupportingMultipleLanguages, getCategoryFieldList, getTableDisplayName, getTableName, setAllowDynamicLanguageSwitchForFieldsSupportingMultipleLanguages
addChangeListener, addChangeListener, addGlobalChangeListener, addPackListener, forgetPush, getPack, isShared, popPack, pushPack, removeChangeListener, removeChangeListener, removeGlobalChangeListener, removePackListener, save, save, toString, writeAsXML
public java.lang.String getName()
public int getBackgroundColor()
ColorModel
. (Bits 24-31 are alpha, 16-23 are red, 8-15
are green, 0-7 are blue).ColorModel
.public void setBackgroundColor(int color)
color
- the combined RGB componentspublic boolean getRestrictMasterCategories()
public void setRestrictMasterCategories(boolean value)
addAllowedMasterCategoryName(String)
and removeAllowedMasterCategoryName(String)
to set the allowed names.value
- set to true to make the application show only the allowed master categoriespublic boolean getUseAutoSwitchViewMode()
public void setUseAutoSwitchViewMode(boolean value)
value
- set to true if the application should switch to a specific master categorypublic java.lang.String getAutoSwitchCategoryName()
getUseAutoSwitchViewMode()
returns true.public void setAutoSwitchCategoryName(java.lang.String value)
getUseAutoSwitchViewMode()
returns true.value
- the master category name to switch topublic FontDetail getFontMac()
public FontDetail getFontWin()
public FontDetail getFont()
public boolean getIsDefault()
public boolean getCountAssignedRecords()
public void setCountAssignedRecords(boolean count)
count
- set to true if the application should display the number of directly assigned recordspublic void addAllowedMasterCategoryName(java.lang.String name)
getRestrictMasterCategories()
is true.name
- add the master category name to the list of allowed master categoriespublic void removeAllowedMasterCategoryName(java.lang.String name)
getRestrictMasterCategories()
is true.name
- add the master category name to the list of allowed master categoriespublic java.util.Collection<java.lang.String> getAllowedMasterCategoryNames()
String
namespublic CategoryViewSetTableList getCategoryViewSetTableList()
public JPack exportSet()
JPack
.exportSet
in interface Item
JPack
CategoryViewSetList.importSet(com.canto.cumulus.utils.JPack, SetImportDuplicatesMode)
public java.lang.String getID()
public boolean isDefault()
public java.lang.String getDescription(int languageID)
getDescription
in interface Item
languageID
- specifying the language for the descriptionpublic void setDescription(int languageID, java.lang.String description)
setDescription
in interface Item
languageID
- the language to set the description fordescription
- the new descriptionpublic java.lang.String getDisplayName(int languageID, boolean fallbackToDefaultName)
getDisplayName
in interface Item
languageID
- specifying the language for the display namefallbackToDefaultName
- when set to true this method returns the default name when now localized display name is available otherwise nullpublic void setDisplayName(int languageID, java.lang.String displayName)
setDisplayName
in interface Item
languageID
- the language to set the display name fordisplayName
- the new display namepublic boolean isUseCustomOrderedLanguageSpecificSortedTree()
public void setUseCustomOrderedLanguageSpecificSortedTree(boolean value)
value
- specifies whether to allow custom ordering and language specific sorting of the category treepublic boolean isUsePreferredLanguage()
public void setUsePreferredLanguage(boolean value)
value
- specifies whether to use a preferred language for displaying the category tree when availablepublic boolean isShowLanguageOfCategory()
public void setShowLanguageOfCategory(boolean value)
value
- specifies whether this category view set is configured to show the used language for the displayed category namepublic int getPreferredLanguageID()
public void setPreferredLanguageID(int languageID)
languageID
- language ID to use for displaying the category treepublic boolean isSharingRestricted()
isSharingRestricted
in interface Item
public void setSharingRestricted(boolean value)
setSharingRestricted
in interface Item
value
- set to true if the set visibility should be restricted to a group of users or rolespublic RestrictionsList getRestrictionsList()
isSharingRestricted()
returns
true.getRestrictionsList
in interface Item
www.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.