de.kleopatra.support
Class KleoUtilities

java.lang.Object
  extended byde.kleopatra.support.KleoUtilities

public class KleoUtilities
extends java.lang.Object

collection of utility methods...

Version:
$Revision: 1.4 $ $Date: 2004/10/01 13:43:56 $
Author:
(C) Jeanette Winzenburg, Berlin

Constructor Summary
KleoUtilities()
           
 
Method Summary
static javax.swing.AbstractButton findAbstractButton(java.awt.Container parent, java.lang.String name)
          returns the first component with name of type AbstractButton below parent.
static javax.accessibility.AccessibleAction findAccessibleActionByName(javax.accessibility.Accessible accessible, java.lang.String accessibleName)
           
static javax.accessibility.Accessible findAccessibleByName(javax.accessibility.Accessible accessible, java.lang.String accessibleName)
          recursively walks accessible and returns the accessible with the given name.
static javax.swing.JCheckBox findCheckBox(java.awt.Container parent, java.lang.String name)
          returns the first component with name of type JCheckBox below parent.
static java.awt.Component findChildByName(java.awt.Container parent, java.lang.String name)
          returns the first component with name below parent
static java.awt.Component findChildByName(java.awt.Container parent, java.lang.String name, boolean ignoreScrollPane)
          returns the first component with name below parent, ignoring ScrollPane if ignoreScrollPane is true.
static javax.swing.JComboBox findComboBox(java.awt.Container parent, java.lang.String name)
          returns the first component with name of type JComboBox below parent.
static java.awt.Component findComponentByName(java.awt.Component parent, java.lang.String name)
          returns the first component with name in parent (including parent)
static javax.swing.JFormattedTextField findFormattedText(javax.swing.JComponent parent, java.lang.String name)
          returns the first component with name of type JFormattedTextField below parent.
static javax.swing.JComponent findJChildByName(java.awt.Container parent, java.lang.String name)
          returns the first component with name of type JComponent below parent
static javax.swing.JComponent findJChildByName(java.awt.Container parent, java.lang.String name, boolean ignoreScrollPane)
          returns the first component with name of type JComponent below parent.
static javax.swing.JComponent findJComponentByName(java.awt.Component parent, java.lang.String name)
          returns the first component with name of type JComponent in parent (including parent)
static javax.swing.JLabel findLabel(java.awt.Container parent, java.lang.String name)
          returns the first component with name of type JLabel below parent.
static javax.swing.JList findList(java.awt.Container parent, java.lang.String name)
          returns the first component with name of type JList below parent, ignoring JScrollPane.
static javax.swing.JList findListChild(java.awt.Component parent)
          returns the first child of type JList below parent.
static java.awt.event.MouseListener findMouseListener(java.awt.Component list, java.lang.String partOfListenerClassName)
          returns a MouseListener with listener.getClass().getName() contains partOfListenerClassName.
static javax.swing.JPasswordField findPasswordField(java.awt.Container parent, java.lang.String name)
          returns the first component with name of type JTextField below parent.
static javax.swing.JProgressBar findProgressBar(java.awt.Container parent, java.lang.String name)
          returns the first component with name of type JProgressBar below parent.
static javax.swing.JRadioButton findRadioButton(java.awt.Container parent, java.lang.String name)
          returns the first component with name of type JRadioButton below parent.
static javax.swing.JScrollBar findScrollBar(java.awt.Container parent, java.lang.String name)
          returns the first component with name of type JScrollBar below parent.
static javax.swing.JSlider findSlider(java.awt.Container parent, java.lang.String name)
          returns the first component with name of type JSlider below parent.
static javax.swing.JSpinner findSpinner(java.awt.Container parent, java.lang.String name)
          returns the first component with name of type JSpinner below parent.
static javax.swing.JTable findTable(java.awt.Container parent, java.lang.String name)
          returns the first component with name of type JTable below parent, ignoring JScrollPane.
static javax.swing.JTable findTableChild(java.awt.Component parent)
          returns the first child of type JTable below parent.
static javax.swing.JTextArea findTextArea(java.awt.Container parent, java.lang.String name)
          returns the first component with name of type JTextArea below parent.
static javax.swing.text.JTextComponent findTextComponent(javax.swing.JComponent parent, java.lang.String name)
          returns the first component with name of type JTextComponent below parent.
static javax.swing.JTextField findTextField(java.awt.Container parent, java.lang.String name)
          returns the first component with name of type JTextField below parent.
static javax.swing.JTree findTree(java.awt.Container parent, java.lang.String name)
          returns the first component with name of type JTree below parent, ignoring JScrollPane.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KleoUtilities

public KleoUtilities()
Method Detail

findAccessibleByName

public static javax.accessibility.Accessible findAccessibleByName(javax.accessibility.Accessible accessible,
                                                                  java.lang.String accessibleName)
recursively walks accessible and returns the accessible with the given name. or null if nothing found below. POST: resultAccessible.getAccessibleContext().getAccessibleName().equals(accessibleName) OR resultAccessible == null NOTE: resultAccessible != null implies that getAccessibleContext() != null, so clients need not furtheer check for it.


findAccessibleActionByName

public static javax.accessibility.AccessibleAction findAccessibleActionByName(javax.accessibility.Accessible accessible,
                                                                              java.lang.String accessibleName)

findListChild

public static javax.swing.JList findListChild(java.awt.Component parent)
returns the first child of type JList below parent.


findTableChild

public static javax.swing.JTable findTableChild(java.awt.Component parent)
returns the first child of type JTable below parent.


