public abstract class AbstractThemeHandle extends ReportElementHandle implements org.eclipse.birt.report.model.elements.interfaces.IAbstractThemeModel
Theme
element
module
CSSES_PROP, DEFAULT_THEME_NAME, STYLES_SLOT
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 and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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)
|
getComments, getCustomXml, getDisplayName, getDisplayNameKey, getElement, getPropertyMask, isValidLayoutForCompoundElement, isValidReferenceForCompoundElement, propertyMaskIterator, setComments, setCustomXml, setDisplayName, setDisplayNameKey, setPropertyMask
add, add, addElement, addElement, addListener, addUserPropertyDefn, cachePropertyHandles, canContain, canContain, canContain, canContain, canDrop, canEdit, canTransformToTemplate, clearAllProperties, clearContents, clearProperty, clientsIterator, copy, copyPropertyTo, createTemplateElement, derivedIterator, doSort, drop, drop, drop, dropAndClear, dropAndClear, dropAndClear, dropUserPropertyDefn, findContentSlot, getBooleanProperty, getChoices, getColorProperty, getContainer, getContainerPropertyHandle, getContainerSlotHandle, getContent, getContentCount, getContents, getDefn, getDesign, getDesignHandle, getDimensionProperty, getDisplayLabel, getDisplayProperty, getEffectiveModule, getElementFactory, getElementProperty, getEventHandlerClass, getExpressionProperty, getExtends, getExternalizedValue, getExternalizedValue, getExternalizedValue, getFactoryElementHandle, getFactoryPropertyHandle, getFloatProperty, getFontProperty, getFullName, getHostViewHandle, getID, getIndex, getIntProperty, getListProperty, getListProperty, getMethods, getModule, getModuleHandle, getName, getNumberProperty, getPrivateStyle, getProperty, getPropertyBinding, getPropertyBindingExpression, getPropertyBindings, getPropertyDefn, getPropertyHandle, getPropertyIterator, getQualifiedName, getRoot, getSemanticErrors, getSlot, getStringProperty, getStyle, getUserProperties, getUserPropertyDefnHandle, getXPath, hasLocalProperties, hasSemanticError, initializeSlotHandles, isDirectionRTL, isInTemplateParameter, isTemplateParameterValue, isValid, localize, move, move, moveTo, moveTo, moveTo, moveTo, newHandlerOnEachEvent, paste, paste, paste, paste, removeListener, revertToReportItem, revertToTemplate, semanticCheck, setBooleanProperty, setEncryption, setEventHandlerClass, setExpressionProperty, setExtends, setExtendsElement, setExtendsName, setFloatProperty, setIntProperty, setName, setNewHandlerOnEachEvent, setNumberProperty, setProperties, setProperty, setPropertyBinding, setPropertyBinding, setStringProperty, setStyle, setStyleElement, setStyleName, setValid, shift, showError, slotsIterator
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 elementpublic final SlotHandle getStyles()
SlotHandle
public final java.util.List getAllStyles()
StyleHandle
public final StyleHandle findStyle(java.lang.String name)
name
- the style namepublic 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 levelpublic 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)
public boolean canAddCssStyleSheet(CssStyleSheetHandle sheetHandle)
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
Copyright © 2008 Actuate Corp. All rights reserved.