Branding

Identifier:
org.eclipse.rap.ui.branding

Since:
RAP 1.0

Description:
A branding adds customizations and styling to the UI of a RAP application. It can be used to set the title and icon displayed in the browser, or to apply a custom theme and styling. A branding is associated with a name and can be activated by using this name as the servlet name in the URL.

Brandings can reside in a separate bundle, i.e. it is possible to brand applications without modifying their containing bundles.

Configuration Markup:

<!ELEMENT extension (branding)+>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED

>


<!ELEMENT branding (additionalHeaders? , associatedEntrypoints? , presentationFactory?)>

<!ATTLIST branding

id                    CDATA #REQUIRED

servletName           CDATA #REQUIRED

defaultEntrypointId   CDATA #IMPLIED

themeId               IDREF #IMPLIED

title                 CDATA #IMPLIED

favicon               CDATA #IMPLIED

body                  CDATA #IMPLIED

exitConfirmationClass CDATA #IMPLIED

>


<!ELEMENT additionalHeaders ((meta | link))+>

Any additional header element to be added to the HTML page.



<!ELEMENT meta (attribute)*>

<!ATTLIST meta

name    CDATA #IMPLIED

content CDATA #IMPLIED

>

HTML META elements, used to provide structured metadata about a web page like author, keywords, description.



<!ELEMENT link (attribute)*>

<!ATTLIST link

rel  CDATA #IMPLIED

href CDATA #IMPLIED

>

HTML LINK elements, used to link the webpage with external resources such as CSS style sheets.



<!ELEMENT attribute EMPTY>

<!ATTLIST attribute

name  CDATA #REQUIRED

value CDATA #IMPLIED

>

Additional attributes to be added to HTML elements.



<!ELEMENT associatedEntrypoints (entrypoint)+>

Defines all entrypoints which are allowed to be started with this branding (or servletName). If there are no entrypoints defined in this branding, any entrypoint is allowed to be started.



<!ELEMENT entrypoint EMPTY>

<!ATTLIST entrypoint

id IDREF #IMPLIED

>

An element which references to an existing entrypoint defined by org.eclipse.rap.ui.entrypoint.



<!ELEMENT presentationFactory (stackPresentation* , defaultStackPresentation?)>

<!ATTLIST presentationFactory

id                 IDREF #REQUIRED

defaultLayoutId    IDREF #IMPLIED

name               CDATA #IMPLIED

viewActionsVisible (true | false)

>


<!ELEMENT stackPresentation EMPTY>

<!ATTLIST stackPresentation

id     IDREF #REQUIRED

partId IDREF #REQUIRED

>


<!ELEMENT defaultStackPresentation EMPTY>

<!ATTLIST defaultStackPresentation

id IDREF #REQUIRED

>


Examples:

<extension
      point="org.eclipse.rap.ui.branding">
   <branding
         id="org.example.tea.teabranding"
         servletName="tea"
         defaultEntrypointId="org.example.tea.application"
         themeId="org.example.tea.teatheme"
         title="Tea Portal"
         favicon="icons/favicon.ico"
         body="body.html"
         exitConfirmationClass="org.example.tea.ExitConfirmation">
   </branding>
</extension>

API Information:
There is no API available for branding.


Copyright (c) 2007, 2010 Innoopract Informationssysteme GmbH and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html