|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
java.lang.Object | +--javax.swing.text.AbstractDocument.AbstractElement
¿ä¼ÒÀÇ Ãß»ó ºÎºÐÀ» ±¸ÇöÇÕ´Ï´Ù. µðÆúÆ®¿¡¼´Â ¿ä¼ÒÀÇ ÇöÀçÀÇ ¼Ó¼º ¼¼Æ®¿¡ ´ëÇØ ºÒº¯ ºÎºÐÀ» ³ªÅ¸³»´Â Çʵ带 º¸°ü À¯ÁöÇÏ´Â °ÍÀ¸·Î, ¿ä¼Ò´Â ¼Ó¼ºÀ» ¼Æ÷Æ®Çϰí ÀÖ½À´Ï´Ù. ¿ä¼Ò ÀÚ½ÅÀº MutableAttributeSet ¸¦ ±¸ÇöÇÕ´Ï´Ù. MutableAttributeSet ¸¦ »ç¿ëÇϸé(ÀÚ), »õ·Î¿î ºÒº¯ ¼¼Æ®¸¦ ²¨³» ¼¼Æ®¸¦ º¯°æÇÒ ¼ö ÀÖ½À´Ï´Ù. ºÒº¯ ¼¼Æ®´Â ¹®¼¿¡ °ü·ÃÇÏ´Â AttributeContext ¿¡ ÀÇÇØ Á¦°øµË´Ï´Ù.
°æ°í:
ÀÌ Å¬·¡½ºÀÇ Á÷·ÄÈ µÈ ¿ÀºêÁ§Æ®´Â ÇâÈÄÀÇ Swing ÀÇ ¸±¸®½º¿Í´Â ȣȯ¼ºÀ» °¡ÁöÁö ¾Ê½À´Ï´Ù. ÇöÀçÀÇ Á÷·ÄÈ ¼Æ÷Æ®´Â ´Ü±â°£ÀÇ ¿î¿ëÀ̳ª, °°Àº ¹öÁ¯ÀÇ Swing ¸¦ ½ÇÇàÇÏ´Â ¾îÇø®ÄÉÀ̼ǰ£ÀÇ RMI ¿¡ ÀûÀýÇϰí ÀÖ½À´Ï´Ù. 1.4 ¿¡¼´Â ¸ðµç JavaBeansTM ÀÇ Àå±â ¿î¿ë ¼Æ÷Æ®°¡, java.beans
ÆÐŰÁö¿¡ Ãß°¡µÇ¾ú½À´Ï´Ù. XMLEncoder
¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä.
ÁßøµÈ Ŭ·¡½ºÀÇ °³¿ä |
Ŭ·¡½º javax.swing.text. AttributeSet À» »ó¼Ó¹ÞÀº ÁßøµÈ Ŭ·¡½º |
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)
¿ä¼Ò °èÃþÀÇ µð¹ö±× Ç¥ÇöÀ» ´ýÇÁ ÇÕ´Ï´Ù. |
protected void |
finalize ()
AbstractElement ¸¦ ÆÄÀ̳ª¶óÀÌÁî ÇÕ´Ï´Ù. |
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 , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
»ý¼ºÀÚÀÇ »ó¼¼ |
public AbstractDocument.AbstractElement(Element parent, AttributeSet a)
parent
- Ä£¿ä¼Òa
- ¿ä¼ÒÀÇ ¼Ó¼º¸Þ¼ÒµåÀÇ »ó¼¼ |
public void dump(PrintStream psOut, int indentAmount)
indentAmount
- Àε§Æ® ·¹º§ >= 0protected void finalize() throws Throwable
Object
³»ÀÇ finalize
Throwable
- ÀÌ ¸Þ¼Òµå·Î »ý±ä Exception
public 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
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 Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
Java, Java 2 D, ¹× JDBC ´Â ¹Ì±¹ ¹× ±× ¿ÜÀÇ ³ª¶ó¿¡ ÀÖ¾î¼ÀÇ ¹Ì±¹ Sun Microsystems, Inc. ÀÇ »óÇ¥ ȤÀº µî·Ï»óÇ¥ÀÔ´Ï´Ù.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.