Package com.appiancorp.suiteapi.process
Class PaletteCategory
java.lang.Object
com.appiancorp.suiteapi.common.Identity
com.appiancorp.suiteapi.process.PaletteCategory
- All Implemented Interfaces:
LocalId
,XMLable
,Serializable
A category that holds palettes and/or other palette categories in a hierarchy.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
This bean is used to represent the top level of all categories in the hierarchy componentstatic class
A descriptive object that can be used by the UI -
Field Summary
Fields inherited from interface com.appiancorp.suiteapi.common.XMLable
DEFAULT_BUFFER_SIZE
-
Constructor Summary
ConstructorDescriptionCopy constructor; note that the nested Palette and SubCategories are not copied. -
Method Summary
Modifier and TypeMethodDescriptionPalette[]
Returns the palettes contained within this palette categoryReturns the parent palette category of this palette categoryReturns the subcategories of this palette categoryboolean
void
removePalettes
(List<Palette> palettesToRemove) Removes the given palettesvoid
setEnabled
(boolean enabled) void
setPalettes
(Palette[] palettes) Sets the palette contained within the palette categoryvoid
Sets the parent category of this palette categoryvoid
setSubCategories
(PaletteCategory[] pc_) Sets the subcategories of this palette categorytoXML()
Not yet implementedvoid
toXML
(StringBuffer buffer_) Appends an XML representation of this object (including all child objects) to the given buffer.void
toXML
(StringBuilder buffer_) Not yet implemented
-
Constructor Details
-
PaletteCategory
public PaletteCategory() -
PaletteCategory
Copy constructor; note that the nested Palette and SubCategories are not copied.- Parameters:
pc
- thePaletteCategory
on which to base thisPaletteCategory
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getParent
Returns the parent palette category of this palette category- Returns:
- the ID of this parent category, or
null
if this category has no parent
-
setParent
Sets the parent category of this palette category- Parameters:
parent_
- the id of this parent category
-
getPalettes
Returns the palettes contained within this palette category- Returns:
- an
Array
of thePalette
s contained within this palette category
-
setPalettes
Sets the palette contained within the palette category- Parameters:
p_
- anArray
of thePalette
s to be contained within this palette category
-
removePalettes
Removes the given palettes- Parameters:
palettesToRemove
- the list ofPalette
s to remove from this category
-
getSubCategories
Returns the subcategories of this palette category- Returns:
- an
Array
of thePaletteCategory
s that are subcategories of this palette category
-
setSubCategories
Sets the subcategories of this palette category- Parameters:
pc_
- anArray
of thePaletteCategory
s to make subcategories of this palette category
-
toXML
Not yet implemented -
toXML
Not yet implemented -
toXML
Description copied from interface:XMLable
Appends an XML representation of this object (including all child objects) to the given buffer. Override for performance.
-