Oracle™ Business Intelligence Beans Java API Reference
Release 10
g (9.0.4)
Part number B12159_01


oracle.dss.datautil.gui.accessible
Class AccessibleUtils

java.lang.Object
  |
  +--oracle.dss.datautil.gui.accessible.AccessibleUtils

public class AccessibleUtils
extends java.lang.Object

Utility class for accessibility that contains methods that relate to the data beans.

Application developers should not use this class. It is for internal use only.

See Also:
AccessibleLabel, AccessiblePanel

Constructor Summary
AccessibleUtils()
           

 

Method Summary
static javax.swing.JButton getButton(java.lang.String strText)
          Retrieves a JButton that is based on the specified text value that is processed for mnemonics.
static javax.swing.JLabel getLabel(java.lang.String strText)
          Retrieves a JLabel that is based on the specified text value that is processed for mnemonics.
static javax.swing.JLabel getLabel(java.lang.String strText, int horizontalAlignment)
          Retrieves a JLabel that is based on the specified text value that is processed for mnemonics.
static javax.swing.JRadioButton getRadioButton(java.lang.String strText, float alignmentY)
          Retrieves a JRadioButton that is based on the specified text value that is processed for mnemonics.
static void setFocusToFirstSelectedRow(javax.swing.JTree jTree, java.awt.event.FocusEvent focusEvent)
          Specifies to change focus to the first selected row in the JTree.
static void setLabelFor(java.awt.Component componentFrom, java.awt.Component componentTo, boolean blnFirstTimeOnly)
          Specifies to prepend the accessibility name from the "from" component to the accessibility name from the "to" component.
static void setLabelFor(javax.swing.JLabel jLabel, javax.swing.JComboBox jComboBox)
          Specifies to associate a label with a combo box to simplify focus control.
static void setLabelText(javax.swing.JButton jButton, java.lang.String strText)
          Specifies the text value that associated with the specified JLabel that is processed for mnemonics.
static void setLabelText(javax.swing.JLabel jLabel, java.lang.String strText)
          Specifies the text value that associated with the specified JLabel that is processed for mnemonics.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

AccessibleUtils

public AccessibleUtils()
Method Detail

setLabelFor

public static void setLabelFor(java.awt.Component componentFrom,
                               java.awt.Component componentTo,
                               boolean blnFirstTimeOnly)
Specifies to prepend the accessibility name from the "from" component to the accessibility name from the "to" component. The "first time only" argument causes the accessibility name of the "to" component to revert back to its original text after losing focus. Otherwise, it stays the same every time.
Parameters:
componentFrom - The "from" Component from which to retrieve the accessibility name to prepend in front of the "to" Component.
componentTo - The "to" Component to which the accessibility name from the "from" Component is prepended.
blnFirstTimeOnly - true if the accessibility name of the "to" component reverts to its original text after losing focus, false otherwise.

setLabelFor

public static void setLabelFor(javax.swing.JLabel jLabel,
                               javax.swing.JComboBox jComboBox)
Specifies to associate a label with a combo box to simplify focus control. When the combo box is editable, this method associates the label with the combo box's editor component instead of with the combo box itself.
Parameters:
jLabel - A JLabel value to associate with a combo box.
jComboBox - A JComboBox value to associate with the label.

getButton

public static javax.swing.JButton getButton(java.lang.String strText)
Retrieves a JButton that is based on the specified text value that is processed for mnemonics.
Parameters:
strText - A string that represents the button's text that is processed for mnemonics.
Returns:
JButton that represents the newly constructed button.

getRadioButton

public static javax.swing.JRadioButton getRadioButton(java.lang.String strText,
                                                      float alignmentY)
Retrieves a JRadioButton that is based on the specified text value that is processed for mnemonics.
Parameters:
strText - A string that represents the button's text that is processed for mnemonics.
alignmentY - A float that represents the button's Y alignment.
Returns:
JRadioButton that represents the newly constructed button.

getLabel

public static javax.swing.JLabel getLabel(java.lang.String strText,
                                          int horizontalAlignment)
Retrieves a JLabel that is based on the specified text value that is processed for mnemonics.
Parameters:
strText - A string that represents the label's text that is processed for mnemonics.
horizontalAlignmentY - An integer that represents the label's horizontal alignment.
Returns:
JLabel that represents the newly constructed label.

getLabel

public static javax.swing.JLabel getLabel(java.lang.String strText)
Retrieves a JLabel that is based on the specified text value that is processed for mnemonics. The alignment defaults to SwingConstants.LEFT.
Parameters:
strText - A string that represents the label's text that is processed for mnemonics.
Returns:
JLabel that represents the newly constructed label.

setLabelText

public static void setLabelText(javax.swing.JLabel jLabel,
                                java.lang.String strText)
Specifies the text value that associated with the specified JLabel that is processed for mnemonics.
Parameters:
jLabel - A JLabel that represents the label to process.
strText - A string that represents the label's text that is processed for mnemonics.

setLabelText

public static void setLabelText(javax.swing.JButton jButton,
                                java.lang.String strText)
Specifies the text value that associated with the specified JLabel that is processed for mnemonics.
Parameters:
jButton - A JButton that represents the button to process.
strText - A string that represents the button's text that is processed for mnemonics.

setFocusToFirstSelectedRow

public static void setFocusToFirstSelectedRow(javax.swing.JTree jTree,
                                              java.awt.event.FocusEvent focusEvent)
Specifies to change focus to the first selected row in the JTree. If no rows are selected, then it defaults to the first available row.
Parameters:
jTree - A JTree that represents the component whose focus you are trying to set.
focusEvent - A FocusEvent that is used to determine if the focus is being set on the JTree.

Oracle™ Business Intelligence Beans Java API Reference
Release 10
g (9.0.4)
Part number B12159_01


Copyright © 2003, Oracle. All Rights Reserved.