现在的位置: 首页 > 综合 > 正文

Oracle ADF 自定义PopUp之noteWindow

2018年02月09日 ⁄ 综合 ⁄ 共 1500字 ⁄ 字号 评论关闭

1、在需要弹出noteWindow的控件内部添加组件:

<af:showPopupBehavior popupId="::popupDialog"
                                                  triggerType="mouseHover" alignId="pgl21"
                                          align="beforeStart"/>

 

2、编辑先关联的popupDialog

        <af:popup id="popupDialog"
                  contentDelivery="lazyUncached" eventContext="launcher"
                  launcherVar="source">
            <af:noteWindow id="noteWin1">
            <af:panelGroupLayout id="pgl5" >
              <trh:tableLayout id="tl2"
                               inlineStyle="width:300px;height:200px;">
                <trh:rowLayout id="rl1">
                  <trh:cellFormat id="cf1">
                    <af:outputText  value="#{viewScope.RefType}"/>
                    </trh:cellFormat>
                  <trh:cellFormat id="cf2">
                  <af:outputText  value="#{viewScope.Deptname}"/>
                  </trh:cellFormat>
                  <trh:cellFormat id="cf9"/>
                </trh:rowLayout>
              </trh:tableLayout>
            </af:panelGroupLayout>
          </af:noteWindow>
          <af:setPropertyListener from="#{node.RefType}" to="#{viewScope.RefType}" type="popupFetch"/>
          <af:setPropertyListener from="#{node.Deptname}" to="#{viewScope.Deptname}" type="popupFetch"/>
        </af:popup>

 

这里需要注意的是notewindow中如何获取焦点控件的值

<af:setPropertyListener from="#{node.字段名}" to="#{viewScope.字段名}" type="popupFetch"/>

 

还有就是样式问题了:待研究...

 

相关参考文档:

http://www.oracle.com/technetwork/developer-tools/adf/learnmore/35-passing-values-to-popup-169177.pdf

抱歉!评论已关闭.