|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.birt.report.model.api.DesignElementHandle
org.eclipse.birt.report.model.api.ReportElementHandle
org.eclipse.birt.report.model.api.AbstractThemeHandle
public abstract class AbstractThemeHandle
Represents a abstract theme in the library. Each theme contains some number of styles. It can be a normal theme or a report item theme.
Theme
Field Summary |
---|
Fields inherited from class org.eclipse.birt.report.model.api.ReportElementHandle |
---|
element |
Fields inherited from class org.eclipse.birt.report.model.api.DesignElementHandle |
---|
module |
Fields inherited from interface org.eclipse.birt.report.model.elements.interfaces.IAbstractThemeModel |
---|
CSSES_PROP, DEFAULT_THEME_NAME, STYLES_SLOT |
Fields inherited from interface org.eclipse.birt.report.model.elements.interfaces.IDesignElementModel |
---|
COMMENTS_PROP, CUSTOM_XML_PROP, DISPLAY_NAME_ID_PROP, DISPLAY_NAME_PROP, EVENT_HANDLER_CLASS_PROP, EXTENDS_PROP, FULL_LABEL, ID_SUFFIX, NAME_PROP, NEW_HANDLER_ON_EACH_EVENT_PROP, NO_SLOT, PROPERTY_MASKS_PROP, REF_TEMPLATE_PARAMETER_PROP, SHORT_LABEL, USER_LABEL, USER_PROPERTIES_PROP, VIEW_ACTION_PROP |
Constructor Summary | |
---|---|
AbstractThemeHandle(org.eclipse.birt.report.model.core.Module module,
org.eclipse.birt.report.model.core.DesignElement element)
Constructs the handle for a theme with the given design and element. |
Method Summary | |
---|---|
void |
addCss(CssStyleSheetHandle sheetHandle)
(non-Javadoc) |
void |
addCss(IncludedCssStyleSheet cssStruct)
(non-Javadoc) |
void |
addCss(java.lang.String fileName)
Deprecated. |
void |
addCssByProerties(java.lang.String fileName,
java.lang.String externalCssURI,
boolean isUseExternalCss)
|
boolean |
canAddCssStyleSheet(CssStyleSheetHandle sheetHandle)
(non-Javadoc) |
boolean |
canAddCssStyleSheet(java.lang.String fileName)
Deprecated. |
boolean |
canAddCssStyleSheetByProperties(java.lang.String fileName,
java.lang.String externalCssURI,
boolean useExternalCss)
(non-Javadoc) |
boolean |
canDropCssStyleSheet(CssStyleSheetHandle sheetHandle)
(non-Javadoc) |
boolean |
canRenameCss(IncludedCssStyleSheetHandle handle,
java.lang.String newFileName)
Deprecated. |
boolean |
canRenameCssByProperties(IncludedCssStyleSheetHandle handle,
java.lang.String newFileName,
java.lang.String externalCssURI,
boolean useExternalCss)
|
void |
dropCss(CssStyleSheetHandle sheetHandle)
(non-Javadoc) |
CssStyleSheetHandle |
findCssStyleSheetHandleByName(java.lang.String fileName)
Deprecated. |
CssStyleSheetHandle |
findCssStyleSheetHandleByProperties(java.lang.String fileName,
java.lang.String externalCssURI,
boolean useExternalCss)
(non-Javadoc) |
IncludedCssStyleSheetHandle |
findIncludedCssStyleSheetHandleByName(java.lang.String fileName)
Deprecated. |
IncludedCssStyleSheetHandle |
findIncludedCssStyleSheetHandleByProperties(java.lang.String fileName,
java.lang.String externalCssURI,
boolean useExternalCss)
(non-Javadoc) |
StyleHandle |
findStyle(java.lang.String name)
Returns the style with the given name. |
java.util.List |
getAllCssStyleSheets()
Gets all css styles sheet |
java.util.List |
getAllStyles()
Gets all styles in theme,include css file. |
java.lang.String |
getDisplayLabel(int level)
Returns the display label for this element. |
SlotHandle |
getStyles()
Returns the styles slot of row. |
java.util.Iterator |
includeCssesIterator()
Returns the iterator over all included css style sheets. |
void |
reloadCss(CssStyleSheetHandle sheetHandle)
|
void |
renameCss(IncludedCssStyleSheetHandle handle,
java.lang.String newFileName)
Deprecated. |
void |
renameCssByProperties(IncludedCssStyleSheetHandle handle,
java.lang.String newFileName,
java.lang.String externalCssURI,
boolean useExternalCss)
(non-Javadoc) |
Methods inherited from class org.eclipse.birt.report.model.api.ReportElementHandle |
---|
getComments, getCustomXml, getDisplayName, getDisplayNameKey, getElement, getPropertyMask, isValidLayoutForCompoundElement, isValidReferenceForCompoundElement, propertyMaskIterator, setComments, setCustomXml, setDisplayName, setDisplayNameKey, setPropertyMask |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractThemeHandle(org.eclipse.birt.report.model.core.Module module, org.eclipse.birt.report.model.core.DesignElement element)
module
- the moduleelement
- the model representation of the elementMethod Detail |
---|
public final SlotHandle getStyles()
SlotHandle
public final java.util.List getAllStyles()
StyleHandle
public final StyleHandle findStyle(java.lang.String name)
name
- the style name
public final java.lang.String getDisplayLabel(int level)
DesignElementHandle
The user can also decide at which detail level the display label should be returned. The level can be one of the following options:
getDisplayLabel
in class DesignElementHandle
level
- the display label detail level
public final java.util.Iterator includeCssesIterator()
IncludedCssStyleSheetHandle
public java.util.List getAllCssStyleSheets()
CssStyleSheetHandle
public void addCss(CssStyleSheetHandle sheetHandle) throws SemanticException
SemanticException
org.eclipse.birt.report.model.api.AbstractThemeHandle#addCss(org.eclipse
.birt.report.model.api.css.CssStyleSheetHandle)
public void addCss(IncludedCssStyleSheet cssStruct) throws SemanticException
SemanticException
org.eclipse.birt.report.model.api.AbstractThemeHandle#addCss(org.eclipse
.birt.report.model.api.elements.structures.IncludedCssStyleSheet)
public void addCss(java.lang.String fileName) throws SemanticException
SemanticException
org.eclipse.birt.report.model.api.AbstractThemeHandle#addCssByFileName(java.lang
.String)
public void addCssByProerties(java.lang.String fileName, java.lang.String externalCssURI, boolean isUseExternalCss) throws SemanticException
SemanticException
public void dropCss(CssStyleSheetHandle sheetHandle) throws SemanticException
SemanticException
org.eclipse.birt.report.model.api.AbstractThemeHandle#dropCss(org.eclipse
.birt.report.model.api.css.CssStyleSheetHandle)
public boolean canDropCssStyleSheet(CssStyleSheetHandle sheetHandle)
(org.eclipse.birt.report.model.api.css.CssStyleSheetHandle)
public boolean canAddCssStyleSheet(CssStyleSheetHandle sheetHandle)
(org.eclipse.birt.report.model.api.css.CssStyleSheetHandle)
public boolean canAddCssStyleSheet(java.lang.String fileName)
(java.lang.String)
public boolean canAddCssStyleSheetByProperties(java.lang.String fileName, java.lang.String externalCssURI, boolean useExternalCss)
(java.lang.String)
public void reloadCss(CssStyleSheetHandle sheetHandle) throws SemanticException
SemanticException
public CssStyleSheetHandle findCssStyleSheetHandleByName(java.lang.String fileName)
findCssStyleSheetHandleByName(java.lang.String)
public CssStyleSheetHandle findCssStyleSheetHandleByProperties(java.lang.String fileName, java.lang.String externalCssURI, boolean useExternalCss)
findCssStyleSheetHandleByProperties(java.lang.String, java.lang.String, java.lang.Boolean)
public IncludedCssStyleSheetHandle findIncludedCssStyleSheetHandleByName(java.lang.String fileName)
findIncludedCssStyleSheetHandleByName(java.lang.String)
public IncludedCssStyleSheetHandle findIncludedCssStyleSheetHandleByProperties(java.lang.String fileName, java.lang.String externalCssURI, boolean useExternalCss)
findIncludedCssStyleSheetHandleByProperties(java.lang.String, java.lang.String, java.lang.Boolean)
public void renameCss(IncludedCssStyleSheetHandle handle, java.lang.String newFileName) throws SemanticException
SemanticException
org.eclipse.birt.report.model.api.AbstractThemeHandle#renameCss(org.eclipse
.birt.report.model.api.IncludedCssStyleSheetHandle, java.lang.String)
public void renameCssByProperties(IncludedCssStyleSheetHandle handle, java.lang.String newFileName, java.lang.String externalCssURI, boolean useExternalCss) throws SemanticException
SemanticException
org.eclipse.birt.report.model.api.AbstractThemeHandle#renameCssByProperties(org.eclipse
.birt.report.model.api.IncludedCssStyleSheetHandle, java.lang.String, java.lang.String, java.lang.Boolean)
public boolean canRenameCss(IncludedCssStyleSheetHandle handle, java.lang.String newFileName) throws SemanticException
SemanticException
org.eclipse.birt.report.model.api.AbstractThemeHandle#canRenameCss(org
.eclipse.birt.report.model.api.IncludedCssStyleSheetHandle,
java.lang.String)
public boolean canRenameCssByProperties(IncludedCssStyleSheetHandle handle, java.lang.String newFileName, java.lang.String externalCssURI, boolean useExternalCss) throws SemanticException
handle
- newFileName
- externalCssURI
- useExternalCss
-
SemanticException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |