本文整理了Java中javax.swing.text.html.StyleSheet.removeStyle()
方法的一些代码示例,展示了StyleSheet.removeStyle()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。StyleSheet.removeStyle()
方法的具体详情如下:
包路径:javax.swing.text.html.StyleSheet
类名称:StyleSheet
方法名:removeStyle
暂无
代码示例来源:origin: freeplane/freeplane
@Override
protected void cancel() {
super.cancel();
final StyleSheet styleSheet = htmlEditorPanel.getDocument().getStyleSheet();
styleSheet.removeStyle("p");
styleSheet.removeStyle("BODY");
getBase().getEditControl().cancel();
}
代码示例来源:origin: org.fudaa.framework.fudaa/fudaa-common
final String name = (String) rules.nextElement();
ss.removeStyle(name);
代码示例来源:origin: freeplane/freeplane
void setDefaultStyle(NodeModel node) {
final StyleSheet styleSheet = noteViewerComponent.getDocument().getStyleSheet();
styleSheet.removeStyle("body");
styleSheet.removeStyle("p");
// set default font for notes:
final ModeController modeController = Controller.getCurrentModeController();
String noteCssRule = getNoteCSSStyle(modeController, node, 1f, false);
String bodyRule = new StringBuilder( "body {").append(noteCssRule).append("}\n").toString();
styleSheet.addRule(bodyRule);
if (ResourceController.getResourceController().getBooleanProperty(
MNoteController.RESOURCES_USE_MARGIN_TOP_ZERO_FOR_NOTES)) {
/* this is used for paragraph spacing. I put it here, too, as
* the tooltip display uses the same spacing. But it is to be discussed.
* fc, 23.3.2009.
*/
String paragraphtRule = "p {margin-top:0;}\n";
styleSheet.addRule(paragraphtRule);
}
}
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-bu
ss.removeStyle(name);
代码示例来源:origin: RPTools/maptool
style.removeStyle(s);
代码示例来源:origin: freeplane/freeplane
@Override
protected void split() {
super.split();
final StyleSheet styleSheet = htmlEditorPanel.getDocument().getStyleSheet();
styleSheet.removeStyle("p");
styleSheet.removeStyle("body");
getBase().getEditControl().split(HtmlUtils.unescapeHTMLUnicodeEntity(htmlEditorPanel.getDocumentText()),
htmlEditorPanel.getCaretPosition());
}
代码示例来源:origin: freeplane/freeplane
@Override
protected void submit() {
super.submit();
htmlEditorPanel.getDocument().getStyleSheet().removeStyle("p");
htmlEditorPanel.getDocument().getStyleSheet().removeStyle("body");
if (htmlEditorPanel.needsSaving()) {
getBase().getEditControl().ok(HtmlUtils.unescapeHTMLUnicodeEntity(htmlEditorPanel.getDocumentText()));
}
else {
getBase().getEditControl().cancel();
}
}
代码示例来源:origin: freeplane/freeplane
final HTMLDocument document = (HTMLDocument) tip.getDocument();
final StyleSheet styleSheet = document.getStyleSheet();
styleSheet.removeStyle("p");
styleSheet.removeStyle("body");
styleSheet.addRule("p {margin-top:0;}\n");
代码示例来源:origin: freeplane/freeplane
styleSheet.removeStyle("p");
styleSheet.removeStyle("body");
styleSheet.addRule(ruleBuilder.toString());
final URL url = node.getMap().getURL();
内容来源于网络,如有侵权,请联系作者删除!