|
Apache JMeter 2.0.1.20050615 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.apache.jorphan.gui.JLabeledChoice
Nested Class Summary |
Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
JLabeledChoice()
Default constructor, The label and the Text field are left empty. |
|
JLabeledChoice(String pLabel,
boolean editable)
|
|
JLabeledChoice(String pLabel,
String[] items)
Constructs a new component with the label displaying the passed text. |
|
JLabeledChoice(String pLabel,
String[] items,
boolean editable)
|
Method Summary | |
void |
addChangeListener(ChangeListener pChangeListener)
Adds a change listener, that will be notified when the text in the text field is changed. |
void |
addValue(String item)
|
List |
getComponentList()
|
String[] |
getItems()
|
String |
getLabel()
Returns the text of the label. |
Object[] |
getSelectedItems()
|
String |
getText()
Returns the text in the Text Field. |
void |
removeChangeListener(ChangeListener pChangeListener)
Removes a change listener. |
void |
setEditable(boolean editable)
|
void |
setLabel(String pLabel)
Set the text displayed in the label. |
void |
setText(String pText)
Set the text displayed in the Text Field. |
void |
setValues(String[] items)
|
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public JLabeledChoice()
public JLabeledChoice(String pLabel, boolean editable)
public JLabeledChoice(String pLabel, String[] items)
pLabel
- The text to in the label.public JLabeledChoice(String pLabel, String[] items, boolean editable)
Method Detail |
public List getComponentList()
getComponentList
in interface JLabeledField
public void setEditable(boolean editable)
public void addValue(String item)
public void setValues(String[] items)
public void setLabel(String pLabel)
setLabel
in interface JLabeledField
pLabel
- The new label text.public void setText(String pText)
setText
in interface JLabeledField
pText
- The new text to display in the text field.public String getText()
getText
in interface JLabeledField
public Object[] getSelectedItems()
public String[] getItems()
public String getLabel()
public void addChangeListener(ChangeListener pChangeListener)
getText
method.
addChangeListener
in interface JLabeledField
pChangeListener
- The listener to addpublic void removeChangeListener(ChangeListener pChangeListener)
pChangeListener
- The change listener to remove.
|
Apache JMeter 2.0.1.20050615 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |