|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
See:
Description
| Packages | |
| jaxcent.yui | |
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.6.0/build/fonts/fonts-min.css" />
<link type="text/css" rel="stylesheet" href="http://yui.yahooapis.com/2.6.0/build/calendar/assets/skins/sam/calendar.css">
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.6.0/build/treeview/assets/skins/sam/treeview.css" />
<script type="text/javascript" src="http://yui.yahooapis.com/2.6.0/build/yahoo-dom-event/yahoo-dom-event.js"></script>
<script type="text/javascript" src="http://yui.yahooapis.com/2.6.0/build/calendar/calendar-min.js"></script>
<script type="text/javascript" src="http://yui.yahooapis.com/2.6.0/build/treeview/treeview-min.js"></script>
<link rel="stylesheet" type="text/css" href="http://developer.yahoo.com/yui/examples/treeview//assets/css/folders/tree.css">
<script type="text/javascript">
// We need some JavaScript code to handle click events on the tree.
function yuiTreeClickHandler( oArgs )
{
if ( oArgs.node.varname ) {
JaxcentServerRequest( "YuiTreeOnClick", oArgs.node.varname );
}
if ( oArgs.node.editable ) {
oArgs.node.editNode( oArgs.node.label );
}
}
</script>
The tree is placed in a DIV. The DIV should be created with an ID, so it can be identified to the Java code, e.g.
<div id="yuitree"></div>In addition, the BODY or other parent tag of the target DIV should have the class yui-skin-sam.
<body class="yui-skin-sam">
The Jaxcent class that handles the HTML page, should derive from jaxcent.yui.Tree. It must call the init method to initialize the tree, specifying the id of the DIV where the tree is to be drawn.
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||