To change the theme or brand of the Administration Console for your add-on component, use the integration point type org.glassfish.admingui:customtheme. This integration point affects the Cascading Style Sheet (CSS) files and images that are used in the Administration Console.
For example, the following integration point specifies a custom theme:
<integration-point id="myOwnBrand" type="org.glassfish.admingui:customtheme" priority="2" content="myOwnBrand.properties" />
The priority attribute works differently when you specify it in a branding integration point from the way it works in other integration points. You can place multiple branding add-on components in the modules directory, but only one theme can be applied to the Administration Console. The priority attribute determines which theme is used. Specify a value from 1 to 100; the lower the number, the higher the priority. The integration point with the highest priority will be used.
Additional integration point types also affect the theme or brand of the Administration Console:
Specifies the name and location of the include masthead file, which can be customized with a branding image. This include file will be integrated on the masthead of the Administration Console.
Specifies the name and location of the include file containing the branding login image code that will be integrated with the login page of the Administration Console.
Specifies the name and location of the include file containing the customized login form code. This code also contains the login background image used for the login page for the Administration Console.
Specifies the name and location of the include file containing the branding image that will be integrated with the content of the version popup window.
For example, you might specify the following integration points. The content for each integration point is defined in an include file.
<integration-point id="myOwnBrandMast" type="org.glassfish.admingui:masthead" priority="80" content="branding/masthead.inc" /> <integration-point id="myOwnBrandLogImg" type="org.glassfish.admingui:loginimage" priority="80" content="branding/loginimage.inc" /> <integration-point id="myOwnBrandLogFm" type="org.glassfish.admingui:loginform" priority="80" content="branding/loginform.inc" /> <integration-point id="myOwnBrandVersInf" type="org.glassfish.admingui:versioninfo" priority="80" content="branding/versioninfo.inc" />
To provide your own CSS and images to modify the global look and feel of the entire application (not just the Administration Console), use the theming feature of Project Woodstock. Create a theme JAR file with all the CSS properties and image files that are required by your Woodstock component. Use a script provided by the Woodstock project to clone an existing theme, then modify the files and properties as necessary. See Creating a Theme for the Woodstock Components for details. Once you have created the theme JAR file, place it in the WEB-INF/lib directory of the Administration Console so that the Woodstock theme component will load the theme. In addition, edit the properties file specified by your integration point (MyOwnBrand.properties, for example) to specify the name and version of your theme.