The panel-definition object is the basic content unit for the application. The panel-definition defines a rectangular region of the page with related content referenced by an included JSP content template.

The attributes of the panel-definition object, in addition to the attributes inherited from the FrameworkObject base class, are:

Attribute

Description

panel-id

Logical identifier that other objects use to refer to this object, which is exposed to other objects and to the code. It is the primary external way to refer to the object.

content-url

Use the template-ids mapping on the FrameworkObject to assign arbitrary JSP pages to framework objects. Identifies the contents of the panel.

other-context

Contains a static context link or a context/URL link.

onload

Contains the optional name of a JavaScript function to evaluate when the panel is loaded by the framework.

onunload

Contains the optional name of a JavaScript function to evaluate when the panel is unloaded by the framework.

help-key

Provides a string for inline help accessible via a help icon located on the panel title bar.

title-key

Resource bundle key for the label that is associated with the panel.

visible-yn

Determines whether an enabled tab is rendered or hidden.

show-title-yn

Indicates whether the panel has a visible title bar or only a content area with no title bar.

panel-open-yn

Indicates whether the entire panel is currently closed or minimized with a placeholder displayed in the available panels.

allow-panel-toggle-yn

Indicates whether the entire panel, including title bar, can be closed or minimized and represented by a placeholder in the available panels.

allow-content-toggle-yn

Indicates whether the panel contents can be closed or minimized, leaving only the panel title bar visible.

tab-holder-yn

Determines whether the panel can hold other panels in a tabbed format.

always-tabbed-yn

Indicates whether the panel is forced to be tabbed in a row of panel tabs on a tab-holder panel with no ability to be removed from the tabbed position.

tabbed-yn

Indicates whether the panel is currently a tabbed in a row of panel tabs on a tab-holder panel.

allow-tabbing-yn

Indicates whether the panel is allowed to be tabbed in a row of panel tabs on a tab-holder panel.

current-panel-id

Holds the identifier of the currently visible panel based on the selected tab for tab-holder panels.

panel-item-count

Provides a way for the panel label to contain a number representing the number of items displayed in the panel. For example, a panel that displays 17 search results in its content area is able to display My Search Results (17) in the title bar.

access-right

The access right that defines the security user role required to view the panel.

tabbed-panel-ids

Lists the identifiers of the other panels that are tabbed with the current tab-holder panel. The tabs are rendered in the order that the corresponding panels identifiers occur in the list.

The extension method of the PanelDefinitionHome interface is:

Returns

Method

Description

PanelDefinition

findByUserSegment
  AndPanelId

Returns the PanelDefinition with the specified identifier based on the segment of the current user. If the current user does not have a segment or no object is found for the current segment, a default object is returned based on panel identifier only. The appId indicates the framework application in which to look for the object.

Arguments: String appId, String panelId

The following is an example of a PanelDefinition:

<panel-definition>
  <id>WsCustomerCreateNewPanel</id>
  <app-id>workspace</app-id>
  <enabled-yn>true</enabled-yn>
  <object-type>PanelDefinition</object-type>
  <template-ids>
    <map-entry>
      <key>panelTemplate</key>
      <value>panelTemplate</value>
    </map-entry>
  </template-ids>
  <panel-id>customerCreatePanel</panel-id>
  <content-url>/panels/customer/info.jsp</content-url>
  <other-context>agent</other-context>
  <help-key>panel.customerInformationPanel.help</help-key>
  <title-key>panel.customerInformationPanel.label</title-key>
  <visible-yn>true</visible-yn>
  <show-title-yn>true</show-title-yn>
  <panel-open-yn>true</panel-open-yn>
  <allow-panel-toggle-yn>false</allow-panel-toggle-yn>
  <available-yn>false</available-yn>
  <content-open-yn>true</content-open-yn>
  <allow-content-toggle-yn>false</allow-content-toggle-yn>
  <tab-holder-yn>false</tab-holder-yn>
  <always-tabbed-yn>false</always-tabbed-yn>
  <tabbed-yn>false</tabbed-yn>
  <allow-tabbing-yn>false</allow-tabbing-yn>
  <allow-slots-yn>false</allow-slots-yn>
  <tab-scroll-index>0</tab-scroll-index>
  <panel-item-count>0</panel-item-count>
  <access-right>CustomerInformationPanel</access-right>
</panel-definition>

Copyright © 1997, 2013 Oracle and/or its affiliates. All rights reserved. Legal Notices