Class CssStyleSheetHandle
java.lang.Object
org.eclipse.birt.report.model.api.ElementDetailHandle
org.eclipse.birt.report.model.api.css.CssStyleSheetHandle
Represents an include style sheet in the module. A style sheet is used for
the user to load an external ".css" style file in the module.
- See Also:
-
CssStyleSheet
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.eclipse.birt.report.model.css.CssStyleSheet
The translation message.Fields inherited from class org.eclipse.birt.report.model.api.ElementDetailHandle
elementHandle
-
Constructor Summary
ConstructorsConstructorDescriptionCssStyleSheetHandle
(ModuleHandle moduleHandle, org.eclipse.birt.report.model.css.CssStyleSheet styleSheet) Constructs a handle for an style sheet. -
Method Summary
Modifier and TypeMethodDescriptionGets a style handle with the given name in the style sheet.Gets container handle.Gets css file nameGets the message list for the parser errors.Gets the message list for the parser fatal errors.Gets the message list for the parser warnings.Returns an iterator over the styles of this style sheet.org.eclipse.birt.report.model.css.CssStyleSheet
Gets the style sheet.Returns all the unsupported style names.getWarnings
(String styleName) Gets the warning list of the given style.boolean
Methods inherited from class org.eclipse.birt.report.model.api.ElementDetailHandle
getDesign, getElement, getElementHandle, getModule
-
Field Details
-
styleSheet
protected org.eclipse.birt.report.model.css.CssStyleSheet styleSheetThe translation message.
-
-
Constructor Details
-
CssStyleSheetHandle
public CssStyleSheetHandle(ModuleHandle moduleHandle, org.eclipse.birt.report.model.css.CssStyleSheet styleSheet) Constructs a handle for an style sheet.- Parameters:
moduleHandle
- a handle to a modulestyleSheet
- the style sheet to be handled
-
-
Method Details
-
getStyleSheet
public org.eclipse.birt.report.model.css.CssStyleSheet getStyleSheet()Gets the style sheet.- Returns:
- the style sheet
-
getStyleIterator
Returns an iterator over the styles of this style sheet. Useful only for style sheet. Returns a list of all the styles that use this style sheet.- Returns:
- an iterator over the styles of this style sheet. Each item returned
by the iterator's
getNext( )
method is of typeSharedStyleHandle
.
-
findStyle
Gets a style handle with the given name in the style sheet.- Parameters:
name
- the name of the style to find- Returns:
- the style handle with the given name in the style sheet, otherwise
null
-
getUnsupportedStyles
Returns all the unsupported style names.- Returns:
- the list of the unsupported style name
-
getWarnings
Gets the warning list of the given style. Each one in the list is instance ofStyleSheetParserException
.- Parameters:
styleName
- the style name- Returns:
- the warning list of the given style, otherwise null
- See Also:
-
getParserErrors
Gets the message list for the parser errors.- Returns:
- the message list for the parser errors
-
getParserFatalErrors
Gets the message list for the parser fatal errors.- Returns:
- the message list for the parser fatal errors
-
getParserWarnings
Gets the message list for the parser warnings.- Returns:
- the message list for the parser warnings
-
getFileName
Gets css file name- Returns:
- css file name
-
getExternalCssURI
-
isUseExternalCss
public boolean isUseExternalCss() -
getContainerHandle
Gets container handle.- Returns:
-