Oracle Fusion Middleware Java API Reference for Oracle ADF Model Tester
11g Release 2 (11.1.2.0.0)

E17487-01

oracle.jbo.jbotester
Class JboTesterUtil

java.lang.Object
  extended by oracle.jbo.jbotester.JboTesterUtil

public final class JboTesterUtil
extends java.lang.Object


Field Summary
static java.lang.String IMAGELOC
           
 
Constructor Summary
JboTesterUtil()
           
 
Method Summary
static void addSpacerPanel(javax.swing.JPanel panel, int x, int y)
           
static void centerWindow(java.awt.Window window)
           
static javax.swing.JButton createButton(int buttonResId)
          Instantiates a new JButton The text is taken from the resource ID, and the mnemonic is assigned if specified in the resource string.
static javax.swing.JButton createButton(java.lang.String buttonLabel)
          Instantiates a new JButton The specified text is used at the label text The mnemonic is assigned if specified in the text.
static javax.swing.JCheckBox createCheckBox(int checkBoxLabelID)
           
static javax.swing.JCheckBox createCheckBox(java.lang.String checkBoxLabel)
          Create a checkbox with the specified label Assign a mnemonic if the label has a mnemonic key specified
static javax.swing.JLabel createLabel(int labelResId, java.awt.Component labelFor)
           
static javax.swing.JLabel createLabel(java.lang.String stringLabel, java.awt.Component labelFor)
           
static java.lang.String createValidControlName(java.lang.String name)
           
static void createViewCriteria(MainFrame parent, oracle.jbo.ViewObject vo)
           
static void editBindParameters(MainFrame parent, oracle.jbo.ViewObject vo)
           
static java.lang.String getAttributeKind(int flag)
           
static java.lang.String getDataAsXML(oracle.jbo.ViewObject vo)
           
static java.util.ArrayList<oracle.jbo.AttributeDef> getDisplayableAttributeList(oracle.jbo.StructureDef structureDef, oracle.jbo.LocaleContext locale)
           
static java.util.ArrayList<oracle.jbo.AttributeDef> getDisplayableAttributeList(oracle.jbo.StructureDef structureDef, oracle.jbo.LocaleContext locale, java.lang.String category, boolean summaryForm)
           
static oracle.jbo.AttributeDef[] getDisplayableAttributes(oracle.jbo.StructureDef structureDef, oracle.jbo.LocaleContext locale)
           
static javax.swing.ImageIcon getIcon(java.lang.String iconName)
           
static int getMnemonicKeyCode(int resId)
           
static int getMnemonicKeyCode(java.lang.String string)
          Returns the key code for the mnemonic in the string.
static java.lang.String getUpdateableFlag(int flag)
           
static boolean hasBindParameters(oracle.jbo.ViewObject vo)
           
static void removeKeyBindingCompatibility(javax.swing.JTextField tf)
           
static java.lang.String stripMnemonic(int resId)
           
static java.lang.String stripMnemonic(java.lang.String string)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IMAGELOC

public static final java.lang.String IMAGELOC
See Also:
Constant Field Values
Constructor Detail

JboTesterUtil

public JboTesterUtil()
Method Detail

centerWindow

public static void centerWindow(java.awt.Window window)

getDataAsXML

public static java.lang.String getDataAsXML(oracle.jbo.ViewObject vo)

getDisplayableAttributes

public static oracle.jbo.AttributeDef[] getDisplayableAttributes(oracle.jbo.StructureDef structureDef,
                                                                 oracle.jbo.LocaleContext locale)

getDisplayableAttributeList

public static java.util.ArrayList<oracle.jbo.AttributeDef> getDisplayableAttributeList(oracle.jbo.StructureDef structureDef,
                                                                                       oracle.jbo.LocaleContext locale)

getDisplayableAttributeList

public static java.util.ArrayList<oracle.jbo.AttributeDef> getDisplayableAttributeList(oracle.jbo.StructureDef structureDef,
                                                                                       oracle.jbo.LocaleContext locale,
                                                                                       java.lang.String category,
                                                                                       boolean summaryForm)

getIcon

public static javax.swing.ImageIcon getIcon(java.lang.String iconName)

removeKeyBindingCompatibility

public static void removeKeyBindingCompatibility(javax.swing.JTextField tf)

createViewCriteria

public static void createViewCriteria(MainFrame parent,
                                      oracle.jbo.ViewObject vo)

editBindParameters

public static void editBindParameters(MainFrame parent,
                                      oracle.jbo.ViewObject vo)

hasBindParameters

public static boolean hasBindParameters(oracle.jbo.ViewObject vo)

stripMnemonic

public static java.lang.String stripMnemonic(int resId)

stripMnemonic

public static java.lang.String stripMnemonic(java.lang.String string)

getMnemonicKeyCode

public static int getMnemonicKeyCode(int resId)

getMnemonicKeyCode

public static int getMnemonicKeyCode(java.lang.String string)
Returns the key code for the mnemonic in the string. Returns VK_UNDEFINED if the string does not contain a mnemonic.


createButton

public static javax.swing.JButton createButton(int buttonResId)
Instantiates a new JButton The text is taken from the resource ID, and the mnemonic is assigned if specified in the resource string.

Parameters:
buttonResId - the resource ID
Returns:
the new JButton

createButton

public static javax.swing.JButton createButton(java.lang.String buttonLabel)
Instantiates a new JButton The specified text is used at the label text The mnemonic is assigned if specified in the text.

Parameters:
buttonLabel -
Returns:
the new JButton

createCheckBox

public static javax.swing.JCheckBox createCheckBox(int checkBoxLabelID)

createCheckBox

public static javax.swing.JCheckBox createCheckBox(java.lang.String checkBoxLabel)
Create a checkbox with the specified label Assign a mnemonic if the label has a mnemonic key specified

Parameters:
checkBoxLabel -
Returns:
the new CheckBox

createLabel

public static javax.swing.JLabel createLabel(int labelResId,
                                             java.awt.Component labelFor)

createLabel

public static javax.swing.JLabel createLabel(java.lang.String stringLabel,
                                             java.awt.Component labelFor)

addSpacerPanel

public static void addSpacerPanel(javax.swing.JPanel panel,
                                  int x,
                                  int y)

createValidControlName

public static java.lang.String createValidControlName(java.lang.String name)

getUpdateableFlag

public static java.lang.String getUpdateableFlag(int flag)

getAttributeKind

public static java.lang.String getAttributeKind(int flag)

Oracle Fusion Middleware Java API Reference for Oracle ADF Model Tester
11g Release 2 (11.1.2.0.0)

E17487-01

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