# JavaScript API Reference for Oracle ADF Faces

Overview | Package | Class | Tree | Deprecated | Index | Help
| Oracle® Fusion Middleware Javascript API Reference for Oracle ADF Faces 12c (12.2.1.4.0) E81451-01
PREV NEXT | FRAMES NO FRAMES Warning: private items are visible |

SUMMARY: FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

# oracle.adfinternal.view.js.laf.dhtml.rich.subids
Class AdfDhtmlShowDetailItemPeer

## Warning:

- This is an unsupported, internal implementation class.
- Use an API class that might provide equivalent functionality instead.
- This class will change without notice.
- It is not recommended that you use anything in this class.

    org.ecmascript.object.Object
       |
       +--oracle.adfinternal.view.js.laf.dhtml.rich.subids.AdfDhtmlShowDetailItemPeer

    public class AdfDhtmlShowDetailItemPeer
    extends Object

showDetailItem component publishes the following sub ids [External Subid --> Internal Client SubId]:- 1. [tab_link --> disAcr - the tab link displayed when a showDetailItem is in a panelTabbed] 2. [panel_disclosure_icon --> btn - the disclosure icon that is displayed when a showDetailItem is in a panelAccordion] 3. [remove_icon_above --> rmAbv - the remove button that may be displayed on a showDetailItem top label in a panelTabbed] 4. [remove_icon_below --> rmBlw - the remove button that may be displayed on a showDetailItem bottom label in a panelTabbed] 5. [tab_text_above --> disAcr - the clickable text displayed on a showDetailItem top label in a panelTabbed] 6. [tab_text_below --> disAcrBlw - the clickable text displayed on a showDetailItem bottom label in a panelTabbed] 7. [panel_text - the text for a showDetailItem present on a panelAccordion] (mapped programmatically) 8. [icon - the icon or image in the panelDrawer tab and panelSpringboard item] 9. [tab_text_vertical - the clickable text displayed on a showDetailItem displayed vertically in a panelTabbed]

## Field Summary
`private static Object` | `_SUB_ID_MAP` showDetailItem component publishes the following sub ids [External Subid --> Internal Client SubId]:- 1.

### Fields inherited from org.ecmascript.object.Object
`constructor, prototype`

## Constructor Summary
`public` | `AdfDhtmlShowDetailItemPeer()` showDetailItem component publishes the following sub ids [External Subid --> Internal Client SubId]:- 1.

## Method Summary
`protected Object` | `GetBestMatchSubId(HTMLElement childElement)` Returns the best match subId for the given domElement.
`public static Object` | `getBestMatchSubIdForShowDetailItem(Object childElement)` Called by a containing layout component peer (AdfDhtmlPanelAccordionPeerSubIds.js, AdfDhtmlPanelSpringBoardPeerSubIds.js,AdfDhtmlPanelTabbedPeerSubIds.js) and finds the best match subId of ShowDetailItem sub-elements if the childElement is a part of a ShowDetailItem.
`protected Object` | `GetSubIdDomElement(Object subElementId)` Returns the DOM element identified by the passed in subId.
`public static HTMLElement` | `getSubIdDomElementForShowDetailItem(Object elementId)` Called by containing layout component peer (AdfDhtmlPanelAccordionPeerSubIds.js, AdfDhtmlPanelSpringBoardPeerSubIds.js,AdfDhtmlPanelTabbedPeerSubIds.js) and tries to find the DOM element that corresponds to the locator is passed in.

## Field Detail

### _SUB_ID_MAP

`private static Object _SUB_ID_MAP`
  showDetailItem component publishes the following sub ids [External Subid --> Internal Client SubId]:- 1. [tab_link --> disAcr - the tab link displayed when a showDetailItem is in a panelTabbed] 2. [panel_disclosure_icon --> btn - the disclosure icon that is displayed when a showDetailItem is in a panelAccordion] 3. [remove_icon_above --> rmAbv - the remove button that may be displayed on a showDetailItem top label in a panelTabbed] 4. [remove_icon_below --> rmBlw - the remove button that may be displayed on a showDetailItem bottom label in a panelTabbed] 5. [tab_text_above --> disAcr - the clickable text displayed on a showDetailItem top label in a panelTabbed] 6. [tab_text_below --> disAcrBlw - the clickable text displayed on a showDetailItem bottom label in a panelTabbed] 7. [panel_text - the text for a showDetailItem present on a panelAccordion] (mapped programmatically) 8. [icon - the icon or image in the panelDrawer tab and panelSpringboard item] 9. [tab_text_vertical - the clickable text displayed on a showDetailItem displayed vertically in a panelTabbed]

