DEF_COMPONENTNAME
MlTree
DEF_SUPERCLASS
Panel
DEF_SUPERCOMPONENT

DEF_PACKAGE
plugins
microline
DEF_ENDLIST
DEF_SUBCOMPONENTLIST
DEF_ENDLIST
DEF_SUBCOMPONENTCLASSLIST
DEF_ENDLIST
DEF_CATEGORY

DEF_BITMAP

DEF_THUMBNAIL_UP

DEF_THUMBNAIL_DOWN

DEF_BASE
DEF_IMPORTS
DEF_ENDLIST
DEF_REQUIRES
DEF_ENDLIST
DEF_IMPLEMENTS
DEF_ENDLIST
DEF_DECLARATION
DEF_ENDLIST
DEF_METHOD
public void addRow(int level, boolean expands, String string)
// Adds a row of level to end of the Tree displaying the string passed. If expands is true, the row may
// be expanded by the user. 
DEF_ENDLIST
DEF_METHOD
public void addRow(int level, boolean expands, boolean isExpanded, int position, Image
image, String string)
// Adds a row of level to the Tree at position. A position of -1 specifies after the last content row. The
// image and string will appear in the first cell of the row. The image value may be null, in which case,
// the default image will be displayed. If expands is true, the row may be expanded by the user. The
// isExpanded flag indicates if the row is currently expanded (true) or not (false). 
DEF_ENDLIST
DEF_METHOD
public void addRows(MlTreeRowDefinition rows[], int position)
// Adds rows to the tree at the given position. A position of -1 specifies after the last content row. The
// elements of the rows array are defined as: 
//
//    public class MlTreeRowDefinition
//    {
//    public boolean expands;
//    public Image image;
//  public boolean isExpanded;
//  public int level;
//  public String string;
//  }
DEF_ENDLIST
DEF_METHOD
public void collapseRow(int row, boolean notify)
// Collapses the given row. If notify is true, and the row is currently expanded, a COLLAPSE_ROW
// event will be posted. 
DEF_ENDLIST
DEF_METHOD
public int countRowChildren(int row)
// Returns the number of children of the row passed. The children of a parent row are defined as all
// rows following the parent row which have a level greater than the parent row until a row with a level
// equal to or less than the parent row is found. 
DEF_ENDLIST
DEF_METHOD
public void expandRow(int row, boolean notify)
// Expands the given row. If notify is true, and the row is currently collapsed, an EXPAND_ROW
// event will be posted. 
DEF_ENDLIST
DEF_ENDCOMPONENT
DEF_COMPONENTNAME
MicrolineTree
DEF_SUPERCLASS
MlTree
DEF_SUPERCOMPONENT

DEF_PACKAGE
plugins
trees
DEF_ENDLIST
DEF_SUBCOMPONENTLIST
DEF_ENDLIST
DEF_SUBCOMPONENTCLASSLIST
DEF_ENDLIST
DEF_CATEGORY
MicroLine
DEF_BITMAP
treem.bmp
DEF_THUMBNAIL_UP
mltree.bmp
DEF_THUMBNAIL_DOWN
2-mltree.bmp
DEF_VISUAL
DEF_TOOL
DEF_IMPORTS
DEF_ENDLIST
DEF_REQUIRES
DEF_ENDLIST
DEF_IMPLEMENTS
DEF_ENDLIST
DEF_DECLARATION
// A class that produces a tabpanel.
// Check the microline Documentation for a full feature list.
// This component has much more functionality which is described in
// the included Microline documentation in /docs/microline.
// This third party component was created by MicroLine.  They can be contacted at:
// http://www.mlsoft.com
DEF_ENDLIST
DEF_METHOD
void initialize() {
    setLayout(new BorderLayout());

    setValue("layoutFrozen", true);
    addRow(0, true,"Root");
    addRow(1, true, "Level 1 Parent");
    addRow(2, false,"1st Child of Level 1 Parent");
    addRow(2, false,"2nd Child of Level 1 Parent");
    addRow(2, true, "Level 2 Parent");
    addRow(3, false, "Child of Level 2 Parent");
    addRow(1, true, "Level 1 Parent");
    addRow(2, false, "Child of Level 1 Parent");
    setValue("layoutFrozen", false);

    }
DEF_ENDLIST
DEF_PROPERTY
Top
int
move(bounds().x, AVALUE);
AVALUE = bounds().y;
0
DEF_ENDLIST
DEF_PROPERTY
Left
int
move(AVALUE, bounds().y);
AVALUE = bounds().x;
0
DEF_ENDLIST
DEF_PROPERTY
Height
int
resize(bounds().width, AVALUE);
AVALUE = bounds().height;
200
DEF_ENDLIST
DEF_PROPERTY
Width
int
resize(AVALUE, bounds().height);
AVALUE = bounds().width;
300
DEF_ENDLIST
DEF_ENDCOMPONENT
