|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjavax.swing.text.View
javax.swing.text.ComponentView
javax.swing.text.html.ObjectView
public class ObjectView
<object> ¿ä¼Ò¸¦ À§ÇÑ ºäÀΟÆä½º¸¦ ±¸ÇöÇÏ´Â ÄÄÆ÷³ÍÆ® µ¥ÄÚ·¹ÀÌÅÍ ÀÔ´Ï´Ù.
ÀÌ ºä´Â classid
¼Ó¼ºÀ¸·Î ÁöÁ¤µÈ Ŭ·¡½ºÀÇ ·Îµå¸¦ ½Ç½ÃÇÕ´Ï´Ù. °¡´ÉÇÑ °æ¿ì´Â °ü·ÃµÈ Document
·Îµå¿¡ »ç¿ëµÈ Classloader°¡ »ç¿ëµË´Ï´Ù. ÀϹÝÀûÀ¸·Î EditorKit
·Îµå¿¡ »ç¿ëÇÏ´Â ClassLoader¿Í
°°½À´Ï´Ù. ¹®¼ÀÇ ClassLoader°¡ nullÀÎ °æ¿ì´Â Class.forName
°¡ »ç¿ëµË´Ï´Ù.
Ŭ·¡½ºÀÇ ·Îµå¿¡ ¼º°øÇßÀ» °æ¿ì´Â Class.newInstance
¸¦ È£ÃâÇÏ´Â °ÍÀ¸·Î Ŭ·¡½ºÀÇ ÀνºÅϽº¸¦ »ý¼ºÇÕ´Ï´Ù. °´Ã¼¸¦ Ç¥½ÃÇϱâ À§Çؼ
±× ÀνºÅϽº¸¦ java.awt.Component
Çü¿¡ ³×·Î¿ì º¯È¯ÇÕ´Ï´Ù.
ÀÌ ºä´Â ÆÄ¶ó¹ÌÅͼ¼Æ®¸¦ Á¦ÇѺηΠ°ü¸®ÇÒ ¼öµµ ÀÖ½À´Ï´Ù. <object> ¿ä¼Ò·Î ÁöÁ¤ÇÏ´Â ÆÄ¶ó¹ÌÅÍ´Â °ü·ÃµÈ ¿ä¼ÒÀÇ ¼Ó¼º ¼¼Æ®¿¡µµ, ´Ü¼øÇÑ Ä³¸¯ÅÍ ¶óÀÎÀÇ ÇüÅ·ΠÁ¸ÀçÇÑ´Ù°í º¸¿©Áý´Ï´Ù. °¢°¢ÀÇ bean ÇÁ·ÎÆÛƼ´Â AttributeSet Ű·Î¼ Á¶È¸µÇ¾î ÀÌ ¶§, ÇÁ·ÎÆÛƼÀÇ ÆÄ¶ó¹ÌÅÍ ÁöÁ¤ÀÌ ÀÖÀ¸¸é, null ÀÌ¿ÜÀÇ (String ÇüÀÇ) °ªÀÌ ÀÖ´Ù°í º¸¿©Áý´Ï´Ù. ÆÄ¶ó¹ÌÅÍÀÇ ¼³Á¤¿¡´Â ¸®Ç÷º¼ÇÀÌ »ç¿ëµË´Ï´Ù. Çö½ÃÁ¡¿¡¼´Â À̰ÍÀº String ÇüÀÇ ´Ü¼øÇÑ ´ÜÀÏÀÇ ÆÄ¶ó¹ÌÅÍ·Î ÇÑÁ¤µÇ°í ÀÖ½À´Ï´Ù.
HTML È£ÃâÀÇ ´Ü¼øÇÑ ¿¹¸¦, ´ÙÀ½¿¡ ³ªÅ¸³À´Ï´Ù.
<object classid="javax.swing.JLabel"> <param name="text" value="sample text"> </object>
ÇÊµå °³¿ä |
---|
Ŭ·¡½º javax.swing.text. View ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå |
---|
BadBreakWeight,
ExcellentBreakWeight,
ForcedBreakWeight,
GoodBreakWeight,
X_AXIS,
Y_AXIS |
ÀÎÅÍÆäÀ̽º javax.swing. SwingConstants ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå |
---|
BOTTOM,
CENTER,
EAST,
HORIZONTAL,
LEADING,
LEFT,
NEXT,
NORTH,
NORTH_EAST,
NORTH_WEST,
PREVIOUS,
RIGHT,
SOUTH,
SOUTH_EAST,
SOUTH_WEST,
TOP,
TRAILING,
VERTICAL,
WEST |
»ý¼ºÀÚ °³¿ä | |
---|---|
ObjectView (Element elem)
»õ·Î¿î ObjectView °´Ã¼¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
¸Þ¼µå °³¿ä | |
---|---|
protected Component |
createComponent ()
ÄÄÆÛ³ÍÆ®¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
Ŭ·¡½º javax.swing.text. ComponentView ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
getAlignment,
getComponent,
getMaximumSpan,
getMinimumSpan,
getPreferredSpan,
modelToView,
paint,
setParent,
viewToModel |
Ŭ·¡½º javax.swing.text. View ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
append,
breakView,
changedUpdate,
createFragment,
forwardUpdate,
forwardUpdateToView,
getAttributes,
getBreakWeight,
getChildAllocation,
getContainer,
getDocument,
getElement,
getEndOffset,
getGraphics,
getNextVisualPositionFrom,
getParent,
getResizeWeight,
getStartOffset,
getToolTipText,
getView,
getViewCount,
getViewFactory,
getViewIndex,
getViewIndex,
insert,
insertUpdate,
isVisible,
modelToView,
modelToView,
preferenceChanged,
remove,
removeAll,
removeUpdate,
replace,
setSize,
updateChildren,
updateLayout,
viewToModel |
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
»ý¼ºÀÚ »ó¼¼ |
---|
public ObjectView(Element elem)
elem
- µ¥ÄÚ·¹ÀÌÆ® µÇ´Â ¿ä¼Ò¸Þ¼µåÀÇ »ó¼¼ |
---|
protected Component createComponent()
ComponentView
³»ÀÇ createComponent
|
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 µµ ÂüÁ¶ÇϽʽÿÀ.