public class ChargeType extends IdTitle
Modifier and Type | Field and Description |
---|---|
protected boolean |
editable |
protected java.lang.Integer |
parentId |
protected int |
type |
static int |
TYPE_ALL |
static int |
TYPE_BRANCH |
static int |
TYPE_EDITABLE |
static int |
TYPE_LEAF |
static int |
TYPE_UNEDITABLE |
Constructor and Description |
---|
ChargeType() |
ChargeType(int id,
java.lang.String title,
int type,
boolean editable,
int parentId,
boolean payback) |
Modifier and Type | Method and Description |
---|---|
boolean |
getEditable()
true - редактируется, false - не редактируется.
|
java.lang.Integer |
getParentId() |
int |
getType()
Получение типа элемента в дереве.
|
boolean |
isPayback() |
void |
setEditable(boolean editable) |
void |
setParentId(java.lang.Integer parentId) |
void |
setPayback(boolean payback)
Установка, является ли данный расход возвратом.
|
void |
setType(int type)
Установка типа элемента в дереве.
|
equals, getId, hashCode, newIdList, newIdSet, newIdSet, newIdSet, newIdSet, newMap, setId
public static final int TYPE_LEAF
public static final int TYPE_BRANCH
public static final int TYPE_ALL
public static final int TYPE_EDITABLE
public static final int TYPE_UNEDITABLE
protected int type
protected boolean editable
protected java.lang.Integer parentId
public ChargeType()
public ChargeType(int id, java.lang.String title, int type, boolean editable, int parentId, boolean payback)
public boolean isPayback()
public void setPayback(boolean payback)
payback
- - true если возвратpublic int getType()
TYPE_LEAF
), 1 - группа( TYPE_BRANCH
).public boolean getEditable()
public java.lang.Integer getParentId()
public void setType(int type)
type
- 0 - элемент группы( TYPE_LEAF
), 1 - группа( TYPE_BRANCH
).public void setEditable(boolean editable)
public void setParentId(java.lang.Integer parentId)