[Check-in gremlins helping Walter out] Added getSelectionLabel().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@714 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: CollapsibleList.java,v 1.2 2002/04/23 17:05:47 shaper Exp $
|
||||
// $Id: CollapsibleList.java,v 1.3 2002/04/27 00:23:49 shaper Exp $
|
||||
|
||||
package com.samskivert.swing;
|
||||
|
||||
@@ -64,6 +64,15 @@ public class CollapsibleList extends JPanel
|
||||
return getSectionCount()-1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the label object associated with the title of the specified
|
||||
* section.
|
||||
*/
|
||||
public JLabel getSectionLabel (int index)
|
||||
{
|
||||
return (JLabel)getComponent(index*2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the list object associated with the specified section.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user