org.apache.jmeter.gui.util

Class DirectoryPanel

Implemented Interfaces:
ActionListener

public class DirectoryPanel
extends HorizontalPanel
implements ActionListener

Field Summary

protected JButton
browse
protected JTextField
filename

Constructor Summary

DirectoryPanel()
Constructor for the FilePanel object.
DirectoryPanel(ChangeListener l, String title)
Constructor for the FilePanel object.
DirectoryPanel(String title)
DirectoryPanel(String title, String filetype)
DirectoryPanel(String title, String filetype, Color bk)

Method Summary

void
actionPerformed(ActionEvent e)
void
addChangeListener(ChangeListener l)
void
enableFile(boolean enable)
If the gui needs to enable/disable the FilePanel, call the method.
String
getFilename()
Gets the filename attribute of the FilePanel object.
void
setFilename(String f)
Sets the filename attribute of the FilePanel object.

Methods inherited from class org.apache.jmeter.gui.util.HorizontalPanel

add

Field Details

browse

protected JButton browse

filename

protected JTextField filename

Constructor Details

DirectoryPanel

public DirectoryPanel()
Constructor for the FilePanel object.

DirectoryPanel

public DirectoryPanel(ChangeListener l,
                      String title)
Constructor for the FilePanel object.

DirectoryPanel

public DirectoryPanel(String title)

DirectoryPanel

public DirectoryPanel(String title,
                      String filetype)

DirectoryPanel

public DirectoryPanel(String title,
                      String filetype,
                      Color bk)

Method Details

actionPerformed

public void actionPerformed(ActionEvent e)

addChangeListener

public void addChangeListener(ChangeListener l)

enableFile

public void enableFile(boolean enable)
If the gui needs to enable/disable the FilePanel, call the method.
Parameters:
enable -

getFilename

public String getFilename()
Gets the filename attribute of the FilePanel object.
Returns:
the filename value

setFilename

public void setFilename(String f)
Sets the filename attribute of the FilePanel object.
Parameters:
f - the new filename value

Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.