findJComponentByName

public static javax.swing.JComponent findJComponentByName(java.awt.Component parent,
                                                          java.lang.String name)
returns the first component with name of type JComponent in parent (including parent)


findJChildByName

public static javax.swing.JComponent findJChildByName(java.awt.Container parent,
                                                      java.lang.String name)
returns the first component with name of type JComponent below parent


findJChildByName

public static javax.swing.JComponent findJChildByName(java.awt.Container parent,
                                                      java.lang.String name,
                                                      boolean ignoreScrollPane)
returns the first component with name of type JComponent below parent. if ignoreScrollPane continues search below a JScrollPane with same name.


findLabel

public static javax.swing.JLabel findLabel(java.awt.Container parent,
                                           java.lang.String name)
returns the first component with name of type JLabel below parent. NOTE: it stops searching if a component with name but wrong type is found.


findTextComponent

public static javax.swing.text.JTextComponent findTextComponent(javax.swing.JComponent parent,
                                                                java.lang.String name)
returns the first component with name of type JTextComponent below parent. NOTE: it stops searching if a component with name but wrong type is found.


findTextField

public static javax.swing.JTextField findTextField(java.awt.Container parent,
                                                   java.lang.String name)
returns the first component with name of type JTextField below parent. NOTE: it stops searching if a component with name but wrong type is found.


findPasswordField

public static javax.swing.JPasswordField findPasswordField(java.awt.Container parent,
                                                           java.lang.String name)
returns the first component with name of type JTextField below parent. NOTE: it stops searching if a component with name but wrong type is found.


findTextArea

public static javax.swing.JTextArea findTextArea(java.awt.Container parent,
                                                 java.lang.String name)
returns the first component with name of type JTextArea below parent. ignoring JScrollPane. NOTE: it stops searching if a component with name but wrong type is found.


findFormattedText

public static javax.swing.JFormattedTextField findFormattedText(javax.swing.JComponent parent,
                                                                java.lang.String name)
returns the first component with name of type JFormattedTextField below parent. NOTE: it stops searching if a component with name but wrong type is found.


findComboBox

public static javax.swing.JComboBox findComboBox(java.awt.Container parent,
                                                 java.lang.String name)
returns the first component with name of type JComboBox below parent. NOTE: it stops searching if a component with name but wrong type is found.


findAbstractButton

public static javax.swing.AbstractButton findAbstractButton(java.awt.Container parent,
                                                            java.lang.String name)
returns the first component with name of type AbstractButton below parent. NOTE: it stops searching if a component with name but wrong type is found.


findRadioButton

public static javax.swing.JRadioButton findRadioButton(java.awt.Container parent,
                                                       java.lang.String name)
returns the first component with name of type JRadioButton below parent. NOTE: it stops searching if a component with name but wrong type is found.


findCheckBox

public static javax.swing.JCheckBox findCheckBox(java.awt.Container parent,
                                                 java.lang.String name)
returns the first component with name of type JCheckBox below parent. NOTE: it stops searching if a component with name but wrong type is found.


findSpinner

public static javax.swing.JSpinner findSpinner(java.awt.Container parent,
                                               java.lang.String name)
returns the first component with name of type JSpinner below parent. NOTE: it stops searching if a component with name but wrong type is found.


findSlider

public static javax.swing.JSlider findSlider(java.awt.Container parent,
                                             java.lang.String name)
returns the first component with name of type JSlider below parent. NOTE: it stops searching if a component with name but wrong type is found.


findProgressBar

public static javax.swing.JProgressBar findProgressBar(java.awt.Container parent,
                                                       java.lang.String name)
returns the first component with name of type JProgressBar below parent. NOTE: it stops searching if a component with name but wrong type is found.


findScrollBar

public static javax.swing.JScrollBar findScrollBar(java.awt.Container parent,
                                                   java.lang.String name)
returns the first component with name of type JScrollBar below parent. NOTE: it stops searching if a component with name but wrong type is found.


findList

public static javax.swing.JList findList(java.awt.Container parent,
                                         java.lang.String name)
returns the first component with name of type JList below parent, ignoring JScrollPane. NOTE: it stops searching if a component with name but wrong type is found.


findTable

public static javax.swing.JTable findTable(java.awt.Container parent,
                                           java.lang.String name)
returns the first component with name of type JTable below parent, ignoring JScrollPane. NOTE: it stops searching if a component with name but wrong type is found.


findTree

public static javax.swing.JTree findTree(java.awt.Container parent,
                                         java.lang.String name)
returns the first component with name of type JTree below parent, ignoring JScrollPane. NOTE: it stops searching if a component with name but wrong type is found.


findComponentByName

public static java.awt.Component findComponentByName(java.awt.Component parent,
                                                     java.lang.String name)
returns the first component with name in parent (including parent)


findChildByName

public static java.awt.Component findChildByName(java.awt.Container parent,
                                                 java.lang.String name)
returns the first component with name below parent


findChildByName

public static java.awt.Component findChildByName(java.awt.Container parent,
                                                 java.lang.String name,
                                                 boolean ignoreScrollPane)
returns the first component with name below parent, ignoring ScrollPane if ignoreScrollPane is true.


findMouseListener

public static java.awt.event.MouseListener findMouseListener(java.awt.Component list,
                                                             java.lang.String partOfListenerClassName)
returns a MouseListener with listener.getClass().getName() contains partOfListenerClassName. Nice for tweaking listener lists.



Copyright © 2003, 2004 SwingEmpire Jeanette Winzenburg. All Rights Reserved.