
BBjAppServer::addStyleSheet
Description
In BBj 12.0 and higher, adds the contents of the file represented by styleSheetFileName, with the MIME type text/css, to the static resources in the BBjAppServer. This is equivalent to calling addStaticResource(styleSheetFileName, "text/css").
Syntax
Return Value |
Method |
---|---|
addStyleSheet(string styleSheetFileName) |
Parameters
Variable |
Description |
---|---|
styleSheetFileName |
The fully-qualified name of a text CSS file. |
Return Value
Returns a BBjResourceUrl corresponding to the contents of the file at the time this method was invoked.
Remarks
None.
Example
rem ' BBjAppServer::addStyleSheet admin! = bbjapi().getAdmin("admin","admin123") appServer! = admin!.getWebAppServer() basis$ = System.getProperty("basis.BBjHome") filename$ = basis$ + "/perfanalyzer/_prof_icon.png" resource! = appServer!.addApplicationIcon(filename$) |
See Also
BBjAppServer::addStaticResource
BBjAppServer::removeStaticResource
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.