Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 1 (11.1.1.4.0)

E12063-05

oracle.dss.util
Class FocusUtility

java.lang.Object
  extended by oracle.dss.util.FocusUtility

public class FocusUtility
extends java.lang.Object


Constructor Summary
FocusUtility()
           
 
Method Summary
static void setFocusToFirstSelectedRow(javax.swing.JList list, java.awt.event.FocusEvent focusEvent)
          Changes focus to first selected row in JList.
static void setFocusToFirstSelectedRow(javax.swing.JTree jTree, java.awt.event.FocusEvent focusEvent)
          Changes focus to first selected row in JTree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FocusUtility

public FocusUtility()
Method Detail

setFocusToFirstSelectedRow

public static void setFocusToFirstSelectedRow(javax.swing.JTree jTree,
                                              java.awt.event.FocusEvent focusEvent)
Changes focus to first selected row in JTree. If there are no rows selected, it defaults to the first available.

Parameters:
jTree - a JTree value that represents the component whose focus we are trying to set.
focusEvent - a FocusEvent value that will be used to determine if the focus is being set on the JTree.

setFocusToFirstSelectedRow

public static void setFocusToFirstSelectedRow(javax.swing.JList list,
                                              java.awt.event.FocusEvent focusEvent)
Changes focus to first selected row in JList. If there are no rows selected, it defaults to the first available.

Parameters:
list - a JList value that represents the component whose focus we are trying to set.
focusEvent - a FocusEvent value that will be used to determine if the focus is being set on the JList.

Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 1 (11.1.1.4.0)

E12063-05

Copyright © 1997, 2011, Oracle. All rights reserved.