public interface MutableAttributeSet extends AttributeSet
AttributeSet.CharacterAttribute, AttributeSet.ColorAttribute, AttributeSet.FontAttribute, AttributeSet.ParagraphAttributeNameAttribute, ResolveAttribute| 修飾子と型 | メソッド | 説明 |
|---|---|---|
void |
addAttribute(Object name, Object value) |
指定された名前と値を持つ属性を保持することを除いて、これと同じ新しい属性セットを作成します。
|
void |
addAttributes(AttributeSet attributes) |
指定された属性と値を持つことを除いて、これと同じ新しい属性セットを作成します。
|
void |
removeAttribute(Object name) |
指定した
nameを持つ属性を削除します。 |
void |
removeAttributes(AttributeSet attributes) |
指定した
nameを持つ属性セットを削除します。 |
void |
removeAttributes(Enumeration<?> names) |
指定した
namesを持つ属性セットを削除します。 |
void |
setResolveParent(AttributeSet parent) |
解釈処理側の親を設定します。
|
containsAttribute, containsAttributes, copyAttributes, getAttribute, getAttributeCount, getAttributeNames, getResolveParent, isDefined, isEqualvoid addAttribute(Object name, Object value)
name - 名前value - 値void addAttributes(AttributeSet attributes)
attributes - 属性セットvoid removeAttribute(Object name)
nameを持つ属性を削除します。name - 属性名void removeAttributes(Enumeration<?> names)
namesを持つ属性セットを削除します。names - 名前のセットvoid removeAttributes(AttributeSet attributes)
nameを持つ属性セットを削除します。attributes - 属性セットvoid setResolveParent(AttributeSet parent)
parent - 親 バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。