private void setDefaultCssAttributes(Element elem, ResourceKey defaultCssKey) { if (defaultCssKey != null) { elem.setAttribute("csskey", defaultCssKey.toString()); if (resourceRoot != null) { elem.setAttribute( "csskeyexists", resourceRoot.getFile(defaultCssKey.toString()) != null ? "true" : "false"); } } }
public void setDefaultLocalizationResource(ResourceKey value) { Element element = getAndEnsureElement(getAndEnsureRootElement(), DEFAULT_LOCALIZATION_RESOURCE_ELMENT_NAME); element.setText(value.toString()); }
public void setLocaleResolver(ResourceKey value) { Element element = getAndEnsureElement(getAndEnsureRootElement(), LOCALE_RESOLVER_ELEMENT_NAME); element.setText(value.toString()); }
public void setDeviceClassResolver(ResourceKey value) { Element element = getAndEnsureElement(getAndEnsureRootElement(), DEVICE_CLASS_RESOLVER_ELEMENT_NAME); element.setText(value.toString()); }
public void setPathToResources(ResourceKey value) { Element element = getAndEnsureElement(getAndEnsureRootElement(), PATH_TO_HOME_RESOURCES_ELEMENT_NAME); element.setText(value.toString()); }
public void setDefaultCssKey(ResourceKey resourceKey) { Element element = getAndEnsureElement(getAndEnsureRootElement(), DEFAULT_CSS_ELEMENT_NAME); element.setAttribute("key", resourceKey.toString()); }