Class PopupOrderedCondChooser.CondParamEditForm

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.ScrollPane
                    |
                    +--PopupOrderedCondChooser.CondParamEditForm
All Implemented Interfaces:
javax.accessibility.Accessible, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.awt.event.TextListener
Enclosing class:
PopupOrderedCondChooser

class PopupOrderedCondChooser.CondParamEditForm
extends java.awt.ScrollPane
implements java.awt.event.TextListener

Class CondParamEditForm creates a ScrollPane of the (name,value) parameters for the current condition instance.

See Also:
Serialized Form

Inner classes inherited from class java.awt.ScrollPane
java.awt.ScrollPane.AccessibleAWTScrollPane, java.awt.ScrollPane.PeerFixer
 
Inner classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.AWTTreeLock
 
Field Summary
(package private)  java.awt.BorderLayout bl
          main layout
private static int DEF_SP_HEIGHT
          default preferred size used prior to mainPanel being constructed
private static int DEF_SP_WIDTH
          default preferred size used prior to mainPanel being constructed
(package private)  java.awt.GridLayout labelGL
          labels GridLayout to create condition form
(package private)  java.awt.Panel labelPanel
          labels go here
(package private)  java.awt.Panel mainPanel
          place both labelPanel & tfPanel to create form
static int MAX_POSSIBLE_PARAMS
          max width of textfields
(package private)  java.awt.TextField[] nameTF
          parameter names fields
(package private)  int nParams
           
(package private)  PopupOrderedCondChooser.OclListData oclLd
          instance of OclListData
(package private)  PopupOrderedCondChooser pcc
          parent class
(package private)  java.awt.GridLayout tfGL
          TextFields GridLayout to create condition form
(package private)  java.awt.Panel tfPanel
          TextFields go here
(package private)  boolean valueChangedFlag
          a value was changed for THIS condition in one or more parametes, so data will need to be saved.
 
Fields inherited from class java.awt.ScrollPane
base, hAdjustable, nameCounter, scrollbarDisplayPolicy, SCROLLBARS_ALWAYS, SCROLLBARS_AS_NEEDED, SCROLLBARS_NEVER, serialVersionUID, vAdjustable
 
Fields inherited from class java.awt.Container
component, containerListener, containerSerializedDataVersion, dbg, dispatcher, layoutMgr, listeningBoundsChildren, listeningChildren, maxSize, ncomponents, printing, printingThreads
 
Fields inherited from class java.awt.Component
accessibleContext, actionListenerK, adjustmentListenerK, appContext, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, changeSupport, componentListener, componentListenerK, componentOrientation, componentSerializedDataVersion, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, graphicsConfig, hasFocus, height, hierarchyBoundsListener, hierarchyBoundsListenerK, hierarchyListener, hierarchyListenerK, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, metrics, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, name, nameExplicitlySet, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, privateKey, RIGHT_ALIGNMENT, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowClosingException, windowListenerK, x, y
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
(package private) PopupOrderedCondChooser.CondParamEditForm(PopupOrderedCondChooser pcc, PopupOrderedCondChooser.OclListData oclLd, PopupOrderedCondChooser.CondParamEditForm oldCPEF)
          CondParamEditForm() - Constructor for parameter (name[],value[]) data.
 
Method Summary
private  void buildParamEditGUI()
          buildParamEditGUI() - create GUI for the condition form.
 java.awt.Dimension getPreferredSize()
          getPreferredSize() - get the preferred size
 boolean saveData()
          saveData() - Save value data from textFields to oclLd.value[] if changed.
 void textValueChanged(java.awt.event.TextEvent textEvent)
          textValueChanged() - service text changed by setting the value changed flag.
 
