在
中的树组件下选择树节点 “树节点”图标 时,将显示树节点组件的“属性”窗口。
树节点组件具有以下属性。
类型:字符串类型:布尔型类型:字符串 position: absolute; left: 288px; top: 312px
您既可以直接输入值,也可以单击省略号 (...) 按钮以使用样式编辑器。
有关 CSS2 样式属性的列表,请参见以下 Web 页:
类型:字符串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}
类型:字符串类型:方法绑定要设置该属性,请在可视设计器中右键单击组件,然后选择“编辑 action 事件处理程序”。IDE 将为当前页面打开 Java 编辑器,并将光标放在相应操作方法中,该方法的缺省名称为 component-id_action。例如,对于 ID 为 treeNode1 的树节点,方法名称为 treeNode1_action。
类型:字符串url 属性中指定)的当前页面的框架。如果具有此名称的框架不存在,则会在新的窗口中呈现响应,除非用户将其覆盖。以下框架名称具有特殊的含义:
_blank - 在未命名的新窗口中呈现响应 _self - 在当前框架中呈现响应_parent - 在直接父框架集中呈现响应 _top - 在完整的未划分框架的窗口中呈现响应 类型:字符串title 属性,可以由屏幕阅读器读取并显示为工具提示。
类型:字符串href。如果设置了此属性的值,则在用户单击树节点时不会提交页面。通常,如果未设置此属性,则可以使用对应的 action 或 actionListener 方法来定义用户单击超级链接时发生的情况。有关详细信息,请参见上文中的 action 属性或下文中的 actionListener 属性。
类型:布尔型rendered 属性。类型:方法绑定#{Page1.action_method}),并且其计算结果必须为公共方法的名称,该方法使用 ActionEvent 参数并且其返回类型为 void。
类型:布尔型rendered 属性。