added getSelectedEntry.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3020 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -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;
|
package com.threerings.admin.client;
|
||||||
|
|
||||||
@@ -160,6 +160,15 @@ public class DSetEditor extends JPanel
|
|||||||
return _table;
|
return _table;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the currently selected entry.
|
||||||
|
*/
|
||||||
|
public DSet.Entry getSelectedEntry ()
|
||||||
|
{
|
||||||
|
int row = _table.getSelectedRow();
|
||||||
|
return (row == -1) ? null : _model.getEntry(row);
|
||||||
|
}
|
||||||
|
|
||||||
// documentation inherited
|
// documentation inherited
|
||||||
public Dimension getPreferredSize ()
|
public Dimension getPreferredSize ()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user