在使用可视设计器编辑的某个页面上或“导航”窗口中选择树组件
时,将显示该组件的“属性”窗口。
树组件具有以下属性。
类型:字符串Tree 对象表示树组件。 类型:字符串 position: absolute; left: 288px; top: 312px
您既可以直接输入值,也可以单击省略号 (...) 按钮以使用样式编辑器。
有关 CSS2 样式属性的列表,请参见以下 Web 页:
类型:字符串style 属性描述。 style 属性描述。 此组件的缺省主题 CSS 样式类为:
css_master.css
.TreBdy {margin:0px}
.Tree {background-color:#fff}
.TreTtl {color:#000;font-weight:bold}
a.TreeLink:link, a.TreeLink:visited
{color:#035899;text-decoration:none}
a.TreeLink:hover {color:#035899;text-decoration:underline}
a.TreeParentLink:link, a.TreeParentLink:visited
{color:#035899;text-decoration:none;font-weight:bold}
a.TreeParentLink:hover
{color:#035899;text-decoration:underline;font-weight:bold}
a.TreeSelLink:link, a.TreeSelLink:visited
{color:#000;text-decoration:none;font-weight:bold}
a.TreeSelLink:hover
{color:#000;text-decoration:underline;font-weight:bold}
.TreeRootRow, .TreeRootRowHeader {background-color:#D3E0EB}
.TreeSelRow {background-color:#F4F5BE}
.TreeSelText {color:#000;font-weight:bold}
.TreeImg {padding-top:2px;padding-bottom:1px}
.TreeImgHeight {display:inline;line-height:22px}
.TreeContent
{display:inline;vertical-align:middle;padding-left:5px}
.TreeLinkSpace {margin-left:3px}
.TreeRootRow {height:26px}
.TreeRootRowHeader {height:4px}
.TreeRow {white-space:nowrap;clear:both}
.TreeRow .float {padding-left:5px}
.TreeRootRow .float {padding-left:7px}
.TreeSelRow .float {padding-left:5px}
类型:字符串类型:字符串immediate 属性设置为 true,才能使此属性正常工作。
immediate 属性设置为 true(因为该属性会对 JavaServer Faces 生命周期产生影响),则可改而调用 Tree.getCookieSelectedTreeNode(),以便返回在 HTTP Cookie 中传回的选定节点值。但是,在用户关闭 cookie 功能或 cookie 受阻时,此方法将不适用。
类型:布尔型类型:布尔型类型:布尔型for 属性链接到此组件,则当用户尝试在不选择节点的情况下提交页面时,屏幕将显示一条错误消息。 类型:字符串title 属性,可以由屏幕阅读器读取并显示为工具提示。
类型:布尔型rendered 属性。类型:布尔型selected 属性返回选定节点的 ID,则必须选择此属性。 类型:布尔型