Methods inherited from class java.awt.ScrollPane
, addImpl, addNotify, calculateChildSize, constructComponentName, doLayout, getAccessibleContext, getHAdjustable, getHScrollbarHeight, getScrollbarDisplayPolicy, getScrollPosition, getVAdjustable, getViewportSize, getVScrollbarWidth, initIDs, layout, paramString, printComponents, setLayout, setScrollPosition, setScrollPosition
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, adjustListeningChildren, applyOrientation, checkGD, countComponents, createChildHierarchyEvents, createHierarchyEvents, deliverEvent, dispatchEventImpl, dispatchEventToSelf, eventEnabled, findComponentAt, findComponentAt, findComponentAt, getAccessibleAt, getAccessibleChild, getAccessibleChildrenCount, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMouseEventTarget, getWindow, insets, invalidate, invalidateTree, isAncestorOf, lightweightPaint, lightweightPrint, list, list, locate, minimumSize, nextFocus, numListening, paint, paintComponents, paintHeavyweightComponents, postProcessKeyEvent, postsOldMouseEvents, preferredSize, preProcessKeyEvent, print, printHeavyweightComponents, processContainerEvent, processEvent, proxyEnableEvents, proxyRequestFocus, readObject, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusOwner, setFont, transferFocus, update, validate, validateTree, writeObject
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, areInputMethodsEnabled, bounds, checkImage, checkImage, checkWindowClosingException, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAccessibleIndexInParent, getAccessibleStateSet, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen_NoTreeLock, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getSize, getToolkit, getToolkitImpl, getTreeLock, getWidth, getWindowForObject, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isEnabledImpl, isFocusTraversable, isLightweight, isOpaque, isRecursivelyVisible, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, resetGC, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

DEF_SP_WIDTH

private static final int DEF_SP_WIDTH
default preferred size used prior to mainPanel being constructed

DEF_SP_HEIGHT

private static final int DEF_SP_HEIGHT
default preferred size used prior to mainPanel being constructed

pcc

PopupOrderedCondChooser pcc
parent class

oclLd

PopupOrderedCondChooser.OclListData oclLd
instance of OclListData

MAX_POSSIBLE_PARAMS

public static final int MAX_POSSIBLE_PARAMS
max width of textfields

bl

java.awt.BorderLayout bl
main layout

labelGL

java.awt.GridLayout labelGL
labels GridLayout to create condition form

tfGL

java.awt.GridLayout tfGL
TextFields GridLayout to create condition form

labelPanel

java.awt.Panel labelPanel
labels go here

tfPanel

java.awt.Panel tfPanel
TextFields go here

mainPanel

java.awt.Panel mainPanel
place both labelPanel & tfPanel to create form

nameTF

java.awt.TextField[] nameTF
parameter names fields

valueChangedFlag

boolean valueChangedFlag
a value was changed for THIS condition in one or more parametes, so data will need to be saved.

nParams

int nParams
Constructor Detail

PopupOrderedCondChooser.CondParamEditForm

PopupOrderedCondChooser.CondParamEditForm(PopupOrderedCondChooser pcc,
                                          PopupOrderedCondChooser.OclListData oclLd,
                                          PopupOrderedCondChooser.CondParamEditForm oldCPEF)
CondParamEditForm() - Constructor for parameter (name[],value[]) data. Save data if not null otherwise it will be lost.
Parameters:
pcc - instance of PopupOrderedCondChooser
oclLd - is instance of OclListData to use in NEW instance
oldCPEF - is instance of OLD cpef to check if need to save its data.
See Also:
buildParamEditGUI(), CondParamEditForm#saveData
Method Detail

getPreferredSize

public java.awt.Dimension getPreferredSize()
getPreferredSize() - get the preferred size
Overrides:
getPreferredSize in class java.awt.Container
Returns:
window size

buildParamEditGUI

private void buildParamEditGUI()
buildParamEditGUI() - create GUI for the condition form. Update the parameter data structures and rpaint it This updates the editor panel to new Parameter values and repaint.
Parameters:
instance - of OclListData

saveData

public boolean saveData()
saveData() - Save value data from textFields to oclLd.value[] if changed.

textValueChanged

public void textValueChanged(java.awt.event.TextEvent textEvent)
textValueChanged() - service text changed by setting the value changed flag.
Specified by:
textValueChanged in interface java.awt.event.TextListener
Parameters:
textEvent - if user typed in the text field