Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.jmeter.control.gui
Class ForeachControlPanel  view ForeachControlPanel download ForeachControlPanel.java

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended byorg.apache.jmeter.gui.AbstractJMeterGuiComponent
                      extended byorg.apache.jmeter.control.gui.AbstractControllerGui
                          extended byorg.apache.jmeter.control.gui.ForeachControlPanel
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, org.apache.jmeter.gui.JMeterGUIComponent, java.awt.MenuContainer, org.apache.jmeter.visualizers.Printable, java.io.Serializable

public class ForeachControlPanel
extends AbstractControllerGui

The user interface for a foreach controller which specifies that its subcomponents should be executed some number of times in a loop. This component can be used standalone or embedded into some other component. Copyright: 2000

Version:
$Revision: 1.6 $ on $Date

Nested Class Summary
 
Nested classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
private  boolean displayName
          Boolean indicating whether or not this component should display its name.
private  javax.swing.JTextField inputVal
          A field allowing the user to specify the input variable the controller should loop.
private static java.lang.String INPUTVAL
          The name of the infinite checkbox component.
private  javax.swing.JTextField returnVal
          A field allowing the user to specify output variable the controller should return.
private static java.lang.String RETURNVAL
          The name of the loops field component.
private  javax.swing.JCheckBox useSeparator
           
 
Fields inherited from class org.apache.jmeter.gui.AbstractJMeterGuiComponent
 
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.Container
 
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
ForeachControlPanel()
          Create a new LoopControlPanel as a standalone component.
ForeachControlPanel(boolean displayName)
          Create a new LoopControlPanel as either a standalone or an embedded component.
 
Method Summary
 void configure(org.apache.jmeter.testelement.TestElement element)
          A newly created component can be initialized with the contents of a Test Element object by calling this method.
private  javax.swing.JPanel createLoopCountPanel()
          Create a GUI panel containing the components related to the number of loops which should be executed.
 org.apache.jmeter.testelement.TestElement createTestElement()
          JMeter test components are separated into a model and a GUI representation.
 java.lang.String getLabelResource()
          Get the component's resource name, which getStaticLabel uses to derive the component's label in the local language.
private  void init()
          Initialize the GUI components and layout for this component.
 void modifyTestElement(org.apache.jmeter.testelement.TestElement lc)
          GUI components are responsible for populating TestElements they create with the data currently held in the GUI components.
 
Methods inherited from class org.apache.jmeter.control.gui.AbstractControllerGui
createPopupMenu, getMenuCategories
 
Methods inherited from class org.apache.jmeter.gui.AbstractJMeterGuiComponent
clear, configureTestElement, createTitleLabel, getDocAnchor, getName, getNamePanel, getNode, getPrintableComponent, getStaticLabel, isEnabled, makeBorder, makeScrollPane, makeScrollPane, makeTitlePanel, setEnabled, setName, setNode
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

inputVal

private javax.swing.JTextField inputVal
A field allowing the user to specify the input variable the controller should loop.


returnVal

private javax.swing.JTextField returnVal
A field allowing the user to specify output variable the controller should return.


useSeparator

private javax.swing.JCheckBox useSeparator

displayName

private boolean displayName
Boolean indicating whether or not this component should display its name. If true, this is a standalone component. If false, this component is intended to be used as a subpanel for another component.


INPUTVAL

private static final java.lang.String INPUTVAL
The name of the infinite checkbox component.

See Also:
Constant Field Values

RETURNVAL

private static final java.lang.String RETURNVAL
The name of the loops field component.

See Also:
Constant Field Values
Constructor Detail

ForeachControlPanel

public ForeachControlPanel()
Create a new LoopControlPanel as a standalone component.


ForeachControlPanel

public ForeachControlPanel(boolean displayName)
Create a new LoopControlPanel as either a standalone or an embedded component.

Method Detail

configure

public void configure(org.apache.jmeter.testelement.TestElement element)
A newly created component can be initialized with the contents of a Test Element object by calling this method. The component is responsible for querying the Test Element object for the relevant information to display in its GUI.


createTestElement

public org.apache.jmeter.testelement.TestElement createTestElement()
Description copied from interface: org.apache.jmeter.gui.JMeterGUIComponent
JMeter test components are separated into a model and a GUI representation. The model holds the data and the GUI displays it. The GUI class is responsible for knowing how to create and initialize with data the model class that it knows how to display, and this method is called when new test elements are created.


modifyTestElement

public void modifyTestElement(org.apache.jmeter.testelement.TestElement lc)
Description copied from interface: org.apache.jmeter.gui.JMeterGUIComponent
GUI components are responsible for populating TestElements they create with the data currently held in the GUI components. This method should overwrite whatever data is currently in the TestElement as it is called after a user has filled out the form elements in the gui with new information.


getLabelResource

public java.lang.String getLabelResource()
Description copied from interface: org.apache.jmeter.gui.JMeterGUIComponent
Get the component's resource name, which getStaticLabel uses to derive the component's label in the local language. The resource name is fixed, and does not vary with the selected language.


init

private void init()
Initialize the GUI components and layout for this component.


createLoopCountPanel

private javax.swing.JPanel createLoopCountPanel()
Create a GUI panel containing the components related to the number of loops which should be executed.