|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
org.compiere.model.MTreeNode
public final class MTreeNode
Mutable Tree Node (not a PO).
| Field Summary | |
|---|---|
static Icon[] |
IMAGES
16* 16 Icons |
static int |
TYPE_DOCACTION
Action - 8 |
static int |
TYPE_PROCESS
Process - 3 |
static int |
TYPE_REPORT
Report - 2 |
static int |
TYPE_SETVARIABLE
Variable - 6 |
static int |
TYPE_USERCHOICE
Choice - 7 |
static int |
TYPE_WINDOW
Window - 1 |
static int |
TYPE_WORKBENCH
Workbench - 5 |
static int |
TYPE_WORKFLOW
Workflow - 4 |
| Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
|---|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
| Constructor Summary | |
|---|---|
MTreeNode(int node_ID,
int seqNo,
String name,
String description,
int parent_ID,
boolean isSummary,
String imageIndicator,
boolean onBar,
Color color)
Construct Model TreeNode |
|
| Method Summary | |
|---|---|
MTreeNode |
findNode(int ID)
Return the Node with ID in list of children |
Color |
getColor()
Get Color |
String |
getDescription()
Get Description |
Icon |
getIcon()
Get Image Icon |
static Icon |
getIcon(int index)
Get Image Icon |
static int |
getImageIndex(String imageIndicator)
Get Image Indicator/Index |
String |
getImageIndiactor()
Get Image Indicator |
String |
getName()
Get Name |
int |
getNode_ID()
Get Node ID |
int |
getParent_ID()
Return parent |
String |
getSeqNo()
Get SeqNo (Index) as formatted String 0000 for sorting |
boolean |
isForm()
Is Form |
boolean |
isOnBar()
Get Shortcut Bar info |
boolean |
isProcess()
Is Process |
boolean |
isReport()
Is Report |
boolean |
isSummary()
Allow children to be added to this node |
boolean |
isTask()
Is Task |
boolean |
isWindow()
Is Window |
boolean |
isWorkbench()
Is Workbench |
boolean |
isWorkFlow()
Is Workflow |
void |
setAllowsChildren(boolean isSummary)
Set Summary (allow children) |
void |
setImageIndicator(String imageIndicator)
Set Image Indicator and Index |
void |
setName(String name)
Set Name |
void |
setSummary(boolean isSummary)
Set Summary (allow children) |
String |
toString()
Print Name |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static int TYPE_WINDOW
public static int TYPE_REPORT
public static int TYPE_PROCESS
public static int TYPE_WORKFLOW
public static int TYPE_WORKBENCH
public static int TYPE_SETVARIABLE
public static int TYPE_USERCHOICE
public static int TYPE_DOCACTION
public static Icon[] IMAGES
| Constructor Detail |
|---|
public MTreeNode(int node_ID,
int seqNo,
String name,
String description,
int parent_ID,
boolean isSummary,
String imageIndicator,
boolean onBar,
Color color)
node_ID - nodeseqNo - sequencename - namedescription - descriptionparent_ID - parentisSummary - summaryimageIndicator - image indicatoronBar - on barcolor - color| Method Detail |
|---|
public int getNode_ID()
public void setName(String name)
name - namepublic String getName()
public String getSeqNo()
public int getParent_ID()
public String toString()
toString in class DefaultMutableTreeNodepublic String getDescription()
public void setSummary(boolean isSummary)
isSummary - summary nodepublic void setAllowsChildren(boolean isSummary)
setAllowsChildren in class DefaultMutableTreeNodeisSummary - true if summarypublic boolean isSummary()
public static int getImageIndex(String imageIndicator)
imageIndicator - image indicator (W/X/R/P/F/T/B) MWFNode.ACTION_
public void setImageIndicator(String imageIndicator)
imageIndicator - image indicator (W/X/R/P/F/T/B) MWFNode.ACTION_public String getImageIndiactor()
public static Icon getIcon(int index)
index - image index
public Icon getIcon()
public boolean isOnBar()
public boolean isProcess()
public boolean isReport()
public boolean isWindow()
public boolean isWorkbench()
public boolean isWorkFlow()
public boolean isForm()
public boolean isTask()
public Color getColor()
public MTreeNode findNode(int ID)
ID - id
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||