added getSelectedEntry.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3020 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2004-06-03 19:11:18 +00:00
parent c8f519fc85
commit d25c7adba6
@@ -1,5 +1,5 @@
//
// $Id: DSetEditor.java,v 1.2 2004/06/03 18:15:03 ray Exp $
// $Id: DSetEditor.java,v 1.3 2004/06/03 19:11:18 ray Exp $
package com.threerings.admin.client;
@@ -160,6 +160,15 @@ public class DSetEditor extends JPanel
return _table;
}
/**
* Get the currently selected entry.
*/
public DSet.Entry getSelectedEntry ()
{
int row = _table.getSelectedRow();
return (row == -1) ? null : _model.getEntry(row);
}
// documentation inherited
public Dimension getPreferredSize ()
{