public class Editor extends Object
Constructor and Description |
---|
Editor() |
Modifier and Type | Method and Description |
---|---|
static void |
activateSkin(String themeName,
String bankName,
String collectionName,
String resourceName,
boolean isBaseSkin) |
static String |
addPage(String path) |
static String |
addPreset(String themeName,
String presetName,
String category,
String value) |
static String |
addTheme(String name) |
static void |
alignElement(Element element,
String position) |
static void |
assignStyleProperty(Element element,
String propertyName,
String value) |
static void |
convertCssValueToPreset(String themeName,
String category,
String presetName,
String value) |
static void |
createFragmentPreview(String currentThemeName) |
static void |
createNamedStyle(Element element,
String styleName,
String themeName) |
static void |
createStyle(Element element) |
static void |
deactivateSkin(String themeName) |
static void |
deleteElement(Element element) |
static void |
deleteNamedStyle(Element element,
String styleName,
String themeName) |
static void |
deletePage(String pagePath) |
static void |
deletePreset(String themeName,
String presetName) |
static void |
deleteStyleView(Style style,
String viewName) |
static void |
deleteTheme(String src) |
static int |
duplicateElement(Element element) |
static void |
editPreset(String themeName,
String presetName,
String value) |
static List<String> |
getBankCollections(String bankName) |
static List<ImageInfo> |
getBankImages(String bankName) |
static List<SkinInfo> |
getBankSkins(String bankName) |
static List<StyleInfo> |
getBankStyles(String bankName) |
static String |
getCurrentBaseSkinName(String themeName) |
static Style |
getCurrentPageSkin(String themeName) |
static String |
getCurrentTopSkinName(String themeName) |
static List<FragmentType> |
getFragments(String templateEngine) |
static List<String> |
getHardcodedColors(String themeName) |
static List<String> |
getHardcodedImages(String themeName) |
static Style |
getNamedStyleOf(Element element) |
static List<Style> |
getNamedStyles(String themeName,
ResourceBank resourceBank) |
static Map<String,String> |
getPageStyles(String themeName) |
static SkinInfo |
getSkinInfo(String bankName,
String skinName) |
static Style |
getThemeSkin(String themeName) |
static List<ViewType> |
getViews(String fragmentTypeName,
String templateEngine) |
static void |
insertFragment(Element destElement,
String typeName,
String styleName) |
static void |
insertSectionAfter(Element element) |
static List<Style> |
listNamedStylesDirectlyInheritingFrom(Style style) |
static void |
loadTheme(String src) |
static void |
makeElementUseNamedStyle(Element element,
String styleName,
String themeName) |
static void |
moveElement(Element srcElement,
Element destElement,
int order) |
static void |
pasteElement(Element element,
String destId) |
static void |
removeStyleInheritance(String styleName,
String themeName) |
static void |
renamePreset(String themeName,
String oldName,
String newName) |
static String |
renderCssPreview(Element element,
Style style,
String viewName,
String basePath) |
static void |
repairTheme(String src) |
static void |
restoreNamedStyle(Style style,
String themeName) |
static void |
saveTheme(String themeName) |
static void |
saveToUndoBuffer(String themeName,
String message) |
static void |
setPageStyles(String themeName,
Map<String,String> propertyMap) |
static void |
setPresetCategory(String themeName,
String presetName,
String category) |
static void |
setStyleInheritance(String styleName,
String ancestorStyleName,
String themeName) |
static void |
splitElement(Element element) |
static String |
uncustomizeTheme(String src) |
static String |
undo(String themeName) |
static void |
updateElementDescription(Element element,
String description) |
static void |
updateElementLayout(Element element,
Map<String,String> propertyMap) |
static void |
updateElementProperties(Element element,
Map<String,String> propertyMap) |
static void |
updateElementStyle(Element element,
Style style,
String path,
String viewName,
Map<String,String> propertyMap) |
static void |
updateElementStyleCss(Element element,
Style style,
String viewName,
String cssSource) |
static void |
updateElementVisibility(Element element,
List<String> perspectives,
boolean alwaysVisible) |
static void |
updateElementWidget(Element element,
String viewName) |
static void |
updateElementWidth(Format layout,
String width) |
static void |
updateNamedStyleCss(Style style,
String cssSource,
String themeName) |
static void |
useNoResourceBank(String themeSrc) |
static void |
useResourceBank(String themeSrc,
String bankName) |
public static void updateElementWidget(Element element, String viewName) throws ThemeException
ThemeException
public static void updateElementLayout(Element element, Map<String,String> propertyMap) throws ThemeException
ThemeException
public static void updateElementVisibility(Element element, List<String> perspectives, boolean alwaysVisible) throws ThemeException
ThemeException
public static void updateElementStyle(Element element, Style style, String path, String viewName, Map<String,String> propertyMap) throws ThemeException
ThemeException
public static void setPageStyles(String themeName, Map<String,String> propertyMap) throws ThemeException
ThemeException
public static void splitElement(Element element) throws NodeException, ThemeException
NodeException
ThemeException
public static void updateElementStyleCss(Element element, Style style, String viewName, String cssSource) throws ThemeException
ThemeException
public static void updateNamedStyleCss(Style style, String cssSource, String themeName) throws ThemeException
ThemeException
public static void restoreNamedStyle(Style style, String themeName) throws ThemeException
ThemeException
public static void updateElementWidth(Format layout, String width) throws ThemeException
ThemeException
public static void updateElementProperties(Element element, Map<String,String> propertyMap) throws ThemeIOException, ThemeException
ThemeIOException
ThemeException
public static void updateElementDescription(Element element, String description) throws ThemeException
ThemeException
public static void repairTheme(String src) throws ThemeIOException, ThemeException
ThemeIOException
ThemeException
public static void deleteTheme(String src) throws ThemeIOException, ThemeException
ThemeIOException
ThemeException
public static void deletePage(String pagePath) throws ThemeIOException, ThemeException
ThemeIOException
ThemeException
public static void saveTheme(String themeName) throws ThemeException
ThemeException
public static String renderCssPreview(Element element, Style style, String viewName, String basePath)
public static void pasteElement(Element element, String destId) throws ThemeException, NodeException
ThemeException
NodeException
public static void moveElement(Element srcElement, Element destElement, int order) throws ThemeException, NodeException
ThemeException
NodeException
public static void makeElementUseNamedStyle(Element element, String styleName, String themeName) throws ThemeException
ThemeException
public static void removeStyleInheritance(String styleName, String themeName) throws ThemeException
ThemeException
public static void setStyleInheritance(String styleName, String ancestorStyleName, String themeName) throws ThemeException
ThemeException
public static String addPage(String path) throws ThemeException, NodeException, ThemeIOException
public static String addTheme(String name) throws ThemeException
ThemeException
public static String uncustomizeTheme(String src) throws ThemeException
ThemeException
public static void assignStyleProperty(Element element, String propertyName, String value) throws ThemeException
ThemeException
public static void alignElement(Element element, String position) throws ThemeException
ThemeException
public static void deleteElement(Element element) throws ThemeException, NodeException
ThemeException
NodeException
public static int duplicateElement(Element element) throws ThemeException, NodeException
ThemeException
NodeException
public static void createStyle(Element element) throws ThemeException
ThemeException
public static void createNamedStyle(Element element, String styleName, String themeName) throws ThemeException
ThemeException
public static Style getNamedStyleOf(Element element) throws ThemeException
ThemeException
public static void deleteNamedStyle(Element element, String styleName, String themeName) throws ThemeException
ThemeException
public static void deleteStyleView(Style style, String viewName) throws ThemeException
ThemeException
public static String addPreset(String themeName, String presetName, String category, String value) throws ThemeException
ThemeException
public static void editPreset(String themeName, String presetName, String value) throws ThemeException
ThemeException
public static void setPresetCategory(String themeName, String presetName, String category) throws ThemeException
ThemeException
public static void renamePreset(String themeName, String oldName, String newName) throws ThemeException
ThemeException
public static void deletePreset(String themeName, String presetName) throws ThemeException
ThemeException
public static void convertCssValueToPreset(String themeName, String category, String presetName, String value) throws ThemeException
ThemeException
public static void loadTheme(String src) throws ThemeIOException, ThemeException
ThemeIOException
ThemeException
public static void insertFragment(Element destElement, String typeName, String styleName) throws NodeException, ThemeException
NodeException
ThemeException
public static void insertSectionAfter(Element element) throws NodeException, ThemeException
NodeException
ThemeException
public static void saveToUndoBuffer(String themeName, String message) throws ThemeException
ThemeException
public static String undo(String themeName) throws ThemeException
ThemeException
public static void createFragmentPreview(String currentThemeName)
public static void activateSkin(String themeName, String bankName, String collectionName, String resourceName, boolean isBaseSkin) throws ThemeException
ThemeException
public static void deactivateSkin(String themeName) throws ThemeException
ThemeException
public static void useResourceBank(String themeSrc, String bankName) throws ThemeException
ThemeException
public static void useNoResourceBank(String themeSrc) throws ThemeException
ThemeException
public static List<Style> getNamedStyles(String themeName, ResourceBank resourceBank)
public static List<Style> listNamedStylesDirectlyInheritingFrom(Style style)
public static List<FragmentType> getFragments(String templateEngine)
Copyright © 2013 Nuxeo SA. All Rights Reserved.