From 92367ee43fabe55b6d9e031b3eb229fb4735d955 Mon Sep 17 00:00:00 2001 From: shaper Date: Sat, 27 Apr 2002 00:23:49 +0000 Subject: [PATCH] [Check-in gremlins helping Walter out] Added getSelectionLabel(). git-svn-id: https://samskivert.googlecode.com/svn/trunk@714 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- .../java/com/samskivert/swing/CollapsibleList.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/projects/samskivert/src/java/com/samskivert/swing/CollapsibleList.java b/projects/samskivert/src/java/com/samskivert/swing/CollapsibleList.java index 3716a6c2..86e9c811 100644 --- a/projects/samskivert/src/java/com/samskivert/swing/CollapsibleList.java +++ b/projects/samskivert/src/java/com/samskivert/swing/CollapsibleList.java @@ -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. */