|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.framework.PO
org.compiere.model.X_AD_Tree
org.compiere.model.MTree
public class MTree
Builds Tree. Creates tree structure - maintained in VTreePanel
| Field Summary |
|---|
| Fields inherited from class org.compiere.framework.PO |
|---|
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, log, p_changeVO, p_info, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID |
| Constructor Summary | |
|---|---|
MTree(Ctx ctx,
int AD_Tree_ID,
boolean editable,
boolean clientTree,
String trxName)
Construct & Load Tree |
|
MTree(Ctx ctx,
int AD_Tree_ID,
String trxName)
Default Constructor. |
|
MTree(Ctx ctx,
ResultSet rs,
String trxName)
Load Constructor |
|
MTree(Ctx ctx,
String Name,
String TreeType,
String trxName)
Full Constructor |
|
MTree(MClient client,
String name,
String treeType)
Parent Constructor |
|
| Method Summary | |
|---|---|
protected boolean |
afterSave(boolean newRecord,
boolean success)
After Save |
protected boolean |
beforeSave(boolean newRecord)
Before Save |
static MTree |
get(Ctx ctx,
int AD_Tree_ID,
String trxName)
Get MTree_Base from Cache |
String |
getActionColorName()
Get fully qualified Name of Action/Color Column |
int |
getAD_Table_ID()
Get AD_Table_ID |
int |
getAD_Table_ID(boolean base)
Get AD_Table_ID |
static int |
getDefaultAD_Tree_ID(int AD_Client_ID,
int AD_Table_ID)
Get default (oldest) complete AD_Tree_ID for KeyColumn. |
static int |
getDefaultAD_Tree_ID(int AD_Client_ID,
String tableName)
Get default (oldest) complete AD_Tree_ID for KeyColumn. |
String |
getNodeTableName()
Get Node TableName |
static String |
getNodeTableName(int AD_Table_ID)
Get Node TableName |
CTreeNode |
getRoot()
Get Root node |
String |
getSourceTableName(boolean tableNameOnly)
Get Source TableName (i.e. where to get the name and color) |
static boolean |
hasTree(int AD_Table_ID)
Table has Tree |
static boolean |
hasTree(String tableName)
Table has Tree |
boolean |
isBPartner()
Is Business Partner Tree |
boolean |
isMenu()
Is Menu Tree |
boolean |
isProduct()
Is Product Tree |
String |
toString()
String representation |
void |
trimTree()
Trim tree of empty summary nodes |
void |
updateTrees()
Update all Trees with Table_ID |
| Methods inherited from class org.compiere.model.X_AD_Tree |
|---|
get_AccessLevel, getAD_Tree_ID, getDescription, getKeyNamePair, getName, getTreeType, initPO, isAllNodes, isDefault, isProcessing, isTreeTypeValid, setAD_Table_ID, setAD_Tree_ID, setDescription, setIsAllNodes, setIsDefault, setName, setProcessing, setTreeType |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MTree(Ctx ctx,
int AD_Tree_ID,
String trxName)
ctx - context for securityAD_Tree_ID - The tree to buildtrxName - transaction
public MTree(Ctx ctx,
ResultSet rs,
String trxName)
ctx - contextrs - result settrxName - transaction
public MTree(MClient client,
String name,
String treeType)
client - clientname - nametreeType -
public MTree(Ctx ctx,
String Name,
String TreeType,
String trxName)
ctx - contextName - nameTreeType - tree typetrxName - transaction
public MTree(Ctx ctx,
int AD_Tree_ID,
boolean editable,
boolean clientTree,
String trxName)
AD_Tree_ID - The tree to buildeditable - True, if tree can be modified
- includes inactive and empty summary nodesctx - context for securityclientTree - the tree is displayed on the java client (not on web)trxName - transaction| Method Detail |
|---|
public static int getDefaultAD_Tree_ID(int AD_Client_ID,
int AD_Table_ID)
AD_Client_ID - clientAD_Table_ID - table
public static int getDefaultAD_Tree_ID(int AD_Client_ID,
String tableName)
AD_Client_ID - clientAD_Table_ID - table
public static String getNodeTableName(int AD_Table_ID)
AD_Table_ID - table
public static boolean hasTree(int AD_Table_ID)
AD_Table_ID - table
public static boolean hasTree(String tableName)
tableName - table
public static MTree get(Ctx ctx,
int AD_Tree_ID,
String trxName)
ctx - contextAD_Tree_ID - idtrxName - transaction
public void trimTree()
public CTreeNode getRoot()
public boolean isMenu()
public boolean isProduct()
public boolean isBPartner()
public String getNodeTableName()
public String getSourceTableName(boolean tableNameOnly)
tableNameOnly - if false return From clause (alias = t)
public String getActionColorName()
public int getAD_Table_ID()
getAD_Table_ID in class X_AD_Treepublic int getAD_Table_ID(boolean base)
base - base info
protected boolean beforeSave(boolean newRecord)
beforeSave in class POnewRecord - new
protected boolean afterSave(boolean newRecord,
boolean success)
afterSave in class POnewRecord - newsuccess - success
public void updateTrees()
public String toString()
toString in class X_AD_Tree
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||