Mailing list - Entries of 2005


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [qftestJUI] qftestJui -- handling trivial names


  • Subject: Re: [qftestJUI] qftestJui -- handling trivial names
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: Wed, 09 Nov 2005 16:52:03 -0000

Hi Martin,

basically its every name that Java assigns itself, either because the
name depends on the order in which components are created, or because
names differ (or are not available) in different JDK versions.

The best way to test if qftest considers a name to be trivial is to
compare component.getName() to
ResolverRegistry.instance().getComponentName(component).
If the latter is null and the former isn't, the name is considered to
be trivial.

Currently the following names are suppressed:

Any name consisting of one of the following basenames and a number:

"button", "canvas", "checkbox", "choice", "dialog", "filedlg",
"frame", "label", "list", "menu", "menubar", "menuitem", "panel",
"popup", "scrollbar", "scrollpane", "textfield", "text", "win"

Any of the following names:

"###focusableSwingPopup###", "###overrideRedirect###",
"ColorChooser.panel", "ColorChooser.previewPanelHolder",
"ColorChooser.tabPane", "ComboBox.arrowButton", "ComboBox.list",
"ComboBox.listRenderer", "ComboBox.renderer", "ComboBox.rendererx",
"ComboBox.scrollPane", "ComboBox.textField", "ComboPopup.popup",
"GTKColorChooserPanel.colorWell",
"GTKColorChooserPanel.lastColorWell", "GTKColorChooserPanel.triangle",
"GTKFileChooser.accessoryPanel", "GTKFileChooser.bottomButtonPanel",
"GTKFileChooser.centerPanel", "GTKFileChooser.deleteFileButton",
"GTKFileChooser.directoryComboBox",
"GTKFileChooser.directoryComboBoxPanel",
"GTKFileChooser.directoryList", "GTKFileChooser.directoryListLabel",
"GTKFileChooser.directoryListPanel",
"GTKFileChooser.directoryListScrollPane", "GTKFileChooser.fileList",
"GTKFileChooser.fileListLabel", "GTKFileChooser.fileListPanel",
"GTKFileChooser.fileListScrollPane",
"GTKFileChooser.fileNameTextField", "GTKFileChooser.filterLabel",
"GTKFileChooser.interiorPanel", "GTKFileChooser.newFolderButton",
"GTKFileChooser.pathField", "GTKFileChooser.pathFieldLabel",
"GTKFileChooser.renameFileButton", "GTKFileChooser.splitPanel",
"GTKFileChooser.topButtonPanel", "InternalFrame.northPane",
"InternalFrameTitlePane.closeButton",
"InternalFrameTitlePane.iconifyButton",
"InternalFrameTitlePane.maximizeButton",
"InternalFrameTitlePane.menuButton", "OptionPane.body",
"OptionPane.break", "OptionPane.button", "OptionPane.buttonArea",
"OptionPane.comboBox", "OptionPane.iconLabel", "OptionPane.label",
"OptionPane.list", "OptionPane.messageArea", "OptionPane.realBody",
"OptionPane.scrollPane", "OptionPane.separator",
"OptionPane.textField", "OptionPane.verticalBox", "ScrollBar.button",
"Slider.label", "Spinner.editor", "Spinner.formattedTextField",
"Spinner.nextButton", "Spinner.previousButton",
"SplitPaneDivider.leftOneTouchButton",
"SplitPaneDivider.rightOneTouchButton",
"SynthFileChooser.approveButton", "SynthFileChooser.cancelButton",
"TabbedPane.scrollableViewport", "Table.editor",
"TableHeader.renderer", "ToolBar.FloatingFrame",
"ToolBar.FloatingWindow", "Tree.cellEditor", "Tree.cellRenderer",
"null.contentPane", "null.layeredPane", "null.glassPane"

Best regards,
    Greg



"Moser, Martin \(Bbn\)" <mmoser@?.com> writes:

>    Hello,
>
>    I have a question with regards to the name-handling of qftestJUI.
>
>    In the manual I read that qftestJUI handles trivial names, e.g.
>    'frame1', differently, so that an own-implemented
>    ComponentNameResolver would have a chance to change this name of the
>    according component.
>
>    I wonder, which other trivial names will be handled like 'frame1'.
>
>    I couldn't find a list in the manual.
>
>    Thanks in advance!
>
>    Regards,
>    Martin

--
Gregor Schmid                                Gregor.Schmid@?.de
Quality First Software GmbH                     http://www.qfs.de
Tulpenstr. 41                                Tel: +49 8171 919870
DE-82538 Geretsried                          Fax: +49 8171 919876


Videos Downloads Documentation Buy Free Trial