package org.argeo.cms.text;
import javax.jcr.Node;
-import javax.jcr.RepositoryException;
import org.argeo.cms.ui.util.CmsUiUtils;
import org.argeo.cms.ui.viewers.Section;
private String defaultTextStyle = TextStyles.TEXT_DEFAULT;
private String titleStyle;
- public TextSection(Composite parent, int style, Node node)
- throws RepositoryException {
+ public TextSection(Composite parent, int style, Node node) {
this(parent, findSection(parent), style, node);
}
- public TextSection(TextSection section, int style, Node node)
- throws RepositoryException {
+ public TextSection(TextSection section, int style, Node node) {
this(section, section.getParentSection(), style, node);
}
- private TextSection(Composite parent, Section parentSection, int style,
- Node node) throws RepositoryException {
+ private TextSection(Composite parent, Section parentSection, int style, Node node) {
super(parent, parentSection, style, node);
CmsUiUtils.style(this, TextStyles.TEXT_SECTION);
}
return titleStyle;
// TODO make base H styles configurable
Integer relativeDepth = getRelativeDepth();
- return relativeDepth == 0 ? TextStyles.TEXT_TITLE : TextStyles.TEXT_H
- + relativeDepth;
+ return relativeDepth == 0 ? TextStyles.TEXT_TITLE : TextStyles.TEXT_H + relativeDepth;
}
public void setDefaultTextStyle(String defaultTextStyle) {