The skin-definition object contains and provides a way to package the look-and-feel definitions available to the application.

The skin-definition object, in addition to the attributes inherited from the FrameworkObject base class, contains the following attribute:

Attribute

Description

skin-id

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

The extension method of the SkinDefinitionHome interface is:

Returns

Method

Description

SkinDefinition

findByUserSegment
  AndSkinId

Returns the SkinDefinition 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 skin identifier only. The appId indicates the framework application in which to look for the object.

Arguments: String appId, String skinId

The following is an example of a simple tab skin-definition:

<skin-definition>
  <id>MySimpleTabsSkin</id>
  <app-id>workspace</app-id>
  <enabled-yn>true</enabled-yn>
  <name-key>mySimpleTabsSkin.name</name-key>
  <object-type>SkinDefinition</object-type>
  <description-key>mySimpleTabsSkin.description</description-key>
  <image-url>../../image/icons/my_skin_tabs.gif</image-url>
  <content-ids>
    <map-entry>
      <key>style</key>
      <value>MySkinSimpleTabsCSS</value>
    </map-entry>
    <map-entry>
      <key>javaScript</key>
      <value>MySkinSimpleTabsJS</value>
    </map-entry>
  </content-ids>
  <template-ids>
    <map-entry>
      <key>errorTemplate</key>
      <value>errorPanel</value>
    </map-entry>
    <map-entry>
      <key>panelTemplate</key>
      <value>simpleTabsPanel</value>
    </map-entry>
    <map-entry>
      <key>layoutTemplate</key>
      <value>simpleTabsLayout</value>
    </map-entry>
  </template-ids>
  <option-names>
    <map-entry>
      <key>myOption1</key>
      <value>SkinSimpleTabsShowLogo</value>
    </map-entry>
  </option-names>
  <skin-id>mySimpleTabsSkin</skin-id>
</skin-definition>

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