Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to Implement splitter area double click to collapse panelSplitter

Sujay PatilSep 6 2016 — edited Sep 6 2016

Hello,

In order to make a responsive UI, i am trying to implement double click on splitter area to collapse the panelSplitter. I am using ADF 12.1.3 version. With panelSplitter component, ADF provide, first face and second facet separated by a divider. Its only possible to collpase the splitter on click of the collapse icon shown in the divider. I would like to implement way to close the splitter on double click happen within the divider area.

I attached the dblClick client listener function but the function never called when the panelSplitter is not collpase and I am clicking on the area of divider except the collapse icon. The reason i found is very strange, using developer toolbar, i put a debug point in "mouse - click" function. I just click in the divider area and checked the window.event which is a MouseEvent and the source for this event is "document" instead of the DIV that render the divider. Hence the function If I click in first of second facate, i get appropriate DOM element in source.

Any idea how this can be added? It would be a nice feature for a ADF application,

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 4 2016
Added on Sep 6 2016
1 comment
159 views