|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Object javax.swing.text.AbstractDocument.AbstractElement
public abstract class AbstractDocument.AbstractElement
¿ä¼ÒÀÇ Ãß»ó ºÎºÐÀ» ±¸ÇöÇÕ´Ï´Ù. µðÆúÆ®¿¡¼´Â ¿ä¼ÒÀÇ ÇöÀçÀÇ ¼Ó¼º ¼¼Æ®¿¡ ´ëÇØ ºÒº¯ ºÎºÐÀ» ³ªÅ¸³»´Â Çʵ带 º¸°ü À¯ÁöÇÏ´Â °ÍÀ¸·Î ¿ä¼Ò´Â ¼Ó¼ºÀ» Áö¿ø ÇÏ°í ÀÖ½À´Ï´Ù. ¿ä¼Ò ÀÚ½ÅÀº MutableAttributeSet¸¦ ±¸ÇöÇÕ´Ï´Ù. MutableAttributeSet¸¦ »ç¿ëÇϸé, »õ·Î¿î ºÒº¯ ¼¼Æ®¸¦ ²¨³» ¼¼Æ®¸¦ º¯°æÇÒ ¼ö ÀÖ½À´Ï´Ù. ºÒº¯ ¼¼Æ®´Â ¹®¼¿¡ °ü·ÃµÈ AttributeContext¿¡ ÀÇÇØ Á¦°øµË´Ï´Ù.
°æ°í: ÀÌ Å¬·¡½ºÀÇ Á÷·ÄÈ µÈ °´Ã¼´Â ÇâÈÄÀÇ Swing ¸±¸®Áî¿Í
ȣȯµÇÁö ¾ÊÀ» ¿¹Á¤ÀÔ´Ï´Ù. ÇöÀçÀÇ Á÷·ÄÈÀÇ Áö¿øÀº
´Ü±â°£ÀÇ ¿î¿ëÀ̳ª, °°Àº ¹öÀüÀÇ Swing¸¦ ½ÇÇàÇÏ´Â ¾îÇø®ÄÉÀ̼ǰ£ÀÇ RMI¿¡ ÀûÀýÇÏ°í ÀÖ½À´Ï´Ù. JDK ¹öÀü
1.4 ÀÌÈÄ, ¸ðµç JavaBeans™
Àå±â°£ÀÇ ¿î¿ë Áö¿øÀº
java.beans
ÆÐÅ°Áö¿¡ Ãß°¡µÇ°í ÀÖ½À´Ï´Ù. ÀÚ¼¼ÇÑ ³»¿ëÀº XMLEncoder
¸¦
ÂüÁ¶ÇϽʽÿÀ.
Áßø(Nested) Ŭ·¡½º °³¿ä |
---|
ÀÎÅÍÆäÀ̽º javax.swing.text. AttributeSet ·ÎºÎÅÍ »ó¼ÓµÈ Áßø(Nested) Ŭ·¡½º/ÀÎÅÍÆäÀ̽º |
---|
AttributeSet.CharacterAttribute,
AttributeSet.ColorAttribute,
AttributeSet.FontAttribute,
AttributeSet.ParagraphAttribute |
ÇÊµå °³¿ä |
---|
ÀÎÅÍÆäÀ̽º javax.swing.text. AttributeSet ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå |
---|
NameAttribute,
ResolveAttribute |
»ý¼ºÀÚ °³¿ä | |
---|---|
AbstractDocument.AbstractElement (Element parent,
AttributeSet a)
»õ·Î¿î AbstractElement¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
¸Þ¼µå °³¿ä | |
---|---|
void |
addAttribute (Object name,
Object value)
¿ä¼Ò¿¡ ¼Ó¼ºÀ» Ãß°¡ÇÕ´Ï´Ù. |
void |
addAttributes (AttributeSet attr)
¼Ó¼º ¼¼Æ®¸¦ ¿ä¼Ò¿¡ Ãß°¡ÇÕ´Ï´Ù. |
abstract Enumeration |
children ()
¸®½Ã¹öÀÇ ÀÚ½ÄÀ» Enumeration ·Î
¸®ÅÏÇÕ´Ï´Ù. |
boolean |
containsAttribute (Object name,
Object value)
¼Ó¼ºÀÇ À̸§°ú °ªÀÌ Á¤ÀÇ°¡ ³¡³ »óÅÂÀÏÁö ¾î¶³Áö¸¦ ÆÇÁ¤ÇÕ´Ï´Ù. |
boolean |
containsAttributes (AttributeSet attrs)
¿ä¼Ò¿¡ ¸ðµç ¼Ó¼ºÀÌ Æ÷ÇԵǾî ÀÖ´ÂÁö¸¦ ÆÇÁ¤ÇÕ´Ï´Ù. |
AttributeSet |
copyAttributes ()
¼Ó¼º ¼¼Æ®¸¦ Ä«ÇÇÇÕ´Ï´Ù. |
void |
dump (PrintStream psOut,
int indentAmount)
¿ä¼Ò °èÃþÀÇ µð¹ö±× Ç¥ÇöÀ» ´ýÇÁ ÇÕ´Ï´Ù. |
abstract boolean |
getAllowsChildren ()
¸®½Ã¹ö°¡ ÀÚ½ÄÀ» Çã°¡ÇÏ´Â °æ¿ì´Â true¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
Object |
getAttribute (Object attrName)
¼Ó¼ºÀÇ °ªÀ» ÃëµæÇÕ´Ï´Ù. |
int |
getAttributeCount ()
Á¤Àǵǰí ÀÖ´Â ¼Ó¼ºÀÇ °³¼ö¸¦ ÃëµæÇÕ´Ï´Ù. |
Enumeration <? > |
getAttributeNames ()
¸ðµç ¼Ó¼ºÀÇ À̸§À» ÃëµæÇÕ´Ï´Ù. |
AttributeSet |
getAttributes ()
¿ä¼ÒÀÇ ¼Ó¼ºÀ» ÃëµæÇÕ´Ï´Ù. |
TreeNode |
getChildAt (int childIndex)
À妽º childIndex ¿¡ ÀÖ´ÂÀÚ½Ä
TreeNode ¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
int |
getChildCount ()
TreeNode
¸®½Ã¹ö°¡ Æ÷ÇÔÇÏ´ÂÀÚ½Ä
ÀÇ ¼ö¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
Document |
getDocument ()
±â¹ÝÀÌ µÇ´Â ¸ðµ¨À» ÃëµæÇÕ´Ï´Ù. |
abstract Element |
getElement (int index)
¾ÆÀÌ ¿ä¼Ò¸¦ ÃëµæÇÕ´Ï´Ù. |
abstract int |
getElementCount ()
¿ä¼ÒÀÇ ÀÚ½Ä ÀÇ ¼ö¸¦ ÃëµæÇÕ´Ï´Ù. |
abstract int |
getElementIndex (int offset)
ÁöÁ¤µÈ ¸ðµ¨ ¿ÀÇÁ¼Â(offset)¿¡ °¡Àå °¡±î¿îÀÚ½Ä ¿ä¼Ò À妽º¸¦ ÃëµæÇÕ´Ï´Ù. |
abstract int |
getEndOffset ()
¿ä¼ÒÀÇ ¸ðµ¨³»¿¡¼ÀÇ Á¾·á ¿ÀÇÁ¼Â(offset)¸¦ ÃëµæÇÕ´Ï´Ù. |
int |
getIndex (TreeNode node)
¸®½Ã¹öÀÇÀÚ½Ä Áß¿¡¼ node
À妽º¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
String |
getName ()
¿ä¼ÒÀÇ À̸§À» ÃëµæÇÕ´Ï´Ù. |
TreeNode |
getParent ()
¸®½Ã¹öÀÇ Ä£ TreeNode ¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
Element |
getParentElement ()
¿ä¼ÒÀÇ ºÎ¸ð¸¦ ÃëµæÇÕ´Ï´Ù. |
AttributeSet |
getResolveParent ()
Çؼ® ó¸®ÃøÀÇ ºÎ¸ð¸¦ ÃëµæÇÕ´Ï´Ù. |
abstract int |
getStartOffset ()
¿ä¼ÒÀÇ ¸ðµ¨³»¿¡¼ÀÇ °³½Ã ¿ÀÇÁ¼Â(offset)¸¦ ÃëµæÇÕ´Ï´Ù. |
boolean |
isDefined (Object attrName)
ÁöÁ¤µÈ ¼Ó¼ºÀÌ Á¤ÀÇ°¡ ³¡³ »óÅÂÀÏÁö ¾î¶³Áö¸¦ ÆÇÁ¤ÇÕ´Ï´Ù. |
boolean |
isEqual (AttributeSet attr)
2°³ÀÇ ¼Ó¼º ¼¼Æ®°¡ µ¿ÀÏÇÑÁö ¾î¶²Áö¸¦ ÆÇÁ¤ÇÕ´Ï´Ù. |
abstract boolean |
isLeaf ()
¿ä¼Ò°¡ ÀÙÀΰ¡ ¾î¶²°¡¸¦ Á¶»çÇÕ´Ï´Ù. |
void |
removeAttribute (Object name)
¼¼Æ®·ÎºÎÅÍ ¼Ó¼ºÀ» »èÁ¦ÇÕ´Ï´Ù. |
void |
removeAttributes (AttributeSet attrs)
¿ä¼ÒÀÇ ¼Ó¼º ¼¼Æ®¸¦ »èÁ¦ÇÕ´Ï´Ù. |
void |
removeAttributes (Enumeration <? > names)
¿ä¼ÒÀÇ ¼Ó¼º ¼¼Æ®¸¦ »èÁ¦ÇÕ´Ï´Ù. |
void |
setResolveParent (AttributeSet parent)
Çؼ® ó¸®ÃøÀÇ ºÎ¸ð¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
»ý¼ºÀÚ »ó¼¼ |
---|
public AbstractDocument.AbstractElement(Element parent, AttributeSet a)
parent
- Ä£¿ä¼Òa
- ¿ä¼ÒÀÇ ¼Ó¼º¸Þ¼µåÀÇ »ó¼¼ |
---|
public void dump(PrintStream psOut, int indentAmount)
psOut
- Ãâ·Â ½ºÆ®¸²indentAmount
- Àε§Æ® ·¹º§ >= 0public int getAttributeCount()
AttributeSet
³»ÀÇ getAttributeCount
AttributeSet.getAttributeCount()
public boolean isDefined(Object attrName)
AttributeSet
³»ÀÇ isDefined
attrName
- null ÀÌ¿ÜÀÇ ¼Ó¼º¸í
AttributeSet.isDefined(java.lang.Object)
public boolean isEqual(AttributeSet attr)
AttributeSet
³»ÀÇ isEqual
attr
- ºñ±³ÀÇ ´ë»óÀÌ µÇ´Â ¼Ó¼º ¼¼Æ®
AttributeSet.isEqual(javax.swing.text.AttributeSet)
public AttributeSet copyAttributes()
AttributeSet
³»ÀÇ copyAttributes
AttributeSet.copyAttributes()
public Object getAttribute(Object attrName)
AttributeSet
³»ÀÇ getAttribute
attrName
- null ÀÌ¿ÜÀÇ ¼Ó¼º¸í
AttributeSet.getAttribute(java.lang.Object)
public Enumeration <? > getAttributeNames()
AttributeSet
³»ÀÇ getAttributeNames
AttributeSet.getAttributeNames()
public boolean containsAttribute(Object name, Object value)
AttributeSet
³»ÀÇ containsAttribute
name
- null ÀÌ¿ÜÀÇ ¼Ó¼º¸ívalue
- ¼Ó¼º°ª
AttributeSet.containsAttribute(java.lang.Object, java.lang.Object)
public boolean containsAttributes(AttributeSet attrs)
AttributeSet
³»ÀÇ containsAttributes
attrs
- üũ ´ë»óÀÇ ¼Ó¼º
AttributeSet.containsAttributes(javax.swing.text.AttributeSet)
public AttributeSet getResolveParent()
AttributeSet
³»ÀÇ getResolveParent
null
AttributeSet.getResolveParent()
public void addAttribute(Object name, Object value)
MutableAttributeSet
³»ÀÇ addAttribute
name
- null ÀÌ¿ÜÀÇ ¼Ó¼º¸ívalue
- ¼Ó¼º°ªMutableAttributeSet.addAttribute(java.lang.Object, java.lang.Object)
public void addAttributes(AttributeSet attr)
MutableAttributeSet
³»ÀÇ addAttributes
attr
- Ãß°¡ÇÏ´Â ¼Ó¼ºMutableAttributeSet.addAttribute(java.lang.Object, java.lang.Object)
public void removeAttribute(Object name)
MutableAttributeSet
³»ÀÇ removeAttribute
name
- null ÀÌ¿ÜÀÇ ¼Ó¼º¸íMutableAttributeSet.removeAttribute(java.lang.Object)
public void removeAttributes(Enumeration <? > names)
MutableAttributeSet
³»ÀÇ removeAttributes
names
- ¼Ó¼º¸íMutableAttributeSet.removeAttributes(java.util.Enumeration >)
public void removeAttributes(AttributeSet attrs)
MutableAttributeSet
³»ÀÇ removeAttributes
attrs
- ¼Ó¼ºMutableAttributeSet.removeAttributes(java.util.Enumeration >)
public void setResolveParent(AttributeSet parent)
MutableAttributeSet
³»ÀÇ setResolveParent
parent
- ºÎ¸ð. ¾ø´Â °æ¿ì´Â nullMutableAttributeSet.setResolveParent(javax.swing.text.AttributeSet)
public Document getDocument()
Element
³»ÀÇ getDocument
public Element getParentElement()
Element
³»ÀÇ getParentElement
public AttributeSet getAttributes()
Element
³»ÀÇ getAttributes
public String getName()
Element
³»ÀÇ getName
public abstract int getStartOffset()
Element
³»ÀÇ getStartOffset
Document
,
AbstractDocument
public abstract int getEndOffset()
Element
³»ÀÇ getEndOffset
Document
,
AbstractDocument
public abstract Element getElement(int index)
Element
³»ÀÇ getElement
index
- ÀÚÀÇ À妽º >= 0 && < getElementCount()
public abstract int getElementCount()
Element
³»ÀÇ getElementCount
public abstract int getElementIndex(int offset)
Element
³»ÀÇ getElementIndex
offset
- ¿ÀÇÁ¼Â(offset) >= 0
public abstract boolean isLeaf()
Element
³»ÀÇ isLeaf
TreeNode
³»ÀÇ isLeaf
public TreeNode getChildAt(int childIndex)
childIndex
¿¡ ÀÖ´ÂÀÚ½Ä
TreeNode
¸¦ ¸®ÅÏÇÕ´Ï´Ù.
TreeNode
³»ÀÇ getChildAt
public int getChildCount()
TreeNode
¸®½Ã¹ö°¡ Æ÷ÇÔÇÏ´ÂÀÚ½Ä
ÀÇ ¼ö¸¦ ¸®ÅÏÇÕ´Ï´Ù.
TreeNode
³»ÀÇ getChildCount
TreeNode
¸®½Ã¹ö°¡ Æ÷ÇÔÇÏ´ÂÀÚ½Ä
ÀÇ ¼öpublic TreeNode getParent()
TreeNode
¸¦ ¸®ÅÏÇÕ´Ï´Ù.
TreeNode
³»ÀÇ getParent
TreeNode
public int getIndex(TreeNode node)
node
À妽º¸¦ ¸®ÅÏÇÕ´Ï´Ù. ¸®½Ã¹ö°¡ node
¸¦ Æ÷ÇÔÇÏÁö ¾Ê´Â °æ¿ì´Â -1 ÀÌ ¸®Åϵ˴ϴÙ
.
TreeNode
³»ÀÇ getIndex
node
- ´ë»óÀÇ À§Ä¡
node
À妽º. ¾ø´Â °æ¿ì´Â -1public abstract boolean getAllowsChildren()
TreeNode
³»ÀÇ getAllowsChildren
public abstract Enumeration children()
Enumeration
·Î
¸®ÅÏÇÕ´Ï´Ù.
TreeNode
³»ÀÇ children
Enumeration
)
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.