## Constructor Detail

### AdfDhtmlShowDetailItemPeer

`public AdfDhtmlShowDetailItemPeer()`
  showDetailItem component publishes the following sub ids [External Subid --> Internal Client SubId]:- 1. [tab_link --> disAcr - the tab link displayed when a showDetailItem is in a panelTabbed] 2. [panel_disclosure_icon --> btn - the disclosure icon that is displayed when a showDetailItem is in a panelAccordion] 3. [remove_icon_above --> rmAbv - the remove button that may be displayed on a showDetailItem top label in a panelTabbed] 4. [remove_icon_below --> rmBlw - the remove button that may be displayed on a showDetailItem bottom label in a panelTabbed] 5. [tab_text_above --> disAcr - the clickable text displayed on a showDetailItem top label in a panelTabbed] 6. [tab_text_below --> disAcrBlw - the clickable text displayed on a showDetailItem bottom label in a panelTabbed] 7. [panel_text - the text for a showDetailItem present on a panelAccordion] (mapped programmatically) 8. [icon - the icon or image in the panelDrawer tab and panelSpringboard item] 9. [tab_text_vertical - the clickable text displayed on a showDetailItem displayed vertically in a panelTabbed]

## Method Detail

### GetBestMatchSubId

`protected Object GetBestMatchSubId(HTMLElement childElement)`
  Returns the best match subId for the given domElement. This can be enhanced further to return programmatically determined subIds. WARNING - You must make sure to bind the component to the peer before calling this function.
  Parameters:

    `childElement` | - | the child DOM element

  Return:
    `Object`
  See also:
    `AdfRichUIPeer.GetSubIdDomElement(Object)`

### getBestMatchSubIdForShowDetailItem

`public static Object getBestMatchSubIdForShowDetailItem(Object childElement)`
  Called by a containing layout component peer (AdfDhtmlPanelAccordionPeerSubIds.js, AdfDhtmlPanelSpringBoardPeerSubIds.js,AdfDhtmlPanelTabbedPeerSubIds.js) and finds the best match subId of ShowDetailItem sub-elements if the childElement is a part of a ShowDetailItem. This special handling is needed for ShowDetailItem because the containing layout components renders subelement of owning ShowDetailItem outside of the ShowDetilItem component node.
  Parameters:

    `childElement` | - | the dom element

  Return:
    `Object` - best matched subid for the ShowDetailItem or null if the child element is not a show detail item or the sibid is not found

### GetSubIdDomElement

`protected Object GetSubIdDomElement(Object subElementId)`
  Returns the DOM element identified by the passed in subId.
  Parameters:

    `subElementId` |  |

  Return:
    `Object` - the DOM element

### getSubIdDomElementForShowDetailItem

`public static HTMLElement getSubIdDomElementForShowDetailItem(Object elementId)`
  Called by containing layout component peer (AdfDhtmlPanelAccordionPeerSubIds.js, AdfDhtmlPanelSpringBoardPeerSubIds.js,AdfDhtmlPanelTabbedPeerSubIds.js) and tries to find the DOM element that corresponds to the locator is passed in. It assumes the elementId passed in is an elementId for ShowDetailItem sub-element that has a format of #, # otherwise returns null.
  Parameters:

    `elementId` | - | : id in the format #

  Return:
    `HTMLElement` - a DOM element for a subElement that is belongs to the ShowDetailItem or null if none found.

SUMMARY: FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Overview | Package | Class | Tree | Deprecated | Index | Help
| Oracle® Fusion Middleware Javascript API Reference for Oracle ADF Faces 12c (12.2.1.4.0) E81451-01
PREV NEXT | FRAMES NO FRAMES Warning: private items are visible |

Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved.