public class BalanceBaseType 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 |
---|
BalanceBaseType() |
BalanceBaseType(int id,
java.lang.String title,
int type,
boolean editable,
java.lang.Integer parentId) |
Modifier and Type | Method and Description |
---|---|
boolean |
getEditable()
true - редактируется, false - не редактируется.
|
java.lang.Integer |
getParentId() |
int |
getType()
Получение типа элемента в дереве.
|
void |
setEditable(boolean editable) |
void |
setParentId(java.lang.Integer parentId)
Ссылка на родительский узел в иерархии типов.
|
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 BalanceBaseType()
public BalanceBaseType(int id, java.lang.String title, int type, boolean editable, java.lang.Integer parentId)
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)
parentId
- код родительского типа