|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JTree
°èÃþ µ¥ÀÌÅͼ¼Æ®¸¦ ¾Æ¿ìÆ®¶óÀÎÀ¸·Î Ç¥½ÃÇÏ´Â ÄÁÆ®·ÑÀÔ´Ï´Ù. ŽºÅ© ÁöÇâÀÇ ¸Þ´º¾ó ¹× Æ®¸®ÀÇ »ç¿ë¿¹¿¡ ´ëÇØ¼´Â ¡¸The Java Tutorial¡¹ÀÇ¡¸How to Use Trees¡¹¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä.
Æ®¸®ÀÇ Æ¯Á¤ÀÇ ³ëµå´Â ³ëµå ¹× ¸ðµç »óÀ§ ³ëµå¸¦ ĸ½¶ÈÇÏ´Â ¿ÀºêÁ§Æ®ÀÎ TreePath
, ¶Ç´Â Ç¥½Ã areaÀÇ °¢ ÇàÀÌ 1 °³ÀÇ ³ëµå¸¦ Ç¥½ÃÇϴ ǥ½ÃÇà¿¡ ÀÇÇØ ½Äº°µË´Ï´Ù. ¡¸Àü°³µÇ¾ú´Ù¡¹³ëµå´Â ±× ¾ÆÀ̸¦ Ç¥½ÃÇÕ´Ï´Ù. ¡¸¼ö³³µÇ¾ú´Ù¡¹³ëµå´Â ¾ÆÀ̸¦ ¼û±é´Ï´Ù. ¡¸¼û°ÜÁ³´Ù¡¹³ëµå´Â ¼ö³³µÈ ºÎ¸ð¾Æ·¡¿¡ ÀÖ½À´Ï´Ù. ¸ðµç ¡¸Ç¥½Ã °¡´É¡¹³ëµåÀÇ ºÎ¸ð´Â Àü°³µË´Ï´Ù¸¸ Ç¥½ÃµÇ´Â °æ¿ì·Î ¿©°ÜÁöÁö ¾Ê´Â °æ¿ì°¡ ÀÖ½À´Ï´Ù. ¡¸Ç¥½Ã¡¹³ëµå´Â Ç¥½Ã °¡´ÉÇϰí, Ç¥½Ã area¿¡ ÀÖ½À´Ï´Ù.
´ÙÀ½ÀÇ JTree
¸Þ¼Òµå´Â ¡¸visible¡¹¸¦ »ç¿ëÇØ ¡¸displayed¡¹¸¦ ³ªÅ¸³À´Ï´Ù.
isRootVisible()
setRootVisible()
scrollPathToVisible()
scrollRowToVisible()
getVisibleRowCount()
setVisibleRowCount()
JTree
ÀÇ ´ÙÀ½ÀÇ ¸Þ¼Òµå´Â ¡¸visible¡¹¸¦ »ç¿ëÇØ ¡¸viewable¡¹¸¦ ³ªÅ¸³À´Ï´Ù (Àü°³µÈ ºÎ¸ð¾Æ·¡).
isVisible()
makeVisible()
¾ðÁ¦ ¼±ÅÃÀÌ º¯°æµÇ¾ú´ÂÁö¸¦ ¾Ë°í ½ÍÀº °æ¿ì´Â TreeSelectionListener
ÀÎÅÍÆäÀ̽º¸¦ ±¸ÇöÇØ,addTreeSelectionListener
¸Þ¼Òµå¸¦ »ç¿ëÇØ ±× ÀνºÅϽº¸¦ Ãß°¡ÇÕ´Ï´Ù. valueChanged
´Â ¼±ÅÃÀÌ º¯°æµÇ¾úÀ» ¶§¿¡ ºÒ·Á °©´Ï´Ù. Áï, À¯Àú°¡ °°Àº ³ëµå¸¦ 2 ȸ Ŭ¸¯ÇßÀ» ¶§¿¡ valueChanged
´Â ÇÑ ¹ø¸¸ ºÒ·Á °©´Ï´Ù.
³ëµå°¡ ¼±Åõǰí ÀÖ¾ú´ÂÁö ¾î¶°Çß´ÂÁö¿¡ °ü°è¾øÀÌ, ´õºí Ŭ¸¯ À̺¥Æ® ¶Ç´Â À¯Àú°¡ ³ëµå¸¦ Ŭ¸¯ÇßÀ» ¶§¸¦ ¾Ë°í ½ÍÀº °æ¿ì´Â ´ÙÀ½°ú °°ÀÌ ÇÕ´Ï´Ù.
final JTree tree = ...; MouseListener ml = new MouseAdapter() { public void mousePressed(MouseEvent e) { int selRow = tree.getRowForLocation(e.getX(), e.getY()); TreePath selPath = tree.getPathForLocation(e.getX(), e.getY()); if(selRow ! = -1) { if(e.getClickCount() == 1) { mySingleClick(selRow, selPath); } else if(e.getClickCount() == 2) { myDoubleClick(selRow, selPath); } } } }; tree.addMouseListener(ml);ÁÖ: ÀÌ ¿¹´Â ÆÐ½º¿Í ÇàÀÇ ¾çÂÊ ¸ðµÎ¸¦ ÃëµæÇÕ´Ï´Ù¸¸, ÇÊ¿äÇÑ (ºÐ)Æí¸¸À» ÃëµæÇØ ÁÖ¼¼¿ä.
JTree
¸¦ »ç¿ëÇØ º¹ÇÕ ³ëµå (¿¹¸¦ µé¾î, ±×·¡ÇÈ ¾ÆÀÌÄÜ ¹× ÅØ½ºÆ®ÀÇ ¾çÂÊ ¸ðµÎ¸¦ °¡Áö´Â ³ëµå)¸¦ Ç¥½ÃÇÏ·Á¸é ,TreeCellRenderer
¸¦ ¼ºê Ŭ·¡½ºÈÇØ,setCellRenderer(javax.swing.tree.TreeCellRenderer)
¸¦ »ç¿ëÇØ Æ®¸®¿¡ ±×°ÍÀ» »ç¿ëÇÏ´Â °ÍÀ» Áö½ÃÇÕ´Ï´Ù. º¹ÇÕ ³ëµå¸¦ ÆíÁýÇÏ·Á¸é ,TreeCellEditor
¸¦ ¼ºê Ŭ·¡½ºÈÇØ,setCellEditor(javax.swing.tree.TreeCellEditor)
¸¦ »ç¿ëÇÕ´Ï´Ù.
¸ðµç JComponent
Ŭ·¡½º¿Í °°ÀÌ,InputMap
¿Í ActionMap
¸¦ »ç¿ëÇØ Action
¿ÀºêÁ§Æ®¿Í KeyStroke
¸¦ °ü·ÃÁö¾î ÁöÁ¤ÇÑ Á¶°ÇÀ¸·Î ¾×¼ÇÀ» ½ÇÇàÇÒ ¼ö ÀÖ½À´Ï´Ù.
Ç¥ÁØÀÇ Look & Feel (L&F) Ç¥ÇöÀ¸·Î ÀÌ ÄÄÆÛ³ÍÆ®°¡ »ç¿ëÇϴ Űº¸µåÀÇ Å°¿¡ ´ëÇØ¼´Â JTree
ÀÇ Å°ÀÇ ÇÒ´çÀ» ÂüÁ¶ÇØ ÁÖ¼¼¿ä.
°æ°í:
ÀÌ Å¬·¡½ºÀÇ Á÷·ÄÈ µÈ ¿ÀºêÁ§Æ®´Â ÇâÈÄÀÇ Swing ¸±¸®½º¿Í ȣȯÀº ¾Æ´Ï°Ô µÉ ¿¹Á¤ÀÔ´Ï´Ù. ÇöÀçÀÇ Á÷·ÄÈÀÇ ¼Æ÷Æ®´Â ´Ü±â°£ÀÇ ¿î¿ëÀ̳ª, °°Àº ¹öÁ¯ÀÇ Swing ¸¦ ½ÇÇàÇÏ´Â ¾îÇø®ÄÉÀ̼ǰ£ÀÇ RMI ¿¡ ÀûÀýÇϰí ÀÖ½À´Ï´Ù. JDK ¹öÁ¯ 1.4 ÀÌÈÄ´Â java.beans
ÆÐŰÁö¿¡ ¸ðµç JavaBeansTM ÀÇ Àå±â ±â¾ïÀÌ ¼Æ÷Æ®µË´Ï´Ù. XMLEncoder
¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä.
ÁßøµÈ Ŭ·¡½ºÀÇ °³¿ä | |
protected class |
JTree.AccessibleJTree
ÀÌ Å¬·¡½º´Â JTree Ŭ·¡½º¿ëÀÇ À¯Àú º¸Á¶ ±â´ÉÀÇ ¼Æ÷Æ®¸¦ ±¸ÇöÇϰí ÀÖ½À´Ï´Ù. |
static class |
JTree.DynamicUtilTreeNode
DynamicUtilTreeNode ´Â º¤ÅÍ, ÇØ½Ã Å×À̺í, ¹è¿, ¹× ij¸¯ÅÍ ¶óÀÎÀ» ·¦ ÇØ, Çʿ信 µû¶ó¼ ÀûÀýÇÑ ¾ÆÀÌ Æ®¸® ³ëµå¸¦ ÀÛ¼ºÇÒ ¼ö ÀÖ½À´Ï´Ù. |
protected static class |
JTree.EmptySelectionModel
EmptySelectionModel ´Â ¾î¶² ¼±Åõµ Çã°¡ÇÏÁö ¾Ê´Â TreeSelectionModel ÀÔ´Ï´Ù.
|
protected class |
JTree.TreeModelHandler
¸ðµ¨À» °¨½ÃÇØ, ³ëµå°¡ »èÁ¦ ¶Ç´Â º¯°æµÇ¾úÀ» °æ¿ì¿¡ °Å±â¿¡ ÀÀÇØ expandedState ¸¦ °»½ÅÇÕ´Ï´Ù. |
protected class |
JTree.TreeSelectionRedirector
JTree ¸¦ ¼Ò½º·Î¼ »õ·Î¿î TreeSelectionEvent ¸¦ »ý¼ºÇØ, ±×°ÍÀ» ¸ðµç ûÃëÀÚ¿¡°Ô Àü¼Û ÇÕ´Ï´Ù.
|
Ŭ·¡½º javax.swing. JComponent À» »ó¼Ó¹ÞÀº ÁßøµÈ Ŭ·¡½º |
|
Ŭ·¡½º java.awt. Container À» »ó¼Ó¹ÞÀº ÁßøµÈ Ŭ·¡½º |
|
Ŭ·¡½º java.awt. Component À» »ó¼Ó¹ÞÀº ÁßøµÈ Ŭ·¡½º |
Component.BltBufferStrategy , Component.FlipBufferStrategy |
ÇʵåÀÇ °³¿ä | |
static String |
ANCHOR_SELECTION_PATH_PROPERTY
¿¨Ä¿ ¼±Åà ÆÐ½ºÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù. |
static String |
CELL_EDITOR_PROPERTY
cellEditor ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù. |
static String |
CELL_RENDERER_PROPERTY
cellRenderer ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù. |
protected TreeCellEditor |
cellEditor
¿£Æ®¸®ÀÇ ¿¡µðÅÍÀÔ´Ï´Ù. |
protected TreeCellRenderer |
cellRenderer
³ëµå¸¦ Ç¥Çö Çϱâ À§Çؼ »ç¿ëµÇ´Â ¼¿ÀÔ´Ï´Ù. |
protected boolean |
editable
Æ®¸®¸¦ ÆíÁýÇÒ ¼ö ÀÖÀ»Áö ¾î¶³Áö¸¦ ³ªÅ¸³À´Ï´Ù. |
static String |
EDITABLE_PROPERTY
editable ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù. |
static String |
EXPANDS_SELECTED_PATHS_PROPERTY
¼±Åà ÆÐ½ºÀÇ ÇÁ·ÎÆÛƼ¸¦ Àü°³ÇÏ´Â ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù. |
static String |
INVOKES_STOP_CELL_EDITING_PROPERTY
messagesStopCellEditing ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù. |
protected boolean |
invokesStopCellEditing
true ÀÇ °æ¿ì, ¼±ÅÃÀÇ º¯°æ, Æ®¸®³»ÀÇ µ¥ÀÌÅÍÀÇ º¯°æ, ¶Ç´Â ´Ù¸¥ ¼ö´Ü¿¡ ÀÇÇØ ÆíÁýÀÌ Á¤ÁöµÇ¾úÀ» ¶§¿¡, stopCellEditing °¡ ºÒ·Á °¡ º¯°æÀÌ º¸Á¸µË´Ï´Ù. |
static String |
LARGE_MODEL_PROPERTY
largeModel ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù. |
protected boolean |
largeModel
ÀÌ Æ®¸®°¡ Å« ¸ðµ¨Àΰ¡ ¾î¶²°¡¸¦ ³ªÅ¸³À´Ï´Ù. |
static String |
LEAD_SELECTION_PATH_PROPERTY
leadSelectionPath ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù. |
static String |
ROOT_VISIBLE_PROPERTY
rootVisible ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù. |
protected boolean |
rootVisible
·çÆ® ³ëµå°¡ Ç¥½ÃµÇ°í ÀÖ´Â °æ¿ì´Â true, ±× ¾ÆÀ̰¡ ÃÖ»óÁ¤µµÀÇ °¡½Ã ³ëµåÀÎ °æ¿ì´Â false ÀÔ´Ï´Ù. |
static String |
ROW_HEIGHT_PROPERTY
rowHeight ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù. |
protected int |
rowHeight
°¢ Ç¥½ÃÇà¿¡ »ç¿ëÇÏ´Â ³ôÀÌÀÔ´Ï´Ù. |
static String |
SCROLLS_ON_EXPAND_PROPERTY
scrollsOnExpand ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù. |
protected boolean |
scrollsOnExpand
true ÀÇ °æ¿ì, ³ëµå°¡ Àü°³µÇ¸é(ÀÚ), ±× ¸ðµç ÇÏÀ§ ³ëµå°¡ °¡½Ã°¡ µÇµµ·Ï(µíÀÌ) ½ºÅ©·Ñ µË´Ï´Ù. |
static String |
SELECTION_MODEL_PROPERTY
selectionModel ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù. |
protected TreeSelectionModel |
selectionModel
ÀÌ Æ®¸®³»ÀÇ ¼±ÅÃµÈ ³ëµå¼¼Æ®¸¦ ¸ðµ¨ÈÇÕ´Ï´Ù. |
protected JTree.TreeSelectionRedirector |
selectionRedirector
»õ·Î¿î À̺¥Æ®¸¦ »ý¼ºÇØ, ±×°ÍÀ» selectionListeners ¿¡ °Ç³×ÁÝ´Ï´Ù. |
static String |
SHOWS_ROOT_HANDLES_PROPERTY
showsRootHandles ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù. |
protected boolean |
showsRootHandles
ÇÚµéÀÌ Æ®¸®ÀÇ ÃÖ»óÁ¤µµ ·¹º§¿¡ Ç¥½ÃµÇ°í ÀÖ´Â °æ¿ì´Â true ÀÔ´Ï´Ù. |
static String |
TOGGLE_CLICK_COUNT_PROPERTY
toggleClickCount ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù. |
protected int |
toggleClickCount
³ëµå¸¦ Àü°³Çϱâ À§Çؼ ÇÊ¿äÇÑ ¸¶¿ì½º Ŭ¸¯ÀÇ ¼öÀÔ´Ï´Ù. |
static String |
TREE_MODEL_PROPERTY
treeModel ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù. |
protected TreeModel |
treeModel
ÀÌ ¿ÀºêÁ§Æ®¿¡ ÀÇÇØ Ç¥½ÃµÇ´Â Æ®¸®¸¦ Á¤ÀÇÇÏ´Â ¸ðµ¨ÀÔ´Ï´Ù. |
protected TreeModelListener |
treeModelListener
expandedState ¸¦ °»½ÅÇÕ´Ï´Ù. |
static String |
VISIBLE_ROW_COUNT_PROPERTY
visibleRowCount ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù. |
protected int |
visibleRowCount
ÇÑ ¹ø¿¡ °¡½Ã·Î ÇÏ´Â Çà¼öÀÔ´Ï´Ù. |
Ŭ·¡½º javax.swing. JComponent ¿¡¼ »ó¼Ó¹ÞÀº Çʵå |
accessibleContext , listenerList , TOOL_TIP_TEXT_KEY , ui , UNDEFINED_CONDITION , WHEN_ANCESTOR_OF_FOCUSED_COMPONENT , WHEN_FOCUSED , WHEN_IN_FOCUSED_WINDOW |
Ŭ·¡½º java.awt. Component ¿¡¼ »ó¼Ó¹ÞÀº Çʵå |
BOTTOM_ALIGNMENT , CENTER_ALIGNMENT , LEFT_ALIGNMENT , RIGHT_ALIGNMENT , TOP_ALIGNMENT |
ÀÎÅÍÆäÀ̽º java.awt.image. ImageObserver ¿¡¼ »ó¼Ó¹ÞÀº Çʵå |
ABORT , ALLBITS , ERROR , FRAMEBITS , HEIGHT , PROPERTIES , SOMEBITS , WIDTH |
»ý¼ºÀÚÀÇ °³¿ä | |
JTree ()
»ùÇà ¸ðµ¨À» °¡Áö´Â JTree ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
|
JTree (Hashtable value)
Hashtable ·ÎºÎÅÍ »ý¼ºµÈ, ·çÆ®¸¦ Ç¥½ÃÇÏÁö ¾Ê´Â JTree ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
|
JTree (Object [] value)
ÁöÁ¤µÈ ¹è¿ÀÇ °¢ ¿ä¼Ò¸¦, Ç¥½ÃµÇ¾î ÀÖÁö ¾ÊÀº »õ·Î¿î ·çÆ® ³ëµåÀÇ ¾ÆÀ̷μ °¡Áö´Â JTree ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
|
JTree (TreeModel newModel)
·çÆ® ³ëµå¸¦ Ç¥½ÃÇÏ´Â JTree ÀÇ ÀνºÅϽº¸¦ µ¹·ÁÁÝ´Ï´Ù. |
|
JTree (TreeNode root)
ÁöÁ¤µÈ TreeNode ¸¦ ·çÆ®¿¡ °¡Áö´Â ·çÆ® ³ëµå¸¦ Ç¥½ÃÇÏ´Â JTree ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
|
JTree (TreeNode root,
boolean asksAllowsChildren)
·çÆ® ³ëµå¸¦ Ç¥½ÃÇØ, ³ëµå°¡ ÀÙ³ëµåÀΰ¡ ¾î¶²°¡¸¦ ÁöÁ¤µÈ ¹æ¹ýÀ¸·Î °áÁ¤ÇÏ´Â ÁöÁ¤µÈ TreeNode ¸¦ ·çÆ®·Î¼ °¡Áö´Â JTree ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
|
JTree (Vector value)
ÁöÁ¤µÈ Vector ÀÇ °¢ ¿ä¼Ò¸¦, Ç¥½ÃµÇ¾î ÀÖÁö ¾ÊÀº »õ·Î¿î ·çÆ® ³ëµåÀÇ ¾ÆÀ̷μ °¡Áö´Â JTree ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
¸Þ¼ÒµåÀÇ °³¿ä | |
void |
addSelectionInterval (int index0,
int index1)
index0 ·ÎºÎÅÍ index1 ±îÁöÀÇ ÆÐ½º¸¦ ¼±Åÿ¡ Ãß°¡ÇÕ´Ï´Ù. |
void |
addSelectionPath (TreePath path)
ÁöÁ¤µÈ TreePath ¿¡ ÀÇÇØ ½Äº°µÇ´Â ³ëµå¸¦ ÇöÀçÀÇ ¼±Åÿ¡ Ãß°¡ÇÕ´Ï´Ù. |
void |
addSelectionPaths (TreePath [] paths)
ÆÐ½ºÀÇ ¹è¿ÀÇ °¢ ÆÐ½º¸¦ ÇöÀçÀÇ ¼±Åÿ¡ Ãß°¡ÇÕ´Ï´Ù. |
void |
addSelectionRow (int row)
ÁöÁ¤µÈ Çà¿¡ ÀÖ´Â ÆÐ½º¸¦ ÇöÀçÀÇ ¼±Åÿ¡ Ãß°¡ÇÕ´Ï´Ù. |
void |
addSelectionRows (int[] rows)
ÁöÁ¤µÈ °¢ Çà¿¡ ÀÖ´Â ÆÐ½º¸¦ ÇöÀçÀÇ ¼±Åÿ¡ Ãß°¡ÇÕ´Ï´Ù. |
void |
addTreeExpansionListener (TreeExpansionListener tel)
TreeExpansion À̺¥Æ®ÀÇ Ã»ÃëÀÚ¸¦ Ãß°¡ÇÕ´Ï´Ù. |
void |
addTreeSelectionListener (TreeSelectionListener tsl)
TreeSelection À̺¥Æ®ÀÇ Ã»ÃëÀÚ¸¦ Ãß°¡ÇÕ´Ï´Ù. |
void |
addTreeWillExpandListener (TreeWillExpandListener tel)
TreeWillExpand À̺¥Æ®ÀÇ Ã»ÃëÀÚ¸¦ Ãß°¡ÇÕ´Ï´Ù. |
void |
cancelEditing ()
ÇöÀçÀÇ ÆíÁý ¼¼¼ÇÀ» Ãë¼ÒÇÕ´Ï´Ù. |
void |
clearSelection ()
¼±ÅÃÀ» Ŭ¸®¾î ÇÕ´Ï´Ù. |
protected void |
clearToggledPaths ()
±³Ã¼µÈ Æ®¸® ÆÐ½ºÀÇ Ä³½¬¸¦ Ŭ¸®¾î ÇÕ´Ï´Ù. |
void |
collapsePath (TreePath path)
ÁöÁ¤µÈ ÆÐ½º¿¡ ÀÇÇØ ½Äº°µÇ´Â ³ëµå°¡ ¼ö³³µÇ¾î Ç¥½Ã °¡´ÉÇÏ°Ô µÇµµ·Ï(µíÀÌ) ÇÕ´Ï´Ù. |
void |
collapseRow (int row)
ÁöÁ¤µÈ Çà¿¡ ÀÖ´Â ³ëµå°¡ ¼ö³³µÇ°í ÀÖ°Ô ÇÕ´Ï´Ù. |
String |
convertValueToText (Object value,
boolean selected,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus)
·»´õ¸µ¿¡ ÀÇÇØ ºÒ·Á °¡ ÁöÁ¤µÈ °ªÀ» ÅØ½ºÆ®·Î º¯È¯ÇÕ´Ï´Ù. |
protected static TreeModel |
createTreeModel (Object value)
ÁöÁ¤µÈ ¿ÀºêÁ§Æ®¸¦ ·¦ ÇÏ´Â TreeModel ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
protected TreeModelListener |
createTreeModelListener ()
TreeModelHandler ÀÇ ÀνºÅϽº¸¦ »ý¼ºÇØ µ¹·ÁÁÝ´Ï´Ù. |
void |
expandPath (TreePath path)
ÁöÁ¤µÈ ÆÐ½º¿¡ ÀÇÇØ ½Äº°µÇ´Â ³ëµå°¡ Àü°³µÇ¾î Ç¥½Ã °¡´ÉÇÏ°Ô µÇµµ·Ï(µíÀÌ) ÇÕ´Ï´Ù. |
void |
expandRow (int row)
ÁöÁ¤µÈ Çà¿¡ ÀÖ´Â ³ëµå°¡ Àü°³µÇ¾î Ç¥½Ã °¡´ÉÇÏ°Ô µÇµµ·Ï(µíÀÌ) ÇÕ´Ï´Ù. |
void |
fireTreeCollapsed (TreePath path)
ÀÌ À̺¥Æ® ŸÀÔÀÇ ÅëÁö¸¦ Àü´Þ ´ë»óÀ¸·Î ÇØ µî·ÏÇϰí Àִ ûÃëÀÚ ¸ðµÎ¿¡°Ô ÅëÁöÇÕ´Ï´Ù. |
void |
fireTreeExpanded (TreePath path)
ÀÌ À̺¥Æ® ŸÀÔÀÇ ÅëÁö¸¦ Àü´Þ ´ë»óÀ¸·Î ÇØ µî·ÏÇϰí Àִ ûÃëÀÚ ¸ðµÎ¿¡°Ô ÅëÁöÇÕ´Ï´Ù. |
void |
fireTreeWillCollapse (TreePath path)
ÀÌ À̺¥Æ® ŸÀÔÀÇ ÅëÁö¸¦ Àü´Þ ´ë»óÀ¸·Î ÇØ µî·ÏÇϰí Àִ ûÃëÀÚ ¸ðµÎ¿¡°Ô ÅëÁöÇÕ´Ï´Ù. |
void |
fireTreeWillExpand (TreePath path)
ÀÌ À̺¥Æ® ŸÀÔÀÇ ÅëÁö¸¦ Àü´Þ ´ë»óÀ¸·Î ÇØ µî·ÏÇϰí Àִ ûÃëÀÚ ¸ðµÎ¿¡°Ô ÅëÁöÇÕ´Ï´Ù. |
protected void |
fireValueChanged (TreeSelectionEvent e)
ÅëÁöÀÇ Àü´Þ ´ë»óÀ», ÁöÁ¤µÈ À̺¥Æ® ŸÀÔÀ¸·Î µî·ÏÇÑ ¸ðµç ûÃëÀÚ¿¡°Ô ÅëÁöÇÕ´Ï´Ù. |
AccessibleContext |
getAccessibleContext ()
ÀÌ JTree ¿¡ °ü·ÃÇÑ AccessibleContext ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
TreePath |
getAnchorSelectionPath ()
¿¨Ä¿¿Í ½Äº°µÈ ÆÐ½º¸¦ µ¹·ÁÁÝ´Ï´Ù. |
TreeCellEditor |
getCellEditor ()
Æ®¸®ÀÇ ¿£Æ®¸®¸¦ ÆíÁýÇϱâ À§Çؼ »ç¿ëµÇ´Â ¿¡µðÅ͸¦ µ¹·ÁÁÝ´Ï´Ù. |
TreeCellRenderer |
getCellRenderer ()
°¢ ¼¿À» Ç¥Çö Çϰí ÀÖ´Â ÇöÀçÀÇ TreeCellRenderer ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
TreePath |
getClosestPathForLocation (int x,
int y)
x, y ¿¡ °¡Àå °¡±î¿î ³ëµåÀÇ ÆÐ½º¸¦ µ¹·ÁÁÝ´Ï´Ù. |
int |
getClosestRowForLocation (int x,
int y)
x, y ¿¡ °¡Àå °¡±î¿î ³ëµåÀÇ ÇàÀ» µ¹·ÁÁÝ´Ï´Ù. |
protected static TreeModel |
getDefaultTreeModel ()
»ùÇà TreeModel ¸¦ »ý¼ºÇØ, ±×°ÍÀ» µ¹·ÁÁÝ´Ï´Ù. |
protected Enumeration |
getDescendantToggledPaths (TreePath parent)
parent ÀÇ ÇÏÀ§ ³ëµåÀ̸ç, Àü°³µÇ°í ÀÖ´Â TreePaths ÀÇ Enumeration ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
boolean |
getDragEnabled ()
dragEnabled ÇÁ·ÎÆÛƼÀÇ °ªÀ» µ¹·ÁÁØ´Ù |
TreePath |
getEditingPath ()
ÇöÀç ÆíÁýµÇ°í ÀÖ´Â ¿ä¼ÒÀÇ ÆÐ½º¸¦ µ¹·ÁÁÝ´Ï´Ù. |
Enumeration |
getExpandedDescendants (TreePath parent)
ÇöÀç Àü°³µÇ°í ÀÖ´Â ÆÐ½º parent ÀÇ ÇÏÀ§ ³ëµå·ÎºÎÅÍ ¿Ï¼ºµÇ´Â Enumeration ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
boolean |
getExpandsSelectedPaths ()
expandsSelectedPaths ÇÁ·ÎÆÛƼ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
boolean |
getInvokesStopCellEditing ()
ÆíÁýÀÌ ³¢¾îµé¾îÁ³À» ¶§¿¡ ¹«¾ùÀ» ÇÏ´ÂÁö¸¦ ³ªÅ¸³»´Â ÀεðÄÉÀÌÅÍ(indicator)¸¦ µ¹·ÁÁÝ´Ï´Ù. |
Object |
getLastSelectedPathComponent ()
ÇöÀçÀÇ ¼±ÅÃÀÇ ÃÖÃÊÀÇ ³ëµå¿¡ ÀÖ´Â ¸¶Áö¸· ÆÄ½ºÄÜÆ÷³ÙÆ®¸¦ µ¹·ÁÁÝ´Ï´Ù. |
TreePath |
getLeadSelectionPath ()
¸®µå¿Í ½Äº°µÈ ÆÐ½º¸¦ µ¹·ÁÁÝ´Ï´Ù. |
int |
getLeadSelectionRow ()
¸®µå ÆÐ½º¿¡ ´ëÀÀÇÏ´Â ÇàÀÇ À妽º¸¦ µ¹·ÁÁÝ´Ï´Ù. |
int |
getMaxSelectionRow ()
¼±Åõǰí ÀÖ´Â ¸¶Áö¸· ÇàÀ» µ¹·ÁÁÝ´Ï´Ù. |
int |
getMinSelectionRow ()
¼±Åõǰí ÀÖ´Â ÃÖÃÊÀÇ ÇàÀ» µ¹·ÁÁÝ´Ï´Ù. |
TreeModel |
getModel ()
µ¥ÀÌÅ͸¦ Á¦°øÇϰí ÀÖ´Â TreeModel ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
TreePath |
getNextMatch (String prefix,
int startingRow,
Position.Bias bias)
prefix ·Î ½ÃÀ۵Ǵ ´ÙÀ½ÀÇ Æ®¸® ¿ä¼Ò¿¡ÀÇ TreePath ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
protected TreePath [] |
getPathBetweenRows (int index0,
int index1)
index0 ·ÎºÎÅÍ index1 ±îÁöÀÇ ÆÐ½º¸¦ ³ªÅ¸³»´Â JTreePath ÀÇ ÀνºÅϽº¸¦ µ¹·ÁÁÝ´Ï´Ù. |
Rectangle |
getPathBounds (TreePath path)
ÁöÁ¤µÈ ³ëµå°¡ Ç¥Çö µÇ´Â Rectangle ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
TreePath |
getPathForLocation (int x,
int y)
ÁöÁ¤µÈ À§Ä¡¿¡ ÀÖ´Â ³ëµåÀÇ ÆÐ½º¸¦ µ¹·ÁÁÝ´Ï´Ù. |
TreePath |
getPathForRow (int row)
ÁöÁ¤µÈ ÇàÀÇ ÆÐ½º¸¦ µ¹·ÁÁÝ´Ï´Ù. |
Dimension |
getPreferredScrollableViewportSize ()
JTree ÀÇ ÀûÀýÇÑ Ç¥½Ã »çÀÌÁ µ¹·ÁÁÝ´Ï´Ù. |
Rectangle |
getRowBounds (int row)
ÁöÁ¤µÈ Çà¿¡ ÀÖ´Â ³ëµå°¡ Ç¥Çö µÇ´Â Rectangle ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
int |
getRowCount ()
ÇöÀç Ç¥½ÃµÇ°í ÀÖ´Â Çà¼ö¸¦ µ¹·ÁÁÝ´Ï´Ù. |
int |
getRowForLocation (int x,
int y)
ÁöÁ¤µÈ À§Ä¡¿¡ ÀÖ´Â ÇàÀ» µ¹·ÁÁÝ´Ï´Ù. |
int |
getRowForPath (TreePath path)
ÁöÁ¤µÈ ÆÐ½º¿¡ ÀÇÇØ ½Äº°µÇ´Â ³ëµå¸¦ Ç¥½ÃÇÏ´Â ÇàÀ» µ¹·ÁÁÝ´Ï´Ù. |
int |
getRowHeight ()
°¢ ÇàÀÇ ³ôÀ̸¦ µ¹·ÁÁÝ´Ï´Ù. |
int |
getScrollableBlockIncrement (Rectangle visibleRect,
int orientation,
int direction)
¡¸ºí·Ï¡¹ÁõºÐÄ¡ÀÇ ¾çÀ» µ¹·ÁÁÝ´Ï´Ù. |
boolean |
getScrollableTracksViewportHeight ()
Æ®¸®ÀÇ ÀûÀýÇÑ ³ôÀ̰¡ ºäÆ÷Æ®ÀÇ ³ôÀ̺¸´Ù ÀÛÁö ¾ÊÀº ÇÑ, false ¸¦ µ¹·ÁÁÖ¾î, ºäÆ÷Æ®ÀÇ ³ôÀ̰¡ Å×À̺íÀÇ ³ôÀ̸¦ °áÁ¤ÇÏÁö ¾Ê´Â °ÍÀ» ³ªÅ¸³À´Ï´Ù. |
boolean |
getScrollableTracksViewportWidth ()
Æ®¸®ÀÇ ÀûÀýÇÑ ÆøÀÌ ºäÆ÷Æ®ÀÇ Æøº¸´Ù ÀÛÁö ¾ÊÀº ÇÑ, false ¸¦ µ¹·ÁÁÖ¾î, ºäÆ÷Æ®ÀÇ ÆøÀÌ Å×À̺íÀÇ ÆøÀ» °áÁ¤ÇÏÁö ¾Ê´Â °ÍÀ» ³ªÅ¸³À´Ï´Ù. |
int |
getScrollableUnitIncrement (Rectangle visibleRect,
int orientation,
int direction)
½ºÅ©·Ñ½Ã¿¡ ÁõºÐ ÇÏ´Â ¾çÀ» µ¹·ÁÁÝ´Ï´Ù. |
boolean |
getScrollsOnExpand ()
scrollsOnExpand ÇÁ·ÎÆÛƼÀÇ °ªÀ» µ¹·ÁÁÝ´Ï´Ù. |
int |
getSelectionCount ()
¼±ÅÃµÈ ³ëµåÀÇ ¼ö¸¦ µ¹·ÁÁÝ´Ï´Ù. |
TreeSelectionModel |
getSelectionModel ()
¼±ÅÃÀÇ ¸ðµ¨À» µ¹·ÁÁÝ´Ï´Ù. |
TreePath |
getSelectionPath ()
¼±ÅÃµÈ ÃÖÃÊÀÇ ³ëµåÀÇ ÆÐ½º¸¦ µ¹·ÁÁÝ´Ï´Ù. |
TreePath [] |
getSelectionPaths ()
¼±ÅÃµÈ ¸ðµç °ªÀÇ ÆÐ½º¸¦ µ¹·ÁÁÝ´Ï´Ù. |
int[] |
getSelectionRows ()
ÇöÀç ¼±Åà ¶°³¯ ¼ö ÀÖ¾î ¸ðµç ÇàÀ» µ¹·ÁÁÝ´Ï´Ù. |
boolean |
getShowsRootHandles ()
showsRootHandles ÇÁ·ÎÆÛƼÀÇ °ªÀ» µ¹·ÁÁÝ´Ï´Ù. |
int |
getToggleClickCount ()
³ëµå¸¦ Àü°³Çϰųª ´ÝÀ» ¶§ ÇÊ¿äÇÑ ¸¶¿ì½º Ŭ¸¯ÀÇ È¸¼ö¸¦ µ¹·ÁÁÝ´Ï´Ù. |
String |
getToolTipText (MouseEvent event)
JComponent ÀÇ getToolTipText ¸Þ¼Òµå¸¦ ¿À¹ö¶óÀ̵å(override) ÇØ, ·»´õ¸µÀÇ ÈùÆ® (ÅØ½ºÆ® ¼¼Æ®°¡ ÀÖ´Â °æ¿ì)¸¦ »ç¿ëÇÒ ¼ö ÀÖ°Ô ÇÕ´Ï´Ù.
|
TreeExpansionListener [] |
getTreeExpansionListeners ()
addTreeExpansionListener()¿¡ ÀÇÇØ ÀÌ JTree ¿¡ Ãß°¡µÈ ¸ðµç TreeExpansionListener ÀÇ ¹è¿À» µ¹·ÁÁÝ´Ï´Ù. |
TreeSelectionListener [] |
getTreeSelectionListeners ()
addTreeSelectionListener()¿¡ ÀÇÇØ ÀÌ JTree ¿¡ Ãß°¡µÈ ¸ðµç TreeSelectionListener ÀÇ ¹è¿À» µ¹·ÁÁÝ´Ï´Ù. |
TreeWillExpandListener [] |
getTreeWillExpandListeners ()
addTreeWillExpandListener()¿¡ ÀÇÇØ ÀÌ JTree ¿¡ Ãß°¡µÈ ¸ðµç TreeWillExpandListener ÀÇ ¹è¿À» µ¹·ÁÁÝ´Ï´Ù. |
TreeUI |
getUI ()
ÀÌ ÄÄÆÛ³ÍÆ®¸¦ Ç¥Çö ÇÏ´Â L&F ¿ÀºêÁ§Æ®¸¦ µ¹·ÁÁÝ´Ï´Ù. |
String |
getUIClassID ()
ÀÌ ÄÄÆÛ³ÍÆ®¸¦ Ç¥Çö ÇÏ´Â L&F Ŭ·¡½ºÀÇ À̸§À» µ¹·ÁÁÝ´Ï´Ù. |
int |
getVisibleRowCount ()
Ç¥½Ã area¿¡ Ç¥½ÃµÇ°í ÀÖ´Â Çà¼ö¸¦ µ¹·ÁÁÝ´Ï´Ù. |
boolean |
hasBeenExpanded (TreePath path)
ÆÐ½º¿¡ ÀÇÇØ ½Äº°µÇ´Â ³ëµå°¡ Áö±Ý±îÁö Àü°³µÇ¾ú´ø ÀûÀÌ ÀÖ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
boolean |
isCollapsed (int row)
ÁöÁ¤µÈ Ç¥½ÃÇà¿¡ ÀÖ´Â ³ëµå°¡ ¼ö³³µÇ°í ÀÖ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
boolean |
isCollapsed (TreePath path)
ÆÐ½º¿¡ ÀÇÇØ ½Äº°µÇ´Â °ªÀÌ ÇöÀç ¼ö³³µÇ°í ÀÖ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
boolean |
isEditable ()
Æ®¸®°¡ ÆíÁý °¡´ÉÇÑ °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
boolean |
isEditing ()
Æ®¸®°¡ ÆíÁýµÇ°í ÀÖ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
boolean |
isExpanded (int row)
ÁöÁ¤µÈ Ç¥½ÃÇà¿¡ ÀÖ´Â ³ëµå°¡ ÇöÀç Àü°³µÇ°í ÀÖ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
boolean |
isExpanded (TreePath path)
ÆÐ½º¿¡ ÀÇÇØ ½Äº°µÇ´Â ³ëµå°¡ ÇöÀç Àü°³µÇ°í ÀÖ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
boolean |
isFixedRowHeight ()
°¢ Ç¥½ÃÇàÀÇ ³ôÀ̰¡ °íÁ¤ »çÀÌÁîÀÇ °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
boolean |
isLargeModel ()
Æ®¸®°¡ Å« ¸ðµ¨¿ëÀ¸·Î ¼³Á¤µÇ¾î ÀÖ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
boolean |
isPathEditable (TreePath path)
isEditable ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
boolean |
isPathSelected (TreePath path)
ÆÐ½º¿¡ ÀÇÇØ ½Äº°µÇ´Â Ç׸ñÀÌ ÇöÀç ¼±Åõǰí ÀÖ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
boolean |
isRootVisible ()
Æ®¸®ÀÇ ·çÆ® ³ëµå°¡ Ç¥½ÃµÇ°í ÀÖ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
boolean |
isRowSelected (int row)
Çà¿¡ ÀÇÇØ ½Äº°µÇ´Â ³ëµå°¡ ¼±Åõǰí ÀÖ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
boolean |
isSelectionEmpty ()
¼±Åà ¹üÀ§°¡ ÇöÀçºñ¾úÀ» °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
boolean |
isVisible (TreePath path)
ÆÐ½º¿¡ ÀÇÇØ ½Äº°µÇ´Â °ªÀÌ ÇöÀç Ç¥½Ã °¡´ÉÇÑ °æ¿ì, Áï ±×°ÍÀÌ ·çÆ®ÀÎÁö ±× ¸ðµç ºÎ¸ð°¡ Àü°³µÇ°í ÀÖ´Â °æ¿ì¿¡ true ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
void |
makeVisible (TreePath path)
ÆÐ½º¿¡ ÀÇÇØ ½Äº°µÇ´Â ³ëµå°¡ ÇöÀç Ç¥½Ã °¡´ÉÇϵµ·Ï ÇÕ´Ï´Ù. |
protected String |
paramString ()
ÀÌ JTree ÀÇ Ä³¸¯ÅÍ ¶óÀΠǥÇöÀ» µ¹·ÁÁÝ´Ï´Ù. |
protected boolean |
removeDescendantSelectedPaths (TreePath path,
boolean includePath)
path ÀÇ ÇÏÀ§ ³ëµåÀÎ ¼±ÅÃµÈ ¸ðµç ÆÐ½º¸¦ »èÁ¦ÇÕ´Ï´Ù. |
protected void |
removeDescendantToggledPaths (Enumeration toRemove)
toRemove ¿¡ ÀÖ´Â Àü°³µÇ°í ÀÖ´Â TreePaths ÀÇ ÇÏÀ§ ³ëµå¸¦ »èÁ¦ÇÕ´Ï´Ù. |
void |
removeSelectionInterval (int index0,
int index1)
index0 ·ÎºÎÅÍ index1 ±îÁöÀÇ ³ëµå¸¦ ¼±ÅÃÀ¸·ÎºÎÅÍ »èÁ¦ÇÕ´Ï´Ù. |
void |
removeSelectionPath (TreePath path)
ÁöÁ¤µÈ ÆÐ½º¿¡ ÀÇÇØ ½Äº°µÇ´Â ³ëµå¸¦ ÇöÀçÀÇ ¼±ÅÃÀ¸·ÎºÎÅÍ »èÁ¦ÇÕ´Ï´Ù. |
void |
removeSelectionPaths (TreePath [] paths)
ÁöÁ¤µÈ ÆÐ½º¿¡ ÀÇÇØ ½Äº°µÇ´Â ³ëµå¸¦ ÇöÀçÀÇ ¼±ÅÃÀ¸·ÎºÎÅÍ »èÁ¦ÇÕ´Ï´Ù. |
void |
removeSelectionRow (int row)
À妽º row ¿¡ ÀÖ´Â ÇàÀ» ÇöÀçÀÇ ¼±ÅÃÀ¸·ÎºÎÅÍ »èÁ¦ÇÕ´Ï´Ù. |
void |
removeSelectionRows (int[] rows)
ÁöÁ¤µÈ °¢ ÇàÀ¸·Î ¼±Åõǰí ÀÖ´Â ÇàÀ» »èÁ¦ÇÕ´Ï´Ù. |
void |
removeTreeExpansionListener (TreeExpansionListener tel)
TreeExpansion À̺¥Æ®ÀÇ Ã»ÃëÀÚ¸¦ »èÁ¦ÇÕ´Ï´Ù. |
void |
removeTreeSelectionListener (TreeSelectionListener tsl)
TreeSelection ûÃëÀÚ¸¦ »èÁ¦ÇÕ´Ï´Ù. |
void |
removeTreeWillExpandListener (TreeWillExpandListener tel)
TreeWillExpand À̺¥Æ®ÀÇ Ã»ÃëÀÚ¸¦ »èÁ¦ÇÕ´Ï´Ù. |
void |
scrollPathToVisible (TreePath path)
ÆÐ½º¿¡ ÀÖ´Â ¸ðµç ÆÄ½ºÄÜÆ÷³ÙÆ® (¸¶Áö¸· ÆÄ½ºÄÜÆ÷³ÙÆ®´Â Á¦¿ÜÇÏ´Ù)¸¦ Àü°³ÇØ, ÆÐ½º¿¡ ÀÇÇØ ÁöÁ¤µÇ´Â ³ëµå°¡ Ç¥½ÃµÇµµ·Ï(µíÀÌ) ½ºÅ©·Ñ ÇÕ´Ï´Ù. |
void |
scrollRowToVisible (int row)
Çà¿¡ ÀÇÇØ ½Äº°µÇ´Â Ç׸ñÀÌ Ç¥½ÃµÉ ¶§±îÁö ½ºÅ©·Ñ ÇÕ´Ï´Ù. |
void |
setAnchorSelectionPath (TreePath newPath)
¿¨Ä¿·Î¼ ½Äº°ÇÏ´Â ÆÐ½º¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
void |
setCellEditor (TreeCellEditor cellEditor)
¼¿ ¿¡µðÅ͸¦ ¼³Á¤ÇÕ´Ï´Ù. |
void |
setCellRenderer (TreeCellRenderer x)
°¢ ¼¿À» Ç¥Çö Çϱâ À§Çؼ »ç¿ëÇÏ´Â TreeCellRenderer ¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
void |
setDragEnabled (boolean b)
dragEnabled ÇÁ·ÎÆÛƼ¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
void |
setEditable (boolean flag)
Æ®¸®°¡ ÆíÁý °¡´ÉÇѰ¡ ¾î¶²°¡¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
protected void |
setExpandedState (TreePath path,
boolean state)
ÀÌ JTree ÀÇ Àü°³ »óŸ¦ ¼³Á¤ÇÕ´Ï´Ù. |
void |
setExpandsSelectedPaths (boolean newValue)
expandsSelectedPaths ÇÁ·ÎÆÛƼ¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
void |
setInvokesStopCellEditing (boolean newValue)
Æ®¸®ÀÇ ´Ù¸¥ ³ëµåÀÇ ¼±ÅÃ, Æ®¸®ÀÇ µ¥ÀÌÅÍÀÇ º¯°æ, ¶Ç´Â ´Ù¸¥ ¼ö´Ü¿¡ ÀÇÇØ ÆíÁýÀÌ ³¢¾îµé¾îÁ³À» ¶§¿¡ ¹«¾ùÀ» ÇÏ´ÂÁö¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
void |
setLargeModel (boolean newValue)
UI °¡ Å« ¸ðµ¨À» »ç¿ëÇÒÁö ¾î¶³Áö¸¦ ¼³Á¤ÇÕ´Ï´Ù (¸ðµç UI °¡ À̰ÍÀ» ±¸ÇöÇÏ´Â °ÍÀº ¾Æ´Ï´Ù). |
void |
setLeadSelectionPath (TreePath newPath)
¸®µå·Î¼ ½Äº°ÇÏ´Â ÆÐ½º¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
void |
setModel (TreeModel newModel)
µ¥ÀÌÅ͸¦ Á¦°øÇÏ´Â TreeModel ¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
void |
setRootVisible (boolean rootVisible)
TreeModel ÀÇ ·çÆ® ³ëµå°¡ °¡½ÃÀΰ¡ ¾î¶²°¡¸¦ ÆÇÁ¤ÇÕ´Ï´Ù. |
void |
setRowHeight (int rowHeight)
°¢ ¼¿ÀÇ ³ôÀ̸¦ Çȼ¿ ´ÜÀ§·Î ¼³Á¤ÇÕ´Ï´Ù. |
void |
setScrollsOnExpand (boolean newValue)
scrollsOnExpand ÇÁ·ÎÆÛƼ¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
void |
setSelectionInterval (int index0,
int index1)
index0 ·ÎºÎÅÍ index1 ±îÁöÀÇ ³ëµå¸¦ ¼±ÅÃÇÕ´Ï´Ù. |
void |
setSelectionModel (TreeSelectionModel selectionModel)
Æ®¸®ÀÇ ¼±Åà ¸ðµ¨À» ¼³Á¤ÇÕ´Ï´Ù. |
void |
setSelectionPath (TreePath path)
ÁöÁ¤µÈ ÆÐ½º·Î ½Äº°µÇ´Â ³ëµå¸¦ ¼±ÅÃÇÕ´Ï´Ù. |
void |
setSelectionPaths (TreePath [] paths)
ÁöÁ¤µÈ ÆÐ½ºÀÇ ¹è¿¿¡ ÀÇÇØ ½Äº°µÇ´Â ³ëµå¸¦ ¼±ÅÃÇÕ´Ï´Ù. |
void |
setSelectionRow (int row)
ÁöÁ¤µÈ Ç¥½ÃÇà¿¡ ÀÖ´Â ³ëµå¸¦ ¼±ÅÃÇÕ´Ï´Ù. |
void |
setSelectionRows (int[] rows)
ÁöÁ¤µÈ °¢ Ç¥½ÃÇà¿¡ ´ëÀÀÇÏ´Â ³ëµå¸¦ ¼±ÅÃÇÕ´Ï´Ù. |
void |
setShowsRootHandles (boolean newValue)
³ëµå ÇÚµéÀ» Ç¥½ÃÇÒÁö ¾î¶³Áö¸¦ ³ªÅ¸³»´Â showsRootHandles ÇÁ·ÎÆÛƼ¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
void |
setToggleClickCount (int clickCount)
³ëµå¸¦ Àü°³Çϰųª ´Ý±â À§Çؼ(¶§¹®¿¡) ÇÊ¿äÇÑ ¸¶¿ì½º Ŭ¸¯ÀÇ È¸¼ö¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
void |
setUI (TreeUI ui)
ÀÌ ÄÄÆÛ³ÍÆ®¸¦ Ç¥Çö ÇÏ´Â L&F ¿ÀºêÁ§Æ®¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
void |
setVisibleRowCount (int newCount)
Ç¥½ÃÇÏ´Â Çà¼ö¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
void |
startEditingAtPath (TreePath path)
ÁöÁ¤µÈ ÆÐ½º¿¡ ÀÇÇØ ½Äº°µÇ´Â ³ëµå¸¦ ¼±ÅÃÇØ, ÆíÁýÀ» °³½ÃÇÕ´Ï´Ù. |
boolean |
stopEditing ()
ÇöÀçÀÇ ÆíÁý ¼¼¼ÇÀ» Á¾·áÇÕ´Ï´Ù. |
void |
treeDidChange ()
Æ®¸®ÀÇ º¯°æÀÌ, °æ°è¸¦ »çÀÌÁî º¯°æÇÒ Çʿ䰡 ÀÖÀ» ¸¸Å Å©Áö¸¸, Àü°³µÈ ³ëµå ¼¼Æ®¸¦ »èÁ¦ÇÒ Á¤µµ°¡ ¾Æ´Ñ °æ¿ì¿¡ º¸³»Áý´Ï´Ù (¿¹¸¦ µé¾î, ³ëµå°¡ Àü°³µÇ´ÂÁö ¼ö³³µÇ¾úÀ» ¶§, ¶Ç´Â ³ëµå°¡ Æ®¸®¿¡ »ðÀԵǾúÀ» ¶§). |
void |
updateUI ()
L&F °¡ º¯°æµÇ¾ú´Ù°í ÇÏ´Â UIManager ·ÎºÎÅÍÀÇ ÅëÁöÀÔ´Ï´Ù. |
Ŭ·¡½º java.awt. Container ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
add , add , add , add , add , addContainerListener , addImpl , applyComponentOrientation , areFocusTraversalKeysSet , countComponents , deliverEvent , doLayout , findComponentAt , findComponentAt , getComponent , getComponentAt , getComponentAt , getComponentCount , getComponents , getContainerListeners , getFocusTraversalKeys , getFocusTraversalPolicy , getLayout , insets , invalidate , isAncestorOf , isFocusCycleRoot , isFocusCycleRoot , isFocusTraversalPolicySet , layout , list , list , locate , minimumSize , paintComponents , preferredSize , printComponents , processContainerEvent , processEvent , remove , remove , removeAll , removeContainerListener , setFocusCycleRoot , setFocusTraversalKeys , setFocusTraversalPolicy , setLayout , transferFocusBackward , transferFocusDownCycle , validate , validateTree |
Ŭ·¡½º java.lang. Object ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
ÇʵåÀÇ »ó¼¼ |
protected transient TreeModel treeModel
protected transient TreeSelectionModel selectionModel
protected boolean rootVisible
protected transient TreeCellRenderer cellRenderer
null
ÀÇ °æ¿ì, UI ´Â µðÆúÆ®ÀÇ cellRenderer
¸¦ »ç¿ëÇÕ´Ï´Ù.
protected int rowHeight
protected boolean showsRootHandles
ÇÚµé°ú´Â ³ëµåÀÇ ¿·¿¡ Ç¥½ÃµÇ´Â ÀÛÀº ¾ÆÀÌÄÜÀ̸ç, À¯Àú°¡ Ŭ¸¯Çϸé(ÀÚ) ³ëµå°¡ Àü°³µÇ´ÂÁö ¼ö³³µË´Ï´Ù. °øÅëÀÇ ÀÎÅÍÆäÀ̽º´Â Àü°³ÇÒ ¼ö ÀÖ´Â ³ëµå·Î Ç÷¯½º ºÎÈ£ (+)¸¦ Ç¥½ÃÇØ, ¼ö³³ÇÒ ¼ö ÀÖ´Â ³ëµå¿¡¼´Â ¸¶À̳ʽº ºÎÈ£ (-)¸¦ Ç¥½ÃÇÕ´Ï´Ù. ÇÚµéÀº ÃÖ»óÁ¤µµ ·¹º§º¸´Ù ¾Æ·¡ÀÇ ³ëµå·Î Ç×»ó Ç¥½ÃµË´Ï´Ù.
rootVisible
ÀÇ ¼³Á¤ÀÌ ·çÆ® ³ëµåÀÇ Ç¥½Ã¸¦ ÁöÁ¤ÇÏ´Â °æ¿ì´Â ±×°ÍÀÌ ÃÖ»óÁ¤µµ ·¹º§ÀÇ À¯ÀÏÇÑ ³ëµåÀÔ´Ï´Ù. ·çÆ® ³ëµå°¡ Ç¥½ÃµÇÁö ¾Ê´Â °æ¿ì, ±× ¸ðµç ¾ÆÀ̰¡ Æ®¸®ÀÇ ÃÖ»óÁ¤µµ ·¹º§¿¡ ÀÖ½À´Ï´Ù. ÇÚµéÀº ÃÖ»óÁ¤µµ ÀÌ¿ÜÀÇ ³ëµå·Î Ç×»ó Ç¥½ÃµË´Ï´Ù.
·çÆ® ³ëµå°¡ °¡½Ã°¡ ¾Æ´Ñ °æ¿ì, Åë»óÀº ÀÌ °ªÀ» true ·Î ¼³Á¤ÇÕ´Ï´Ù. true ·Î ¼³Á¤ÇÏÁö ¾ÊÀ¸¸é Æ®¸®´Â ¸®½ºÆ®¿Í °°ÀÌ Ç¥½ÃµÇ¾î À¯Àú´Â ¡¸¸®½ºÆ® ¿£Æ®¸®¡¹°¡ ½ÇÁ¦·Î´Â Æ®¸® ³ëµåÀÎ °ÍÀ» ÀνÄÇÒ ¼ö ¾ø½À´Ï´Ù.
rootVisible
protected transient JTree.TreeSelectionRedirector selectionRedirector
selectionListeners
¿¡ °Ç³×ÁÝ´Ï´Ù.
protected transient TreeCellEditor cellEditor
null
(Æ®¸®´Â ÆíÁýÇÒ ¼ö ¾ø´Ù)ÀÔ´Ï´Ù.
protected boolean editable
protected boolean largeModel
ÀÌ °ªÀº UI ¿¡ÀÇ ´Ü¼øÇÑ Á¦¾ÈÀÔ´Ï´Ù. ¸ðµç UI °¡ ÀÌ °ªÀ» ÀÌ¿ëÇÏ´Â °ÍÀº ¾Æ´Õ´Ï´Ù. µðÆúÆ® °ªÀº false ÀÔ´Ï´Ù.
protected int visibleRowCount
Scrollable
ÀÎÅÍÆäÀ̽º·Î »ç¿ëµË´Ï´Ù. ÀÌ °ªÀº Ç¥½Ã areaÀÇ ÀûÀýÇÑ »çÀÌÁ °áÁ¤ÇÕ´Ï´Ù.
protected boolean invokesStopCellEditing
stopCellEditing
°¡ ºÒ·Á °¡ º¯°æÀÌ º¸Á¸µË´Ï´Ù. false ÀÇ °æ¿ì,cancelCellEditing
°¡ ºÒ·Á °¡ º¯°æÀº ÆÄ±âµË´Ï´Ù. µðÆúÆ®´Â false ÀÔ´Ï´Ù.
protected boolean scrollsOnExpand
protected int toggleClickCount
protected transient TreeModelListener treeModelListener
expandedState
¸¦ °»½ÅÇÕ´Ï´Ù.
public static final String CELL_RENDERER_PROPERTY
cellRenderer
ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.
public static final String TREE_MODEL_PROPERTY
treeModel
ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.
public static final String ROOT_VISIBLE_PROPERTY
rootVisible
ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.
public static final String SHOWS_ROOT_HANDLES_PROPERTY
showsRootHandles
ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.
public static final String ROW_HEIGHT_PROPERTY
rowHeight
ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.
public static final String CELL_EDITOR_PROPERTY
cellEditor
ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.
public static final String EDITABLE_PROPERTY
editable
ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.
public static final String LARGE_MODEL_PROPERTY
largeModel
ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.
public static final String SELECTION_MODEL_PROPERTY
public static final String VISIBLE_ROW_COUNT_PROPERTY
visibleRowCount
ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.
public static final String INVOKES_STOP_CELL_EDITING_PROPERTY
messagesStopCellEditing
ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.
public static final String SCROLLS_ON_EXPAND_PROPERTY
scrollsOnExpand
ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.
public static final String TOGGLE_CLICK_COUNT_PROPERTY
toggleClickCount
ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.
public static final String LEAD_SELECTION_PATH_PROPERTY
leadSelectionPath
ÀÇ ¹Ù¿îµå ÇÁ·ÎÆÛƼ¸íÀÔ´Ï´Ù.
public static final String ANCHOR_SELECTION_PATH_PROPERTY
public static final String EXPANDS_SELECTED_PATHS_PROPERTY
»ý¼ºÀÚÀÇ »ó¼¼ |
public JTree()
JTree
¸¦ µ¹·ÁÁÝ´Ï´Ù. Æ®¸®°¡ »ç¿ëÇÏ´Â µðÆúÆ® ¸ðµ¨Àº ÀÙ³ëµå¸¦ ¾ÆÀ̰¡ ¾ø´Â ÀÓÀÇ ³ëµå·Î¼ Á¤ÀÇÇÕ´Ï´Ù.
DefaultTreeModel.asksAllowsChildren
public JTree(Object [] value)
JTree
¸¦ µ¹·ÁÁÝ´Ï´Ù. µðÆúÆ®¿¡¼´Â Æ®¸®´Â ÀÙ³ëµå¸¦ ¾ÆÀ̰¡ ¾ø´Â ÀÓÀÇ ³ëµå·Î¼ Á¤ÀÇÇÕ´Ï´Ù.
value
- Object
ÀÇ ¹è¿DefaultTreeModel.asksAllowsChildren
public JTree(Vector value)
Vector
ÀÇ °¢ ¿ä¼Ò¸¦, Ç¥½ÃµÇ¾î ÀÖÁö ¾ÊÀº »õ·Î¿î ·çÆ® ³ëµåÀÇ ¾ÆÀ̷μ °¡Áö´Â JTree
¸¦ µ¹·ÁÁÝ´Ï´Ù. µðÆúÆ®¿¡¼´Â Æ®¸®´Â ÀÙ³ëµå¸¦ ¾ÆÀ̰¡ ¾ø´Â ÀÓÀÇ ³ëµå·Î¼ Á¤ÀÇÇÕ´Ï´Ù.
value
- Vector
DefaultTreeModel.asksAllowsChildren
public JTree(Hashtable value)
Hashtable
·ÎºÎÅÍ »ý¼ºµÈ, ·çÆ®¸¦ Ç¥½ÃÇÏÁö ¾Ê´Â JTree
¸¦ µ¹·ÁÁÝ´Ï´Ù. HashTable
ÀÇ Å°¿Í °ªÀÇ Á¶ÀÇ Ä¡ÃøÀÌ »õ·Î¿î ·çÆ® ³ëµåÀÇ ¾ÆÀ̰¡ µË´Ï´Ù. µðÆúÆ®¿¡¼´Â Æ®¸®´Â ÀÙ³ëµå¸¦ ¾ÆÀ̰¡ ¾ø´Â ÀÓÀÇÀÇ ³ëµå·Î¼ Á¤ÀÇÇÕ´Ï´Ù.
value
- Hashtable
DefaultTreeModel.asksAllowsChildren
public JTree(TreeNode root)
TreeNode
¸¦ ·çÆ®¿¡ °¡Áö´Â ·çÆ® ³ëµå¸¦ Ç¥½ÃÇÏ´Â JTree
¸¦ µ¹·ÁÁÝ´Ï´Ù. µðÆúÆ®¿¡¼´Â Æ®¸®´Â ÀÙ³ëµå¸¦ ¾ÆÀ̰¡ ¾ø´Â ÀÓÀÇÀÇ ³ëµå·Î¼ Á¤ÀÇÇÕ´Ï´Ù.
root
- TreeNode
¿ÀºêÁ§Æ®DefaultTreeModel.asksAllowsChildren
public JTree(TreeNode root, boolean asksAllowsChildren)
TreeNode
¸¦ ·çÆ®·Î¼ °¡Áö´Â JTree
¸¦ µ¹·ÁÁÝ´Ï´Ù.
root
- TreeNode
¿ÀºêÁ§Æ®asksAllowsChildren
- false ÀÇ °æ¿ì, ¾ÆÀ̸¦ °¡ÁöÁö ¾Ê´Â ¸ðµç ³ëµå°¡ ÀÙ³ëµå. true ÀÇ °æ¿ì, ¾ÆÀ̸¦ Çã°¡ÇÏÁö ¾Ê´Â ³ëµå¸¸ÀÌ ÀÙ³ëµåDefaultTreeModel.asksAllowsChildren
public JTree(TreeModel newModel)
JTree
ÀÇ ÀνºÅϽº¸¦ µ¹·ÁÁÝ´Ï´Ù. Æ®¸®´Â ÁöÁ¤µÈ µ¥ÀÌÅÍ ¸ðµ¨À» »ç¿ëÇØ »ý¼ºµË´Ï´Ù.
newModel
- µ¥ÀÌÅÍ ¸ðµ¨·Î¼ »ç¿ëÇÏ´Â TreeModel
¸Þ¼ÒµåÀÇ »ó¼¼ |
protected static TreeModel getDefaultTreeModel()
TreeModel
¸¦ »ý¼ºÇØ, ±×°ÍÀ» µ¹·ÁÁÝ´Ï´Ù. ¹«¾ùÀΰ¡¸¦ Èï¹Ì·Ó°Ô º¸ÀÌ°Ô Çϱâ À§Çؼ(¶§¹®¿¡), ÁÖ·Î Beanbuilder ·Î »ç¿ëµË´Ï´Ù.
TreeModel
protected static TreeModel createTreeModel(Object value)
TreeModel
¸¦ µ¹·ÁÁÝ´Ï´Ù. ¿ÀºêÁ§Æ®°¡ ´ÙÀ½ÀÇ ¾î¶² °ÍÀΰ¡ÀÇ °æ¿ìÀÔ´Ï´Ù.
Object
ÀÇ ¹è¿
Hashtable
Vector
value
- TreeModel
ÀÇ ±âÃʷμ »ç¿ëµÇ´Â Object
TreeModel
public TreeUI getUI()
TreeUI
¿ÀºêÁ§Æ®public void setUI(TreeUI ui)
ui
- TreeUI
ÀÇ L&F ¿ÀºêÁ§Æ®UIDefaults.getUI(javax.swing.JComponent)
public void updateUI()
UIManager
·ÎºÎÅÍÀÇ ÅëÁöÀÔ´Ï´Ù. ÇöÀçÀÇ UI ¿ÀºêÁ§Æ®¸¦ UIManager
·ÎºÎÅÍÀÇ ÃֽйöÁ¯¿¡ ¿Å°Ü³õ½À´Ï´Ù.
JComponent
³»ÀÇ updateUI
JComponent.updateUI()
public String getUIClassID()
JComponent
³»ÀÇ getUIClassID
JComponent.getUIClassID()
,
UIDefaults.getUI(javax.swing.JComponent)
public TreeCellRenderer getCellRenderer()
TreeCellRenderer
¸¦ µ¹·ÁÁÝ´Ï´Ù.
TreeCellRenderer
public void setCellRenderer(TreeCellRenderer x)
TreeCellRenderer
¸¦ ¼³Á¤ÇÕ´Ï´Ù.
x
- °¢ ¼¿À» Ç¥Çö ÇÏ´Â TreeCellRenderer
public void setEditable(boolean flag)
flag
- boolean Ä¡. Æ®¸®°¡ ÆíÁý °¡´ÉÇÑ °æ¿ì´Â truepublic boolean isEditable()
public void setCellEditor(TreeCellEditor cellEditor)
null
Ä¡´Â Æ®¸®¸¦ ÆíÁýÇÒ ¼ö ¾ø´Â °ÍÀ» ³ªÅ¸³À´Ï´Ù. À̰ÍÀÌ cellEditor
¿¡¼ÀÇ º¯°æÀ» ³ªÅ¸³»´Â °æ¿ì,propertyChange
¸Þ¼Òµå°¡ ¸ðµç ûÃëÀÚ·Î ºÒ·Á °©´Ï´Ù.
cellEditor
- »ç¿ëÇÏ´Â TreeCellEditor
public TreeCellEditor getCellEditor()
TreeCellEditor
. Æ®¸®¸¦ ÆíÁýÇÒ ¼ö ¾ø´Â °æ¿ì´Â null
public TreeModel getModel()
TreeModel
¸¦ µ¹·ÁÁÝ´Ï´Ù.
TreeModel
public void setModel(TreeModel newModel)
TreeModel
¸¦ ¼³Á¤ÇÕ´Ï´Ù.
newModel
- µ¥ÀÌÅ͸¦ Á¦°øÇÏ´Â TreeModel
public boolean isRootVisible()
rootVisible
public void setRootVisible(boolean rootVisible)
TreeModel
ÀÇ ·çÆ® ³ëµå°¡ °¡½ÃÀΰ¡ ¾î¶²°¡¸¦ ÆÇÁ¤ÇÕ´Ï´Ù.
rootVisible
- Æ®¸®ÀÇ ·çÆ® ³ëµå°¡ Ç¥½ÃµÇ´Â °æ¿ì´Â truerootVisible
public void setShowsRootHandles(boolean newValue)
showsRootHandles
ÇÁ·ÎÆÛƼ¸¦ ¼³Á¤ÇÕ´Ï´Ù. ÀÌ ÇÁ·ÎÆÛƼÀÇ µðÆúÆ® °ªÀº JTree
ÀÇ ÀÛ¼º¿¡ »ç¿ëÇÏ´Â constructor ¿¡ µû¶ó¼ ´Ù¸¨´Ï´Ù. ÀϺÎÀÇ Look & Feel ¿¡¼´Â ÇÚµéÀÌ ¼Æ÷Æ®µÇ¾î ÀÖÁö ¾ÊÀº °æ¿ì°¡ ÀÖ½À´Ï´Ù. ±× °æ¿ì, ÀÌ ÇÁ·ÎÆÛƼ´Â ¹«½ÃµË´Ï´Ù.
newValue
- ·çÆ® ÇÚµéÀ» Ç¥½ÃÇÏÁö ¾Ê´Â °æ¿ì´Â true
, ±×·¸Áö ¾ÊÀº °æ¿ì´Âfalse
showsRootHandles
,
getShowsRootHandles()
public boolean getShowsRootHandles()
showsRootHandles
ÇÁ·ÎÆÛƼÀÇ °ªÀ» µ¹·ÁÁÝ´Ï´Ù.
showsRootHandles
ÇÁ·ÎÆÛƼÀÇ °ªshowsRootHandles
public void setRowHeight(int rowHeight)
rowHeight
- °¢ ¼¿ÀÇ Çȼ¿ ´ÜÀ§ÀÇ ³ôÀÌpublic int getRowHeight()
public boolean isFixedRowHeight()
public void setLargeModel(boolean newValue)
newValue
- UI ¿¡ ´ëÇØ¼ Å« ¸ðµ¨À» Á¦¾ÈÇÏ´Â °æ¿ì´Â truelargeModel
public boolean isLargeModel()
largeModel
public void setInvokesStopCellEditing(boolean newValue)
true
·Î ¼³Á¤Çϸé(ÀÚ), ÆíÁýÀÌ ³¢¾îµé¾îÁ³À» ¶§¿¡ º¯°æÀÌ ÀÚµ¿ÀûÀ¸·Î º¸Á¸µË´Ï´Ù.
INVOKES_STOP_CELL_EDITING_PROPERTY ÀÇ ÇÁ·ÎÆÛƼ º¯°æÀ» ¹æ¾Æ¼è ÇÕ´Ï´Ù.
newValue
- true ÀÇ °æ¿ì´Â ÆíÁýÀÌ ³¢¾îµé¾îÁ³À» ¶§¿¡ stopCellEditing
°¡ ºÒ·Á °¡ µ¥ÀÌÅͰ¡ º¸Á¸µÈ´Ù. false ÀÇ °æ¿ì´Â cancelCellEditing
°¡ ºÒ·Á °¡ º¯°æÀÌ ¾ø¾îÁø´Ùpublic boolean getInvokesStopCellEditing()
setInvokesStopCellEditing(boolean)
public void setScrollsOnExpand(boolean newValue)
scrollsOnExpand
ÇÁ·ÎÆÛƼ¸¦ ¼³Á¤ÇÕ´Ï´Ù. ÀÌ ÇÁ·ÎÆÛƼ´Â Æ®¸®¸¦ ½ºÅ©·Ñ ÇßÀ» ¶§¿¡, ¼û°ÜÁö°í ÀÖ´ø ¾ÆÀ̸¦ Ç¥½ÃÇÒÁö ¾î¶³Áö¸¦ ³ªÅ¸³À´Ï´Ù. true
(µðÆúÆ®)ÀÇ °æ¿ì, ³ëµå¸¦ Àü°³Çϸé(ÀÚ), ÇÏÀ§ ³ëµå°¡ °¡´ÉÇÑ ÇÑ ¸¹ÀÌ °¡½Ã »óŰ¡ µÇµµ·Ï(µíÀÌ) Æ®¸®°¡ ½ºÅ©·Ñ µË´Ï´Ù. ÀϺÎÀÇ Look & Feel ¿¡¼´Â ³ëµåÀÇ Àü°³½Ã¿¡ ½ºÅ©·ÑÀ» ÇÊ¿ä·Î ÇÏÁö ¾Ê±â ¶§¹®¿¡, ÀÌ ÇÁ·ÎÆÛƼ´Â ¹«½ÃµË´Ï´Ù.
newValue
- Àü°³½ÃÀÇ ½ºÅ©·ÑÀ» »ç¿ë ºÒ°¡·Î ÇÏ´Â °æ¿ì´Â false
, »ç¿ë °¡´ÉÇÏ°Ô ÇÏ´Â °æ¿ì´Â true
getScrollsOnExpand()
public boolean getScrollsOnExpand()
scrollsOnExpand
ÇÁ·ÎÆÛƼÀÇ °ªÀ» µ¹·ÁÁÝ´Ï´Ù.
scrollsOnExpand
ÇÁ·ÎÆÛƼÀÇ °ªpublic void setToggleClickCount(int clickCount)
public int getToggleClickCount()
public void setExpandsSelectedPaths(boolean newValue)
expandsSelectedPaths
ÇÁ·ÎÆÛƼ¸¦ ¼³Á¤ÇÕ´Ï´Ù. true ÀÇ °æ¿ì¿¡´Â TreeSelectionModel
¶Ç´ÂJTree
°¡ Á¦°øÇÏ´Â Ä¿¹ö ¸Þ¼Òµå¿¡ ÀÇÇØ ¾ðÁ¦¶óµµ ¼±ÅÃÀ» º¯°æÇÒ ¼ö ÀÖ¾îTreePath
ÀÇ ºÎ¸ð°¡ Àü°³µÇ°í °¡½Ã°¡ µË´Ï´Ù. °¡½Ã¶õ,JTree
ÀÇ °¡½Ã ±¸Çü¿¡ ÇÑÇÏÁö ¾Ê°í Ä£ÆÐ½º°¡ Àü°³µÇ°í ÀÖ´Â »óŸ¦ ÀǹÌÇÕ´Ï´Ù. false ÀÇ °æ¿ì, ³ëµå ¼±ÅÃÀ» º¯°æÇϸé(ÀÚ) ºÎ¸ð´Â ¸ðµÎ Àü°³µÇ¾îµµ °¡½Ã·Î´Â µÇÁö ¾Ê½À´Ï´Ù. ¼±Åà ¸ðµ¨ ÆÐ½º¸¦, ¸ðµç ºÎ¸ð¸¦ Àü°³ÇØ Ç×»ó ºñÇ¥½Ã·Î ÇÏ´Â °æ¿ì¿¡´Â Æí¸®ÇÕ´Ï´Ù.
newValue
- expandsSelectedPaths
ÀÇ ½Å±ÔÀÇ °ªpublic boolean getExpandsSelectedPaths()
expandsSelectedPaths
ÇÁ·ÎÆÛƼ¸¦ µ¹·ÁÁÝ´Ï´Ù.
setExpandsSelectedPaths(boolean)
public void setDragEnabled(boolean b)
dragEnabled
ÇÁ·ÎÆÛƼ¸¦ ¼³Á¤ÇÕ´Ï´Ù. ÀÌ ÄÄÆÛ³ÍÆ®·Î ÀÚµ¿ µå·¯±× ó¸® (µå·¯±×£¦µå·ÓÀÇ ÃÖÃÊÀÇ ºÎºÐ)¸¦ »ç¿ë °¡´ÉÇÏ°Ô ÇÏ´Â °æ¿ì´Â ÀÌ ÇÁ·ÎÆÛƼ¸¦ true
·Î ¼³Á¤ÇÕ´Ï´Ù. µå·¯±×·Î ¾î¶°ÇÑ Ã³¸®¸¦ ½Ç½ÃÇÏ·Á¸é ,transferHandler
ÇÁ·ÎÆÛƼ¸¦ null
ÀÌ¿ÜÀÇ °ªÀ¸·Î ¼³Á¤ÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù. dragEnabled
ÇÁ·ÎÆÛƼÀÇ µðÆúÆ® °ªÀº false
ÀÔ´Ï´Ù.
ÀÚµ¿ µå·¯±× 󸮸¦ »ç¿ë °¡´ÉÇÏ°Ô Çϸé(ÀÚ), À¯Àú°¡ ¼±Åà ¹üÀ§»ó¿¡¼ mouse button¸¦ ´·¯, ¸î°³ÀÇ Çȼ¿ºÐ ¸¶¿ì½º¸¦ À̵¿ÇßÀ» ¶§¿¡, ´ëºÎºÐÀÇ Look & Feel ·Î µå·¯±×£¦µå·Ó 󸮰¡ ½ÃÀ۵˴ϴÙ. ±× ¶§¹®¿¡, ÀÌ ÇÁ·ÎÆÛƼ¸¦ true
·Î ¼³Á¤Çϸé(ÀÚ), ¼±Åà ¹üÀ§ÀÇ µ¿ÀÛ¿¡ ¹Ì¹¦ÇÑ È¿°ú¸¦ ÁÙ ¼ö°¡ ÀÖ½À´Ï´Ù.
ÀÚµ¿ µå·¯±×£¦µå·ÓÀ» ¼Æ÷Æ®Çϰí ÀÖÁö ¾Ê´Â ÀϺÎÀÇ Look & Feel ¿¡¼´Â ÀÌ ÇÁ·ÎÆÛƼ°¡ ¹«½ÃµË´Ï´Ù. ÀÌ·± Á¾·ùÀÇ Look & Feel ¿¡ ´ëÀÀÇÏ·Á¸é ,TransferHandler
ÀÇ exportAsDrag
¸Þ¼Òµå¸¦ Á÷Á¢ È£ÃâÇϵµ·Ï(µíÀÌ) ÄÄÆÛ³ÍÆ®¸¦ º¯°æÇÕ´Ï´Ù.
b
- dragEnabled
ÇÁ·ÎÆÛƼ·Î ¼³Á¤ÇÏ´Â °ª
HeadlessException
- b
°¡ true
·Î GraphicsEnvironment.isHeadless()
°¡ true
¸¦ µ¹·ÁÁÖ´Â °æ¿ìGraphicsEnvironment.isHeadless()
,
getDragEnabled()
,
JComponent.setTransferHandler(javax.swing.TransferHandler)
,
TransferHandler
public boolean getDragEnabled()
dragEnabled
ÇÁ·ÎÆÛƼÀÇ °ªÀ» µ¹·ÁÁØ´Ù
dragEnabled
ÇÁ·ÎÆÛƼÀÇ °ªsetDragEnabled(boolean)
public boolean isPathEditable(TreePath path)
isEditable
¸¦ µ¹·ÁÁÝ´Ï´Ù. ÀÌ ¸Þ¼Òµå´Â ÆíÁýÀÌ ½ÃÀ۵DZâ Àü¿¡ UI ·ÎºÎÅÍ ºÒ·Á °¡ ÁöÁ¤µÈ ÆÐ½º¸¦ ÆíÁýÇÒ ¼ö ÀÖ°Ô ÇÕ´Ï´Ù. ÀÌ ¸Þ¼Òµå´Â »õ·Î¿î ¿¡µðÅ͸¦ ÀÛ¼ºÇÏ´Â ÀÏ ¾øÀÌ ÇÊÅÍ ÆíÁýÀ» Ãß°¡Çϱâ À§ÇÑ »çºêÅ©¶ó»çÀÇ ¿£Æ®¸® Æ÷ÀÎÆ®·Î¼ Á¦°øµË´Ï´Ù.
isEditable()
public String getToolTipText(MouseEvent event)
JComponent
ÀÇ getToolTipText
¸Þ¼Òµå¸¦ ¿À¹ö¶óÀ̵å(override) ÇØ, ·»´õ¸µÀÇ ÈùÆ® (ÅØ½ºÆ® ¼¼Æ®°¡ ÀÖ´Â °æ¿ì)¸¦ »ç¿ëÇÒ ¼ö ÀÖ°Ô ÇÕ´Ï´Ù.
ÁÖ: JTree
°¡ ·»´õ¸µÀÇ Åø ÈùÆ®¸¦ ¿Ã¹Ù¸£°Ô Ç¥½ÃÇϱâ À§Çؼ´Â JTree
°¡ ÄÄÆÛ³ÍÆ®·Î¼ ToolTipManager
¿¡ µî·ÏµÇ¾î ÀÖÀ» Çʿ䰡 ÀÖ½À´Ï´Ù. µî·ÏÇÏ·Á¸é ,ToolTipManager.sharedInstance(). registerComponent(tree)
¸¦ È£ÃâÇÕ´Ï´Ù. À̰ÍÀº ÀÚµ¿ÀûÀ¸·Î ÇÏÇà ±úÁöÁö ¾Ê½À´Ï´Ù.
JComponent
³»ÀÇ getToolTipText
event
- ToolTip
ÀÇ Ç¥½Ã¸¦ ±âµ¿ÇÑ MouseEvent
event
°¡ null ÀÇ °æ¿ì´Â null
public String convertValueToText(Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus)
value.toString
¸¦ µ¹·ÁÁÖ¾î, ´Ù¸¥ ¸ðµç Àμö¸¦ ¹«½ÃÇÕ´Ï´Ù. º¯È¯À» Á¦¾îÇÏ·Á¸é , ÀÌ ¸Þ¼Òµå¸¦ ¼ºê Ŭ·¡½ºÈÇØ, ÇÊ¿äÇÑ ÀÓÀÇÀÇ Àμö¸¦ »ç¿ëÇÕ´Ï´Ù.
value
- ÅØ½ºÆ®·Î º¯È¯ÇÏ´Â Object
selected
- ³ëµå°¡ ¼±Åõǰí ÀÖ´Â °æ¿ì´Â trueexpanded
- ³ëµå°¡ Àü°³µÇ°í ÀÖ´Â °æ¿ì´Â trueleaf
- ³ëµå°¡ ÀÙ³ëµåÀÇ °æ¿ì´Â truerow
- ³ëµåÀÇ Ç¥½ÃÇàÀ» ÁöÁ¤ÇÏ´Â int Ä¡. 0 Àº ÃÖÃÊÀÇ ÇàhasFocus
- ³ëµå°¡ Æ÷Ä¿½º¸¦ °¡Áö´Â °æ¿ì´Â true
String
Ç¥Çöpublic int getRowCount()
public void setSelectionPath(TreePath path)
getExpandsSelectedPaths
°¡ true ÀÇ °æ¿ì¿¡´Â Ç¥½Ã °¡´ÉÇÏ°Ô µË´Ï´Ù.
path
- ¼±ÅÃÇÏ´Â ³ëµå¸¦ ÁöÁ¤ÇÏ´Â TreePath
public void setSelectionPaths(TreePath [] paths)
getExpandsSelectedPaths
°¡ true ÀÇ °æ¿ì¿¡´Â Ç¥½Ã °¡´ÉÇÏ°Ô µË´Ï´Ù.
paths
- ¼±ÅÃÇÏ´Â ³ëµå¸¦ ÁöÁ¤ÇÏ´Â TreePath
¿ÀºêÁ§Æ®ÀÇ ¹è¿public void setLeadSelectionPath(TreePath newPath)
JTree
¿¡ ÀÇÇØ À¯ÁöµÇ´Â °ÍÀÌ ¾Æ´Ï¶ó, UI °¡ °»½ÅÇÕ´Ï´Ù.
newPath
- »õ·Î¿î ¸®µå ÆÐ½ºpublic void setAnchorSelectionPath(TreePath newPath)
JTree
¿¡ ÀÇÇØ À¯ÁöµÇ´Â °ÍÀÌ ¾Æ´Ï¶ó, UI °¡ °»½ÅÇÕ´Ï´Ù.
newPath
- »õ·Î¿î ¿¨Ä¿ ÆÐ½ºpublic void setSelectionRow(int row)
row
- ¼±ÅÃÇÏ´Â Çà. 0 Àº ÃÖÃÊÀÇ Çàpublic void setSelectionRows(int[] rows)
rows
ÀÇ Æ¯Á¤ÀÇ ¿ä¼Ò°¡ < 0 ¶Ç´Â >= getRowCount
ÀÇ °æ¿ì, ±× ¿ä¼Ò´Â ¹«½ÃµË´Ï´Ù. rows
ÀÇ ¸ðµç ¿ä¼Ò°¡ ¹«È¿ÀÎ ÇàÀÎ °æ¿ì, ¼±ÅÃÀº Ŭ¸®¾î µË´Ï´Ù. Áï,clearSelection
°¡ ºÒ·Á °¬À» °æ¿ì¿Í °°½À´Ï´Ù.
rows
- ¼±ÅÃÇÏ´Â ÇàÀ» ÁöÁ¤ÇÏ´Â int ÀÇ ¹è¿. 0 Àº ÃÖÃÊÀÇ ÇàÀ» ³ªÅ¸³½´Ùpublic void addSelectionPath(TreePath path)
TreePath
¿¡ ÀÇÇØ ½Äº°µÇ´Â ³ëµå¸¦ ÇöÀçÀÇ ¼±Åÿ¡ Ãß°¡ÇÕ´Ï´Ù. ±× ÆÐ½ºÀÇ ÄÄÆÛ³ÍÆ®°¡ Ç¥½Ã °¡´ÉÇÏÁö ¾Ê°í getExpandsSelectedPaths
°¡ true ÀÇ °æ¿ì¿¡´Â Ç¥½Ã °¡´ÉÇÏ°Ô µË´Ï´Ù.
JTree
¿¡¼´Â °°Àº ºÎ¸ðÀÇ ¾ÆÀ̷μ °°Àº ³ëµå¸¦ Áߺ¹ ½Ãų ¼ö ¾ø½À´Ï´Ù. °¢ ÇüÁ¦ À§Á¦Æ®´Â ÀÏÀÇÀÇ ¿ÀºêÁ§Æ®ÀÎ °ÍÀÌ ÇÊ¿äÇÕ´Ï´Ù.
path
- Ãß°¡ÇÏ´Â TreePath
public void addSelectionPaths(TreePath [] paths)
getExpandsSelectedPaths
°¡ true ÀÇ °æ¿ì¿¡´Â Ç¥½Ã °¡´ÉÇÏ°Ô µË´Ï´Ù.
JTree
¿¡¼´Â °°Àº ºÎ¸ðÀÇ ¾ÆÀ̷μ °°Àº ³ëµå¸¦ Áߺ¹ ½Ãų ¼ö ¾ø½À´Ï´Ù. °¢ ÇüÁ¦ À§Á¦Æ®´Â ÀÏÀÇÀÇ ¿ÀºêÁ§Æ®ÀÎ °ÍÀÌ ÇÊ¿äÇÕ´Ï´Ù.
paths
- Ãß°¡ÇÏ´Â ³ëµå¸¦ ÁöÁ¤ÇÏ´Â TreePath
¿ÀºêÁ§Æ®ÀÇ ¹è¿public void addSelectionRow(int row)
row
- Ãß°¡ÇÏ´Â ³ëµåÀÇ ÇàÀ» ÁöÁ¤ÇÏ´Â int Ä¡. 0 Àº ÃÖÃÊÀÇ Çàpublic void addSelectionRows(int[] rows)
rows
- Ãß°¡ÇÏ´Â ÇàÀ» ÁöÁ¤ÇÏ´Â int ÀÇ ¹è¿. 0 Àº ÃÖÃÊÀÇ ÇàÀ» ³ªÅ¸³½´Ùpublic Object getLastSelectedPathComponent()
TreePath
¿¡ ÀÖ´Â ¸¶Áö¸· Object
. ¾Æ¹«°Íµµ ¼±ÅõǾî ÀÖÁö ¾ÊÀº °æ¿ì´Â null
TreePath.getLastPathComponent()
public TreePath getLeadSelectionPath()
public TreePath getAnchorSelectionPath()
public TreePath getSelectionPath()
TreePath
. ÇöÀç ¾Æ¹«°Íµµ ¼±ÅõǾî ÀÖÁö ¾ÊÀº °æ¿ì´Â null
public TreePath [] getSelectionPaths()
TreePath
¿ÀºêÁ§Æ®ÀÇ ¹è¿. ÇöÀç ¾Æ¹«°Íµµ ¼±ÅõǾî ÀÖÁö ¾ÊÀº °æ¿ì´Â null
public int[] getSelectionRows()
TreeSelectionModel
¿¡ Àü¼Û µË´Ï´Ù. ¾Æ¹«°Íµµ ¼±ÅõǾî ÀÖÁö ¾ÊÀº °æ¿ì´Â null
¶Ç´Â ÇÏ´ÃÀÇ ¹è¿ÀÌ µ¹·ÁÁÖ¾îÁý´Ï´Ù. ¾î´À ÂÊÀÌ µ¹·ÁÁÖ¾îÁú±î´Â TreeSelectionModel
ÀÇ ±¸Çö¿¡ µû¶ó¼ ´Ù¸¨´Ï´Ù.
public int getSelectionCount()
public int getMinSelectionRow()
public int getMaxSelectionRow()
public int getLeadSelectionRow()
leadPath
°¡ null
ÀÇ °æ¿ì´Â -1public boolean isPathSelected(TreePath path)
path
- ³ëµå¸¦ ½Äº°ÇÏ´Â TreePath
public boolean isRowSelected(int row)
row
- Ç¥½ÃÇàÀ» ÁöÁ¤ÇÏ´Â int Ä¡. 0 Àº ÃÖÃÊÀÇ Çà
public Enumeration getExpandedDescendants(TreePath parent)
parent
ÀÇ ÇÏÀ§ ³ëµå·ÎºÎÅÍ ¿Ï¼ºµÇ´Â Enumeration
¸¦ µ¹·ÁÁÝ´Ï´Ù. parent
°¡ ÇöÀç Àü°³µÇ¾î ÀÖÁö ¾ÊÀº °æ¿ì, ÀÌ ¸Þ¼Òµå´Â null
¸¦ µ¹·ÁÁÝ´Ï´Ù. µ¹·ÁÁÖ¾îÁø Enumeration
·Î ¹Ýº¹Çϰí ÀÖ´Â µ¿¾È ³ëµå¸¦ Àü°³ÇÏ´ÂÁö ¼ö³³Çϸé(ÀÚ), ÀÌ ¸Þ¼Òµå´Â Àü°³µÈ ¸ðµç ÆÐ½º¸¦ µ¹·ÁÁÖ´Â °ÍÀÌ ¾Æ´Ï¶ó, ±× ÀÌ»ó Àü°³µÇ¾î ÀÖÁö ¾ÊÀº ÆÐ½º¸¦ µ¹·ÁÁÝ´Ï´Ù.
parent
- Á¶»çÇÒ ¼ö ÀÖ´Â ÆÐ½º
parent
ÀÇ ÇÏÀ§ ³ëµåÀÇ Enumeration
. parent
°¡ ÇöÀç Àü°³µÇ¾î ÀÖÁö ¾ÊÀº °æ¿ì´Â null
public boolean hasBeenExpanded(TreePath path)
path
°¡ Áö±Ý±îÁö Àü°³µÇ¾úÀ» °æ¿ì´Â truepublic boolean isExpanded(TreePath path)
path
- Á¶»çÇÏ´Â ³ëµå¸¦ ÁöÁ¤ÇÏ´Â TreePath
public boolean isExpanded(int row)
row
- Á¶»çÇÏ´Â Çà. 0 Àº ÃÖÃÊÀÇ Çà
public boolean isCollapsed(TreePath path)
path
- Á¶»çÇÏ´Â TreePath
public boolean isCollapsed(int row)
row
- Á¶»çÇÏ´Â Çà. 0 Àº ÃÖÃÊÀÇ Çà
public void makeVisible(TreePath path)
path
- °¡½Ã·Î ÇÏ´Â TreePath
public boolean isVisible(TreePath path)
public Rectangle getPathBounds(TreePath path)
Rectangle
¸¦ µ¹·ÁÁÝ´Ï´Ù. ÆÐ½º¿¡ ÀÖ´Â ÄÄÆÛ³ÍÆ®°¡ ¼û¾î ÀÖ´Â (¼ö³³µÈ ºÎ¸ð¾Æ·¡¿¡ ÀÖ´Ù) °æ¿ì´Â null
¸¦ µ¹·ÁÁÝ´Ï´Ù.
ÁÖ:
ÀÌ ¸Þ¼Òµå´Â ÁöÁ¤µÈ ³ëµå°¡ ÇöÀç Ç¥½ÃµÇ¾î ÀÖÁö ¾ÊÀº °æ¿ì¿¡¼µµ À¯È¿ÇÑ ±¸ÇüÀ» µ¹·ÁÁÝ´Ï´Ù.
path
- ³ëµå¸¦ ½Äº°ÇÏ´Â TreePath
Rectangle
¶Ç´Â null
public Rectangle getRowBounds(int row)
Rectangle
¸¦ µ¹·ÁÁÝ´Ï´Ù.
row
- Ç¥Çö µÇ´Â Çà. 0 Àº ÃÖÃÊÀÇ Çà
Rectangle
public void scrollPathToVisible(TreePath path)
JTree
°¡ JScrollPane
¿¡ ÀúÀåµÇ°í ÀÖ´Â °æ¿ì¸¸ ±â´ÉÇÕ´Ï´Ù.
path
- Ç¥½ÃÇÏ´Â ³ëµå¸¦ ½Äº°ÇÏ´Â TreePath
public void scrollRowToVisible(int row)
JTree
°¡ JScrollPane
¿¡ ÀúÀåµÇ°í ÀÖ´Â °æ¿ì¸¸ ±â´ÉÇÕ´Ï´Ù.
row
- ½ºÅ©·Ñ ÇÏ´Â ÇàÀ» ÁöÁ¤ÇÏ´Â int Ä¡. 0 Àº ÃÖÃÊÀÇ Çàpublic TreePath getPathForRow(int row)
row
°¡ °¡½Ã°¡ ¾Æ´Ñ °æ¿ì´Â null
°¡ µ¹·ÁÁÖ¾îÁý´Ï´Ù.
row
- ÇàÀ» ÁöÁ¤ÇÏ´Â int Ä¡
TreePath
. row < 0
¶Ç´Â row > getRowCount()
ÀÇ °æ¿ì´Â null
public int getRowForPath(TreePath path)
path
- ³ëµå¸¦ ½Äº°ÇÏ´Â TreePath
public void expandPath(TreePath path)
path
- ³ëµå¸¦ ½Äº°ÇÏ´Â TreePath
public void expandRow(int row)
row
°¡ < 0 ¶Ç´Â >= getRowCount
ÀÇ °æ¿ì, ÀÌ ¸Þ¼Òµå´Â ¾Æ¹«°Íµµ ÇÏÁö ¾Ê½À´Ï´Ù.
row
- Ç¥½ÃÇàÀ» ÁöÁ¤ÇÏ´Â int Ä¡. 0 Àº ÃÖÃÊÀÇ Çàpublic void collapsePath(TreePath path)
path
- ³ëµå¸¦ ½Äº°ÇÏ´Â TreePath
public void collapseRow(int row)
row
°¡ < 0 ¶Ç´Â >= getRowCount
ÀÇ °æ¿ì, ÀÌ ¸Þ¼Òµå´Â ¾Æ¹«°Íµµ ÇÏÁö ¾Ê½À´Ï´Ù.
row
- Ç¥½ÃÇàÀ» ÁöÁ¤ÇÏ´Â int Ä¡. 0 Àº ÃÖÃÊÀÇ Çàpublic TreePath getPathForLocation(int x, int y)
x
- Ç¥½Ã area (¿ÞÂÊ ¸¶ÁøÀº Á¦¿ÜÇÏ´Ù)ÀÇ Á´ÜÀ¸·ÎºÎÅÍÀÇ ¼öÆò°Å¸®¸¦ ³ªÅ¸³»´Â int Ä¡ (Çȼ¿ ´ÜÀ§)y
- Ç¥½Ã area (»ó ¸¶ÁøÀº Á¦¿ÜÇÏ´Ù)ÀÇ »ó´ÜÀ¸·ÎºÎÅÍÀÇ ¼öÁ÷ °Å¸®¸¦ ³ªÅ¸³»´Â int Ä¡ (Çȼ¿ ´ÜÀ§)
TreePath
public int getRowForLocation(int x, int y)
x
- Ç¥½Ã area (¿ÞÂÊ ¸¶ÁøÀº Á¦¿ÜÇÏ´Ù)ÀÇ Á´ÜÀ¸·ÎºÎÅÍÀÇ ¼öÆò°Å¸®¸¦ ³ªÅ¸³»´Â int Ä¡ (Çȼ¿ ´ÜÀ§)y
- Ç¥½Ã area (»ó ¸¶ÁøÀº Á¦¿ÜÇÏ´Ù)ÀÇ »ó´ÜÀ¸·ÎºÎÅÍÀÇ ¼öÁ÷ °Å¸®¸¦ ³ªÅ¸³»´Â int Ä¡ (Çȼ¿ ´ÜÀ§)
getClosestRowForLocation(int, int)
public TreePath getClosestPathForLocation(int x, int y)
null
°¡ µ¹·ÁÁÖ¾îÁý´Ï´Ù. ±×·¸Áö ¾ÊÀº °æ¿ì, ÀÌ ¸Þ¼Òµå´Â Ç×»ó À¯È¿ÇÑ ÆÐ½º¸¦ µ¹·ÁÁÝ´Ï´Ù. ³ëµå°¡ Á¤È®ÇÏ°Ô x, y ÀÇ À§Ä¡¿¡ ÀÖÀ»Áö ¾î¶³Áö¸¦ Å×½ºÆ®ÇÏ·Á¸é , ³ëµåÀÇ °æ°è¸¦ ÃëµæÇØ, ±×°ÍÀ» ±âÁØ¿¡ x, y ¸¦ Å×½ºÆ®ÇÕ´Ï´Ù.
x
- Ç¥½Ã area (¿ÞÂÊ ¸¶ÁøÀº Á¦¿ÜÇÏ´Ù)ÀÇ Á´ÜÀ¸·ÎºÎÅÍÀÇ ¼öÆò°Å¸®¸¦ ³ªÅ¸³»´Â int Ä¡ (Çȼ¿ ´ÜÀ§)y
- Ç¥½Ã area (»ó ¸¶ÁøÀº Á¦¿ÜÇÏ´Ù)ÀÇ »ó´ÜÀ¸·ÎºÎÅÍÀÇ ¼öÁ÷ °Å¸®¸¦ ³ªÅ¸³»´Â int Ä¡ (Çȼ¿ ´ÜÀ§)
TreePath
. Ç¥½Ã °¡´ÉÇÑ ³ëµå°¡ ¾ø´Â °æ¿ì, ¶Ç´Â ¸ðµ¨ÀÌ ¾ø´Â °æ¿ì´Â null
getPathForLocation(int, int)
,
getPathBounds(javax.swing.tree.TreePath)
public int getClosestRowForLocation(int x, int y)
x
- Ç¥½Ã area (¿ÞÂÊ ¸¶ÁøÀº Á¦¿ÜÇÏ´Ù)ÀÇ Á´ÜÀ¸·ÎºÎÅÍÀÇ ¼öÆò°Å¸®¸¦ ³ªÅ¸³»´Â int Ä¡ (Çȼ¿ ´ÜÀ§)y
- Ç¥½Ã area (»ó ¸¶ÁøÀº Á¦¿ÜÇÏ´Ù)ÀÇ »ó´ÜÀ¸·ÎºÎÅÍÀÇ ¼öÁ÷ °Å¸®¸¦ ³ªÅ¸³»´Â int Ä¡ (Çȼ¿ ´ÜÀ§)
getRowForLocation(int, int)
,
getRowBounds(int)
public boolean isEditing()
getSelectionPath
¸¦ »ç¿ëÇØ ÃëµæÇÒ ¼ö ÀÖ½À´Ï´Ù.
getSelectionPath()
public boolean stopEditing()
DefaultTreeCellEditor
¿ÀºêÁ§Æ®´Â ¼¿»ó¿¡¼ ÁøÇàÁßÀÇ ÆíÁýÀ» ¸ðµÎ º¸Á¸ÇÕ´Ï´Ù. ´Ù¸¥ ±¸ÇöÀº ´Ù¸¥ µ¿ÀÛÀ» ÇÏ´Â °æ¿ì°¡ ÀÖ½À´Ï´Ù. Æ®¸®°¡ ÆíÁýµÇ¾î ÀÖÁö ¾ÊÀº °æ¿ì´Â ¾Æ¹«°Íµµ ÇÏÁö ¾Ê½À´Ï´Ù.
ÁÖ:
À¯Àú°¡ Æ®¸®³»¿¡¼ À̵¿ÇßÀ» ¶§¿¡ ÀÚµ¿ÀûÀ¸·Î ÆíÁýÀ» º¸Á¸ÇÏ·Á¸é ,setInvokesStopCellEditing(boolean)
¸¦ »ç¿ëÇÕ´Ï´Ù.
public void cancelEditing()
public void startEditingAtPath(TreePath path)
CellEditor
°¡ ÁöÁ¤µÈ Ç׸ñÀÇ ÆíÁýÀ» Çã°¡ÇÏÁö ¾Ê´Â °æ¿ì, ÆíÁýÀÇ ½Ãµµ´Â ½ÇÆÐÇÕ´Ï´Ù.
path
- ³ëµå¸¦ ½Äº°ÇÏ´Â TreePath
public TreePath getEditingPath()
TreePath
public void setSelectionModel(TreeSelectionModel selectionModel)
null
Ä¡¸¦ ÁöÁ¤Çϸé(ÀÚ), ¼±ÅÃÀ» Çã°¡ÇÏÁö ¾Ê´Â ÇÏ´ÃÀÇ selectionModel
°¡ »ç¿ëµË´Ï´Ù.
selectionModel
- »ç¿ëÇÏ´Â TreeSelectionModel
. ¼±ÅÃÀ» ¹«È¿·Î ÇÏ´Â °æ¿ì´Â null
TreeSelectionModel
public TreeSelectionModel getSelectionModel()
null
ÀÌ¿ÜÀÇ °ªÀ» µ¹·ÁÁÝ´Ï´Ù. ¼±ÅÃÀ» Çã°¡ÇÏ°í ½ÍÁö ¾ÊÀº °æ¿ì´Â ¼±Åà ¸ðµ¨À» null
·Î ¼³Á¤ÇØ °Á¦ÀûÀ¸·Î ÇÏ´ÃÀÇ ¼±Åà ¸ðµ¨À» »ç¿ëÇÕ´Ï´Ù.
setSelectionModel(javax.swing.tree.TreeSelectionModel)
protected TreePath [] getPathBetweenRows(int index0, int index1)
JTreePath
ÀÇ ÀνºÅϽº¸¦ µ¹·ÁÁÝ´Ï´Ù. Æ®¸®°¡ ¾ø´Â °æ¿ì´Â null
¸¦ µ¹·ÁÁÝ´Ï´Ù.
index0
- Ç¥½ÃÇàÀ» ÁöÁ¤ÇÏ´Â int Ä¡. 0 Àº ÃÖÃÊÀÇ Çàindex1
- 2 ¹øÂ°ÀÇ ÇàÀ» ÁöÁ¤ÇÏ´Â int Ä¡
TreePath
¿ÀºêÁ§Æ® (index0 ·ÎºÎÅÍ index1 ±îÁöÀÇ °¢ ³ëµå¿¡ 1 °³)ÀÇ ¹è¿. Æ®¸®°¡ ¾ø´Â °æ¿ì´Â null
public void setSelectionInterval(int index0, int index1)
index0
- Ç¥½ÃÇàÀ» ÁöÁ¤ÇÏ´Â int Ä¡. 0 Àº ÃÖÃÊÀÇ Çàindex1
- 2 ¹øÂ°ÀÇ ÇàÀ» ÁöÁ¤ÇÏ´Â int Ä¡public void addSelectionInterval(int index0, int index1)
index0
- Ç¥½ÃÇàÀ» ÁöÁ¤ÇÏ´Â int Ä¡. 0 Àº ÃÖÃÊÀÇ Çàindex1
- 2 ¹øÂ°ÀÇ ÇàÀ» ÁöÁ¤ÇÏ´Â int Ä¡public void removeSelectionInterval(int index0, int index1)
index0
- Ç¥½ÃÇàÀ» ÁöÁ¤ÇÏ´Â int Ä¡. 0 Àº ÃÖÃÊÀÇ Çàindex1
- 2 ¹øÂ°ÀÇ ÇàÀ» ÁöÁ¤ÇÏ´Â int Ä¡public void removeSelectionPath(TreePath path)
path
- ³ëµå¸¦ ½Äº°ÇÏ´Â TreePath
public void removeSelectionPaths(TreePath [] paths)
paths
- »èÁ¦ÇÏ´Â ³ëµå¸¦ ÁöÁ¤ÇÏ´Â TreePath
¿ÀºêÁ§Æ®ÀÇ ¹è¿public void removeSelectionRow(int row)
row
¿¡ ÀÖ´Â ÇàÀ» ÇöÀçÀÇ ¼±ÅÃÀ¸·ÎºÎÅÍ »èÁ¦ÇÕ´Ï´Ù.
public void removeSelectionRows(int[] rows)
public void clearSelection()
public boolean isSelectionEmpty()
public void addTreeExpansionListener(TreeExpansionListener tel)
TreeExpansion
À̺¥Æ®ÀÇ Ã»ÃëÀÚ¸¦ Ãß°¡ÇÕ´Ï´Ù.
tel
- Æ®¸® ³ëµå°¡ Àü°³µÇ¾úÀ» ¶§, ¶Ç´Â ¼ö³³µÇ¾úÀ» ¶§ (ºÎÀÇ Àü°³)¿¡ ÅëÁöµÇ´Â TreeExpansionListenerpublic void removeTreeExpansionListener(TreeExpansionListener tel)
TreeExpansion
À̺¥Æ®ÀÇ Ã»ÃëÀÚ¸¦ »èÁ¦ÇÕ´Ï´Ù.
tel
- »èÁ¦ÇÏ´Â TreeExpansionListener
public TreeExpansionListener [] getTreeExpansionListeners()
TreeExpansionListener
ÀÇ ¹è¿À» µ¹·ÁÁÝ´Ï´Ù.
TreeExpansionListener
ÀÇ ¸ðµÎ. ûÃëÀÚ°¡ Ãß°¡µÇ¾î ÀÖÁö ¾ÊÀº °æ¿ì´Â ÇÏ´ÃÀÇ ¹è¿public void addTreeWillExpandListener(TreeWillExpandListener tel)
TreeWillExpand
À̺¥Æ®ÀÇ Ã»ÃëÀÚ¸¦ Ãß°¡ÇÕ´Ï´Ù.
tel
- Æ®¸® ³ëµå°¡ Àü°³µÉ ¶§, ¶Ç´Â ¼ö³³µÉ ¶§ (ºÎÀÇ Àü°³)¿¡ ÅëÁöµÇ´Â TreeWillExpandListener
public void removeTreeWillExpandListener(TreeWillExpandListener tel)
TreeWillExpand
À̺¥Æ®ÀÇ Ã»ÃëÀÚ¸¦ »èÁ¦ÇÕ´Ï´Ù.
tel
- »èÁ¦ÇÏ´Â TreeWillExpandListener
public TreeWillExpandListener [] getTreeWillExpandListeners()
TreeWillExpandListener
ÀÇ ¹è¿À» µ¹·ÁÁÝ´Ï´Ù.
TreeWillExpandListener
ÀÇ ¸ðµÎ. ûÃëÀÚ°¡ Ãß°¡µÇ¾î ÀÖÁö ¾ÊÀº °æ¿ì´Â ÇÏ´ÃÀÇ ¹è¿public void fireTreeExpanded(TreePath path)
path
ÆÄ¶ó¹ÌÅ͸¦ »ç¿ëÇØ, À̺¥Æ®ÀÇ ÀνºÅϽº´Â »ý¼ºµË´Ï´Ù.
path
- Àü°³µÈ ³ëµå¸¦ ³ªÅ¸³»´Â TreePath
EventListenerList
public void fireTreeCollapsed(TreePath path)
path
ÆÄ¶ó¹ÌÅ͸¦ »ç¿ëÇØ, À̺¥Æ®ÀÇ ÀνºÅϽº´Â »ý¼ºµË´Ï´Ù.
path
- ¼ö³³µÈ ³ëµå¸¦ ³ªÅ¸³»´Â TreePath
EventListenerList
public void fireTreeWillExpand(TreePath path) throws ExpandVetoException
path
ÆÄ¶ó¹ÌÅ͸¦ »ç¿ëÇØ, À̺¥Æ®ÀÇ ÀνºÅϽº´Â »ý¼ºµË´Ï´Ù.
path
- Àü°³µÈ ³ëµå¸¦ ³ªÅ¸³»´Â TreePath
ExpandVetoException
EventListenerList
public void fireTreeWillCollapse(TreePath path) throws ExpandVetoException
path
ÆÄ¶ó¹ÌÅ͸¦ »ç¿ëÇØ, À̺¥Æ®ÀÇ ÀνºÅϽº´Â »ý¼ºµË´Ï´Ù.
path
- Àü°³µÈ ³ëµå¸¦ ³ªÅ¸³»´Â TreePath
ExpandVetoException
EventListenerList
public void addTreeSelectionListener(TreeSelectionListener tsl)
TreeSelection
À̺¥Æ®ÀÇ Ã»ÃëÀÚ¸¦ Ãß°¡ÇÕ´Ï´Ù.
tsl
- ³ëµå°¡ ¼±ÅõǾúÀ» ¶§, ¶Ç´Â ¼±ÅÃÀÌ ÇØÁ¦µÇ¾úÀ» ¶§ (ºÎÀÇ ¼±ÅÃ)¿¡ ÅëÁöµÇ´Â TreeSelectionListener
public void removeTreeSelectionListener(TreeSelectionListener tsl)
TreeSelection
ûÃëÀÚ¸¦ »èÁ¦ÇÕ´Ï´Ù.
tsl
- »èÁ¦ÇÏ´Â TreeSelectionListener
public TreeSelectionListener [] getTreeSelectionListeners()
TreeSelectionListener
ÀÇ ¹è¿À» µ¹·ÁÁÝ´Ï´Ù.
TreeSelectionListener
ÀÇ ¸ðµÎ. ûÃëÀÚ°¡ Ãß°¡µÇ¾î ÀÖÁö ¾ÊÀº °æ¿ì´Â ÇÏ´ÃÀÇ ¹è¿protected void fireValueChanged(TreeSelectionEvent e)
e
- ¹æ¾Æ¼è ÇÏ´Â TreeSelectionEvent
. ÀÌ À̺¥Æ®´Â ³ëµå°¡ ¼±ÅõǴÂÁö ¼±ÅÃÀÌ ÇØÁ¦µÉ ¶§ TreeSelectionModel
¿¡ ÀÇÇØ »ý¼ºµÇ´ÂEventListenerList
public void treeDidChange()
public void setVisibleRowCount(int newCount)
JScrollPane
¿¡ ÀúÀåµÇ°í ÀÖ´Â °æ¿ì¸¸ ±â´ÉÇØ, ½ºÅ©·Î¸£ÆäÀÎÀÇ ÀûÀýÇÑ »çÀÌÁ Á¶Á¤ÇÕ´Ï´Ù.
newCount
- Ç¥½ÃÇÏ´Â Çà¼öpublic int getVisibleRowCount()
public TreePath getNextMatch(String prefix, int startingRow, Position.Bias bias)
TreePath
·ÎºÎÅÍ Ä³¸¯ÅÍ ¶óÀο¡ÀÇ º¯È¯À» ó¸®ÇÏ·Á¸é ,convertValueToText
¸¦ »ç¿ëÇÕ´Ï´Ù.
prefix
- ÀÏÄ¡¸¦ Á¶»çÇϴ ij¸¯ÅÍ ¶óÀÎstartingRow
- °Ë»öÀ» °³½ÃÇÏ´Â Çàbias
- °Ë»ö ¹æÇâ. Position.Bias.Forward ¶Ç´Â Position.Bias.Backward
IllegalArgumentException
- prefix °¡ null ÀÇ °æ¿ì, ȤÀº startingRow °¡ ¹üÀ§¿ÜÀÇ °æ¿ìpublic Dimension getPreferredScrollableViewportSize()
JTree
ÀÇ ÀûÀýÇÑ Ç¥½Ã »çÀÌÁ µ¹·ÁÁÝ´Ï´Ù. ³ôÀÌ´Â getVisibleRowCount
·ÎºÎÅÍ °áÁ¤ÇÒ ¼ö ÀÖ¾î ÆøÀº ÇöÀçÀÇ ÀûÀýÇÑ ÆøÀÔ´Ï´Ù.
Scrollable
³»ÀÇ getPreferredScrollableViewportSize
Dimension
¿ÀºêÁ§Æ®JComponent.getPreferredSize()
public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)
Scrollable
³»ÀÇ getScrollableUnitIncrement
visibleRect
- ºäÆ÷Æ®³»ÀÇ °¡½ÃÀÇ ºä areaorientation
- SwingConstants.VERTICAL
¶Ç´Â SwingConstants.HORIZONTAL
direction
- »ó¶Ç´Â¿ÞÂÊÀ¸·Î ½ºÅ©·Ñ ÇÏ´Â °æ¿ì´Â 0 º¸´Ù ÀÛ°í, ¾Æ·¡ ¶Ç´Â ¿À¸¥ÂÊÀ¸·Î ½ºÅ©·Ñ ÇÏ´Â °æ¿ì´Â 0 º¸´Ù Å©´Ù
JScrollBar.setUnitIncrement(int)
public int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)
orientation
¿¡ ±Ù°ÅÇÑ visibleRect
ÀÇ ³ôÀÌ ¶Ç´Â ÆøÀÔ´Ï´Ù.
Scrollable
³»ÀÇ getScrollableBlockIncrement
visibleRect
- ºäÆ÷Æ®³»ÀÇ °¡½ÃÀÇ ºä areaorientation
- SwingConstants.VERTICAL
¶Ç´Â SwingConstants.HORIZONTAL
direction
- »ó¶Ç´Â¿ÞÂÊÀ¸·Î ½ºÅ©·Ñ ÇÏ´Â °æ¿ì´Â 0 º¸´Ù ÀÛ°í, ¾Æ·¡ ¶Ç´Â ¿À¸¥ÂÊÀ¸·Î ½ºÅ©·Ñ ÇÏ´Â °æ¿ì´Â 0 º¸´Ù Å©´Ù
JScrollBar.setBlockIncrement(int)
public boolean getScrollableTracksViewportWidth()
Scrollable
³»ÀÇ getScrollableTracksViewportWidth
Scrollable.getScrollableTracksViewportWidth()
public boolean getScrollableTracksViewportHeight()
Scrollable
³»ÀÇ getScrollableTracksViewportHeight
Scrollable.getScrollableTracksViewportHeight()
protected void setExpandedState(TreePath path, boolean state)
JTree
ÀÇ Àü°³ »óŸ¦ ¼³Á¤ÇÕ´Ï´Ù. state
°¡ true ÀÇ °æ¿ì,path
ÀÇ ¸ðµç ºÎ¸ð ¹× ÆÐ½º¿¡ Àü°³ÀÇ ¸¶Å©¸¦ ºÙÀÏ ¼ö ÀÖ½À´Ï´Ù. state
°¡ false ÀÇ °æ¿ì,path
ÀÇ ¸ðµç ºÎ¸ð´Â EXPANDED ·Î ³ªÅ¸³³´Ï´Ù¸¸,path
ÀÚü´Â ¼ö³³µÇ°í ÀÖ´Â °ÍÀÌ ³ªÅ¸³³´Ï´Ù.
À̰ÍÀº TreeWillExpandListener
¿¡ °ÅºÎµÇ´Â °æ¿ì´Â ½ÇÆÐÇÕ´Ï´Ù.
protected Enumeration getDescendantToggledPaths(TreePath parent)
parent
ÀÇ ÇÏÀ§ ³ëµåÀ̸ç, Àü°³µÇ°í ÀÖ´Â TreePaths
ÀÇ Enumeration
¸¦ µ¹·ÁÁÝ´Ï´Ù.
protected void removeDescendantToggledPaths(Enumeration toRemove)
toRemove
¿¡ ÀÖ´Â Àü°³µÇ°í ÀÖ´Â TreePaths
ÀÇ ÇÏÀ§ ³ëµå¸¦ »èÁ¦ÇÕ´Ï´Ù.
protected void clearToggledPaths()
TreeExpansionListener
À̺¥Æ®¸¦ ¼ÛÃâÇÏÁö ¾Ê½À´Ï´Ù.
protected TreeModelListener createTreeModelListener()
TreeModelHandler
ÀÇ ÀνºÅϽº¸¦ »ý¼ºÇØ µ¹·ÁÁÝ´Ï´Ù. µ¹·ÁÁÖ¾îÁø ¿ÀºêÁ§Æ®´Â TreeModel
°¡ º¯°æµÇ¾úÀ» ¶§¿¡ Àü°³ »óŸ¦ °»½ÅÇÕ´Ï´Ù.
Àü°³ »óÅÂÀÇ ÀÚ¼¼ÇÑ °ÍÀº »ó±âÀÇ JTree ÀÇ ¼³¸íÀ» ÂüÁ¶ÇØ ÁÖ¼¼¿ä.
protected boolean removeDescendantSelectedPaths(TreePath path, boolean includePath)
path
ÀÇ ÇÏÀ§ ³ëµåÀÎ ¼±ÅÃµÈ ¸ðµç ÆÐ½º¸¦ »èÁ¦ÇÕ´Ï´Ù. includePath
°¡ true ·Î path
°¡ ¼±Åõǰí ÀÖ´Â °æ¿ì´Â ¼±ÅÃÀ¸·ÎºÎÅÍ »èÁ¦µË´Ï´Ù.
protected String paramString()
JTree
ÀÇ Ä³¸¯ÅÍ ¶óÀΠǥÇöÀ» µ¹·ÁÁÝ´Ï´Ù. ÀÌ ¸Þ¼Òµå´Â µð¹ö±× Àü¿ëÀ̸ç, µ¹·ÁÁÖ¾îÁö´Â ij¸¯ÅÍ ¶óÀÎÀÇ ³»¿ë ¹× Çü½ÄÀº ±¸Çö¿¡ µû¶ó¼ ´Ù¸¨´Ï´Ù. µ¹·ÁÁÖ¾îÁö´Â ij¸¯ÅÍ ¶óÀÎÀº ºñ¾úÀ» °æ¿ì°¡ ÀÖ½À´Ï´Ù¸¸,null
·Î´Â µÇÁö ¾Ê½À´Ï´Ù.
JComponent
³»ÀÇ paramString
JTree
ÀÇ Ä³¸¯ÅÍ ¶óÀΠǥÇöpublic AccessibleContext getAccessibleContext()
Accessible
³»ÀÇ getAccessibleContext
JComponent
³»ÀÇ getAccessibleContext
|
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.