From 0440f885e96b968685fd971ef3386b4d1e787673 Mon Sep 17 00:00:00 2001 From: Ingo Maier Date: Fri, 12 Aug 2011 16:50:51 +0000 Subject: Added some missing methods to ListView. --- src/swing/scala/swing/ListView.scala | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/swing') diff --git a/src/swing/scala/swing/ListView.scala b/src/swing/scala/swing/ListView.scala index c5a50752ea..9525efefa1 100644 --- a/src/swing/scala/swing/ListView.scala +++ b/src/swing/scala/swing/ListView.scala @@ -239,6 +239,11 @@ class ListView[A] extends Component { def prototypeCellValue: A = peer.getPrototypeCellValue.asInstanceOf[A] def prototypeCellValue_=(a: A) { peer.setPrototypeCellValue(a) } + def visibleRowCount = peer.getVisibleRowCount + def visibleRowCount_=(n: Int) = peer.setVisibleRowCount(n) + + def ensureIndexIsVisible(idx: Int) = peer.ensureIndexIsVisible(idx) + def selectionForeground: Color = peer.getSelectionForeground def selectionForeground_=(c: Color) = peer.setSelectionForeground(c) def selectionBackground: Color = peer.getSelectionBackground -- cgit v1.2.3