org.apache.jmeter.gui.util
Class JLabeledRadioI18N
JPanel
org.apache.jmeter.gui.util.JLabeledRadioI18N
- ActionListener, JLabeledField
public class JLabeledRadioI18N
extends JPanel
JLabeledRadio will create a set of Radio buttons with a label.
This is a version of the original JLabelledRadio class, but modified
to accept resource names rather than language strings.
void | actionPerformed(ActionEvent e) - When a radio button is clicked, an ActionEvent is triggered.
|
void | addChangeListener(ChangeListener pChangeListener)
|
List | getComponentList() - Method will return all the label and JRadioButtons.
|
String | getText() - The implementation will get the resource name from the selected radio button
in the JButtonGroup.
|
void | setLabel(String label_resource) - Set the group label from the resource name.
|
void | setText(String resourcename) - The implementation will iterate through the radio buttons and find the
match.
|
JLabeledRadioI18N
public JLabeledRadioI18N()
- only for use in testing
JLabeledRadioI18N
public JLabeledRadioI18N(String label_resouce,
String[] item_resources,
String selectedItem)
label_resouce
- text resource name for group labelitem_resources
- list of resource names for individual buttonsselectedItem
- button to be selected (if not null)
actionPerformed
public void actionPerformed(ActionEvent e)
When a radio button is clicked, an ActionEvent is triggered.
getComponentList
public List getComponentList()
Method will return all the label and JRadioButtons. ButtonGroup is
excluded from the list.
- getComponentList in interface JLabeledField
getText
public String getText()
The implementation will get the resource name from the selected radio button
in the JButtonGroup.
- getText in interface JLabeledField
setLabel
public final void setLabel(String label_resource)
Set the group label from the resource name.
- setLabel in interface JLabeledField
setText
public void setText(String resourcename)
The implementation will iterate through the radio buttons and find the
match. It then sets it to selected and sets all other radio buttons as
not selected.
- setText in interface JLabeledField
resourcename
- name of resource whose button is to be selected
Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.