本文整理了Java中javax.swing.text.MutableAttributeSet.containsAttribute()
方法的一些代码示例,展示了MutableAttributeSet.containsAttribute()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MutableAttributeSet.containsAttribute()
方法的具体详情如下:
包路径:javax.swing.text.MutableAttributeSet
类名称:MutableAttributeSet
方法名:containsAttribute
暂无
代码示例来源:origin: violetumleditor/violetumleditor
public void handleStartTag(HTML.Tag tag, MutableAttributeSet attributes, int position)
{
if (!tag.equals(HTML.Tag.SCRIPT))
{
return;
}
if (!attributes.containsAttribute(HTML.getAttributeKey("id"), "content"))
{
return;
}
this.inHeader = true;
}
代码示例来源:origin: blurpy/kouchat
/**
* Checks if the smiley icon already exists in the attribute set.
*
* <p>That will be the case if there was an identical smiley added right
* before this. If a different smiley is added in between then the first
* is overwritten.</p>
*
* @param smileyAttr The attribute set for the inserted string.
* @param smiley The smiley containing the icon to check.
* @return If the icon was found.
*/
private boolean smileyIconRegistered(final MutableAttributeSet smileyAttr, final Smiley smiley) {
return smileyAttr.containsAttribute(StyleConstants.IconAttribute, smiley.getIcon());
}
代码示例来源:origin: org.netbeans.api/org-netbeans-modules-java-source-base
if (state == 11 || state == 21)
state++;
} else if (t == HTML.Tag.DIV && a.containsAttribute(HTML.Attribute.CLASS, "block")) { //NOI18N
if (state == 11 && signature != null && sb != null) {
setParamNames(signature, sb.toString().trim(), true);
内容来源于网络,如有侵权,请联系作者删除!