The new JDeveloper 18.104.22.168 provides some new features and enhancements. In the next couple of posts we are going to investigate some of them.
We start with the af:panelTabbed component. There is an enhancement fro this component we all waited for a long time. Vertical stacked tabs with icons and text. This sounds like a small thing, but in earlier versions of ADF vertical stacked tabs could only show icons.
We are calling tabs vertical stacked, if the tab is on the left or right side of the panel. Horizontal stacked tabs are the ones at the top or the button of the panel.
Vertical Stacked Tab with Icons and Text
As said before, in earlier versions of ADF you needed to do a workaround to get tabs on the left or right showing an icon, text or both. You needed to create an icon from the icon, Text or icon with text and add it to the af:showDetailItem. The drawback was that you couldn’t just edit the text (e.g. correcting a spelling mistake) or had to generate different such icons for different languages along with some logic to exchange the icon according to the selected language.
The new af:panelTabbed has a new property ‘verticalTabMode‘ with two modes:
- iconOnly this mode behaves like the old versions and only shows an icon defined for the af:showDetailItem
- iconAndText this mode shows an icon and the text defined in the text property of the af:showDetailItem
The images above show the af:panelTabbed with the new verticalTabMode. The sample application for this can be downloaded from GitHub BlogPanelTabbed. It does not use a DB connection and was built using JDeveloper 22.214.171.124.