开发者

Hiding expand/collapse +/- buttons

Is i开发者_C百科t possible to hide the +/- buttons for an ICEFaces tree node that is a leaf? They still appear on my leaf nodes even when I mark that node specifically as a leaf and say node.setAllowsChildren(false).


You should create an IceUserObject and use it as user object.

DefaultMutableTreeNode node = new DefaultMutableTreeNode();
IceUserObject userObject = new IceUserObject(node);
userObject.setLeaf(true);
node.setUserObject(userObject);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