public class CategoryListItem extends JDBCObject<CategoryListItem>
Category list items are used for display purposes only and are therefore not persisted to a database table.
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID
The class' serialization version id.
|
static int |
SUBCATEGORY
A constant that defines a subcategory.
|
static int |
TOPCATEGORY
A constant that defines a topcategory.
|
LOWVAL_RPG_DATE, LOWVAL_RPG_TIME, STATUS_ACTIVE, STATUS_BLANK, STATUS_CANCELED, STATUS_DELETED, STATUS_INACTIVE, STATUS_PENDING
ivHashCode, ivHashFlds, ivObjAttrs
Constructor and Description |
---|
CategoryListItem()
Constructs a
CategoryListItem object with all field values set to
null . |
Modifier and Type | Method and Description |
---|---|
Category |
getCategory()
Returns the list item's category object.
|
java.util.ArrayList<Category> |
getChildren()
Returns the list item's children.
|
int |
getType()
Returns the list item's type (topcategory or subcategory).
|
boolean |
hasChildren()
Determines if the category for this list item has children.
|
boolean |
isSubCategory()
Determines if this list item is for a subcategory (child).
|
boolean |
isTopCategory()
Determines if this list item is for a topcategory (parent).
|
void |
setCategory(Category value)
Sets the list item's category object.
|
void |
setChildren(java.util.ArrayList<Category> value)
Sets the list item's children.
|
void |
setType(int value)
Sets the list item's type (topcategory or subcategory).
|
after, before, compareTo, equals, fmtStatus, fmtStatus, getObjectStatus, hashKey, setObjectStatus
cloneMapAttributes, formatValue, formatValue, getHashFields, getMapArrayList, getMapAttributes, getMapBigDecimal, getMapBoolean, getMapDate, getMapDouble, getMapInteger, getMapLong, getMapMapped, getMapObject, getMapShort, getMapString, getMapString, getMapStringBuffer, getMapStringBuilder, getMapTime, getMapTimestamp, getMapVector, hashCode, setHashFields, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMapAttributes, setMapObject, setMapTime, setMapTimestamp, toStringArray
private static final long serialVersionUID
public static final int TOPCATEGORY
public static final int SUBCATEGORY
public CategoryListItem()
CategoryListItem
object with all field values set to
null
.public Category getCategory()
public void setCategory(Category value)
value
- (Category) The list item's category.public int getType()
public void setType(int value)
value
- (int) The list item's type. Must be one of the list
type constants (TOPCATEGORY, SUBCATEGORY). Note that a list
item's type might change, depending on the current view of
categories in the list.public java.util.ArrayList<Category> getChildren()
public void setChildren(java.util.ArrayList<Category> value)
value
- (ArrayList) The list item's children.public boolean hasChildren()
true
if this list item has children,
otherwise false
.public boolean isTopCategory()
true
if this list item is a topcategory,
otherwise false
.public boolean isSubCategory()
true
if this list item is a subcategory,
otherwise false
.