org.opensha.commons.param.editor
Class AbstractParameterEditorOld

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by org.opensha.commons.param.editor.AbstractParameterEditorOld
All Implemented Interfaces:
FocusListener, KeyListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ParameterEditor
Direct Known Subclasses:
CommentsParameterEditor, ConstrainedEstimateParameterEditor, ConstrainedStringListParameterEditor, DoubleValueWeightParameterEditor, EvenlyDiscretizedFuncParameterEditor, MagFreqDistParameterEditor, MagPDF_ParameterEditor, RegionParameterEditor, SimpleFaultParameterEditor, SimpleFaultParameterEditorPanel

Deprecated.

@Deprecated
public abstract class AbstractParameterEditorOld
extends JPanel
implements ParameterEditor, FocusListener, KeyListener

Title: ParameterEditor

Description: This is the base Editor class that all Parameter GUI Editors extend to inherit the common functionality. This editor extends JPanel that uses a TitledBorder to display the name of the Parameter, and has an addWidget function that all subclasses will extend to add different types of text fields or picklists.

All the functionality of the Editors are in this class. The only thing that subclasses have to deal with is setting the specific widget for the subclass, and how to handle key and focus events on this widget.

The types of widgets added to edit the parameter value are JTextField, NumericTextField, IntegerTextField, or JComboBox for contrained values.

Note: There are many static constants such as Colors, fonts, etc. Subclasses should use these static instances. It will cut down on the number of classes instantiated, helps with performance, and maintains a common look and feel for this parameter framework. Each static field will not be commented, they should be self explainatory. You need to understand java Swing to understand all these constants. See each component's Javadoc for further documentation.

Version:
1.0
Author:
Steven W. Rock
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
protected  Border border1
          Deprecated.  
protected static String C
          Deprecated. Class name for debugging.
protected  boolean catchConstraint
          Deprecated. Flag whether to catch errors when constraint error thrown.
protected static GridBagConstraints COMBO_WIDGET_GBC
          Deprecated.  
protected static Border CONST_BORDER
          Deprecated.  
protected static boolean D
          Deprecated. If true print out debug statements.
protected static String DATA_TEXT
          Deprecated. Default text for text field
static Font DEFAULT_FONT
          Deprecated.  
static Font DEFAULT_LABEL_FONT
          Deprecated.  
protected static String EMPTY
          Deprecated.  
protected static Border ETCHED
          Deprecated.  
protected static Insets FIVE_FIVE_INSETS
          Deprecated.  
protected static Insets FIVE_INSETS
          Deprecated.  
protected static Border FOCUS_BORDER
          Deprecated.  
protected  boolean focusEnabled
          Deprecated.  
protected  boolean focusLostProcessing
          Deprecated. Flag to indicate that this widget is processing a focus lost event
static Color FORE_COLOR
          Deprecated.  
protected static GridBagLayout GBL
          Deprecated.  
protected static Dimension JCOMBO_DIM
          Deprecated.  
protected static Font JCOMBO_FONT
          Deprecated.  
protected static Dimension JLIST_DIM
          Deprecated.  
protected  boolean keyTypeProcessing
          Deprecated. Flag to indicate that this widget is processing a key typed event
protected static Dimension LABEL_DIM
          Deprecated.  
protected static Dimension LABEL_PANEL_DIM
          Deprecated.  
protected static String LABEL_TEXT
          Deprecated. Default string for parameter title
protected  JPanel labelPanel
          Deprecated.  
protected  Parameter model
          Deprecated. The internal parameter that this Editor is editing
protected  JLabel nameLabel
          Deprecated.  
protected static GridBagConstraints OUTER_PANEL_GBC
          Deprecated.  
protected  JPanel outerPanel
          Deprecated.  
protected static Color STRING_BACK_COLOR
          Deprecated.  
protected  TitledBorder titledBorder1
          Deprecated. This border displays the name of the parameter.
protected  JComponent valueEditor
          Deprecated. This is a VERY IMPORTANT component to understand this framework.
protected static GridBagConstraints WIDGET_GBC
          Deprecated.  
protected static GridBagConstraints WIDGET_PANEL_GBC
          Deprecated.  
protected  JPanel widgetPanel
          Deprecated.  
protected static Dimension WIGET_PANEL_DIM
          Deprecated.  
protected static Insets ZERO_INSETS
          Deprecated.  
 
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
AbstractParameterEditorOld()
          Deprecated. Constructor for the ParameterEditor hat just calls jbinit().
AbstractParameterEditorOld(Parameter model)
          Deprecated. Constructor for the ParameterEditor that set's the parameter then calls jbInit().
 
Method Summary
protected  void addWidget()
          Deprecated. VERY IMPORTANT function to understand this framework.
 void focusGained(FocusEvent e)
          Deprecated. Called when this editor gains the GUI focus for keyboard and mouse events.
 void focusLost(FocusEvent e)
          Deprecated. Called when this editor looses the GUI focus for keyboard and mouse events.
 JPanel getComponent()
          Deprecated.  
 JPanel getOuterPanel()
          Deprecated. return the JPanel This is needed so that we can set the border or font differently This function is called from IMR gui Bean and ERF Gui Bean
 Parameter getParameter()
          Deprecated. Returns the parameter this editor is pointing to.
 Object getValue()
          Deprecated. Proxy call to the internal parameter to return it's value.
 JComponent getValueEditor()
          Deprecated. Exposes the underlying value editor
 boolean isFocusEnabled()
          Deprecated. Returns the focusEnabled boolean indicating this is the GUI componet with the current focus
protected  void jbInit()
          Deprecated. Main GUI Initialization point.
 void keyPressed(KeyEvent e)
          Deprecated. Called when a key is pressed in this editor.
 void keyReleased(KeyEvent e)
          Deprecated. Called when a key was pressed and is now released in this editor.
 void keyTyped(KeyEvent e)
          Deprecated. Called when a key is typed in this editor.
static JLabel makeConstantEditor(String label)
          Deprecated. Not sure what this is used for, but makes a JLabel with default values and sets the text to the passed in String.
 void refreshParamEditor()
          Deprecated. Called when the parameter has changed independently from the editor, such as with the ParameterWarningListener.
protected  void removeWidget()
          Deprecated. Removes the Parameter editor component from this editor.
 void setEditorBorder(Border b)
          Deprecated.  
 void setEnabled(boolean isEnabled)
          Deprecated. It enables/disables the editor according to whether user is allowed to fill in the values.
 void setFocusEnabled(boolean newFocusEnabled)
          Deprecated. Sets the focusEnabled boolean indicating this is the GUI componet with the current focus
protected  void setNameLabelToolTip(String str)
          Deprecated. The tooltip for the name label ( titled border ) can add additional informartion about the Parameter.
 void setParameter(Parameter model)
          Deprecated. Set's the parameter to be edited by this editor.
 void setParameterInEditor(Parameter model)
          Deprecated. Set's the parameter to be edited by this editor.
 void setValue(Object value)
          Deprecated. Needs to be called by subclasses when editable widget field changed.
 void setWidgetBorder(Border b)
          Deprecated. Allows the GUI to set different borders to this editor for customization
protected  void setWidgetObject(String name, Object obj)
          Deprecated. VERY IMPORTANT function to understand this framework.
 void unableToSetValue(Object value)
          Deprecated. Needs to be called by subclasses when editable widget field change fails due to constraint problems.
protected  void updateNameLabel(String label)
          Deprecated. Updates the name label (titled border ) of this editor with a new parameter name.
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, 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, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, 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, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, 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, 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, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.opensha.commons.param.editor.ParameterEditor
isVisible, setVisible
 

Field Detail

C

protected static final String C
Deprecated. 
Class name for debugging.

See Also:
Constant Field Values

D

protected static final boolean D
Deprecated. 
If true print out debug statements.

See Also:
Constant Field Values

DATA_TEXT

protected static final String DATA_TEXT
Deprecated. 
Default text for text field

See Also:
Constant Field Values

LABEL_TEXT

protected static final String LABEL_TEXT
Deprecated. 
Default string for parameter title

See Also:
Constant Field Values

EMPTY

protected static final String EMPTY
Deprecated. 
See Also:
Constant Field Values

FORE_COLOR

public static Color FORE_COLOR
Deprecated. 

STRING_BACK_COLOR

protected static Color STRING_BACK_COLOR
Deprecated. 

LABEL_DIM

protected static final Dimension LABEL_DIM
Deprecated. 

LABEL_PANEL_DIM

protected static final Dimension LABEL_PANEL_DIM
Deprecated. 

WIGET_PANEL_DIM

protected static final Dimension WIGET_PANEL_DIM
Deprecated. 

JCOMBO_DIM

protected static final Dimension JCOMBO_DIM
Deprecated. 

JLIST_DIM

protected static final Dimension JLIST_DIM
Deprecated. 

GBL

protected static final GridBagLayout GBL
Deprecated. 

ZERO_INSETS

protected static final Insets ZERO_INSETS
Deprecated. 

FIVE_INSETS

protected static final Insets FIVE_INSETS
Deprecated. 

FIVE_FIVE_INSETS

protected static final Insets FIVE_FIVE_INSETS
Deprecated. 

JCOMBO_FONT

protected static Font JCOMBO_FONT
Deprecated. 

DEFAULT_LABEL_FONT

public static Font DEFAULT_LABEL_FONT
Deprecated. 

DEFAULT_FONT

public static Font DEFAULT_FONT
Deprecated. 

CONST_BORDER

protected static final Border CONST_BORDER
Deprecated. 

FOCUS_BORDER

protected static final Border FOCUS_BORDER
Deprecated. 

ETCHED

protected static final Border ETCHED
Deprecated. 

OUTER_PANEL_GBC

protected static final GridBagConstraints OUTER_PANEL_GBC
Deprecated. 

WIDGET_PANEL_GBC

protected static final GridBagConstraints WIDGET_PANEL_GBC
Deprecated. 

WIDGET_GBC

protected static final GridBagConstraints WIDGET_GBC
Deprecated. 

COMBO_WIDGET_GBC

protected static final GridBagConstraints COMBO_WIDGET_GBC
Deprecated. 

outerPanel

protected JPanel outerPanel
Deprecated. 

labelPanel

protected JPanel labelPanel
Deprecated. 

widgetPanel

protected JPanel widgetPanel
Deprecated. 

nameLabel

protected JLabel nameLabel
Deprecated. 

focusEnabled

protected boolean focusEnabled
Deprecated. 

border1

protected Border border1
Deprecated. 

titledBorder1

protected TitledBorder titledBorder1
Deprecated. 
This border displays the name of the parameter.


valueEditor

protected JComponent valueEditor
Deprecated. 
This is a VERY IMPORTANT component to understand this framework. This is the component that all subclasses must overide. Could be a JTextField, JComboBox, NumericTextField, etc.


model

protected Parameter model
Deprecated. 
The internal parameter that this Editor is editing


catchConstraint

protected boolean catchConstraint
Deprecated. 
Flag whether to catch errors when constraint error thrown. Resets value to last value before setting with new value.


keyTypeProcessing

protected boolean keyTypeProcessing
Deprecated. 
Flag to indicate that this widget is processing a key typed event


focusLostProcessing

protected boolean focusLostProcessing
Deprecated. 
Flag to indicate that this widget is processing a focus lost event

Constructor Detail

AbstractParameterEditorOld

public AbstractParameterEditorOld()
Deprecated. 
Constructor for the ParameterEditor hat just calls jbinit().


AbstractParameterEditorOld

public AbstractParameterEditorOld(Parameter model)
Deprecated. 
Constructor for the ParameterEditor that set's the parameter then calls jbInit(). Throws a NullPointerException if the passed in parameter is null.

Method Detail

setValue

public void setValue(Object value)
              throws ConstraintException
Deprecated. 
Needs to be called by subclasses when editable widget field changed. If the input value is null, checks if the parameter allows nulls, else returns without an update. If the value is not null, set's the parameter value. The parameter may throw a constraint exception. If setting the parameter succeedes a ParameterChangeEvent is created and all parameter change listeners are notified of the new value.

Specified by:
setValue in interface ParameterEditor
Parameters:
value - The new value to set in the parameter.
Throws:
ConstraintException - Thrown if the parameter rejects the new value.

setParameterInEditor

public void setParameterInEditor(Parameter model)
Deprecated. 
Set's the parameter to be edited by this editor. The editor is updated with the name of the parameter as well as the widget component value. It attempts to use the Constraint name ifdifferent from the parameter and present, else uses the parameter name

Parameters:
model - : Parameter

setParameter

public void setParameter(Parameter model)
Deprecated. 
Set's the parameter to be edited by this editor. The editor is updated with the name of the parameter as well as the widget component value. It attempts to use the Constraint name if different from the parameter and present, else uses the parameter name. This function actually just calls removeWidget() then addWidget() then setWidgetObject().

Specified by:
setParameter in interface ParameterEditor

setWidgetObject

protected void setWidgetObject(String name,
                               Object obj)
Deprecated. 
VERY IMPORTANT function to understand this framework. This is the function overidden by all subclasses to add different types of editors. The titled border name is also updated. This base class has no editor widget assigned to it so it just updates the titled border parameter name and sets the tooltip.


setNameLabelToolTip

protected void setNameLabelToolTip(String str)
Deprecated. 
The tooltip for the name label ( titled border ) can add additional informartion about the Parameter. Typically this info is too long to provide in the Parameter name, such as string units, etc.


setFocusEnabled

public void setFocusEnabled(boolean newFocusEnabled)
Deprecated. 
Sets the focusEnabled boolean indicating this is the GUI componet with the current focus

Specified by:
setFocusEnabled in interface ParameterEditor

getValueEditor

public JComponent getValueEditor()
Deprecated. 
Exposes the underlying value editor

Returns:
The JComponent of this Editor class

getValue

public Object getValue()
Deprecated. 
Proxy call to the internal parameter to return it's value.

Specified by:
getValue in interface ParameterEditor

getParameter

public Parameter getParameter()
Deprecated. 
Returns the parameter this editor is pointing to.

Specified by:
getParameter in interface ParameterEditor

isFocusEnabled

public boolean isFocusEnabled()
Deprecated. 
Returns the focusEnabled boolean indicating this is the GUI componet with the current focus

Specified by:
isFocusEnabled in interface ParameterEditor

refreshParamEditor

public void refreshParamEditor()
Deprecated. 
Called when the parameter has changed independently from the editor, such as with the ParameterWarningListener. This function needs to be called to to update the GUI component ( text field, picklsit, etc. ) with the new parameter value. Implemented in subclasses.

Specified by:
refreshParamEditor in interface ParameterEditor

unableToSetValue

public void unableToSetValue(Object value)
                      throws ConstraintException
Deprecated. 
Needs to be called by subclasses when editable widget field change fails due to constraint problems. Allows rollback to the previous good value.

Specified by:
unableToSetValue in interface ParameterEditor
Throws:
ConstraintException

makeConstantEditor

public static JLabel makeConstantEditor(String label)
Deprecated. 
Not sure what this is used for, but makes a JLabel with default values and sets the text to the passed in String.


jbInit

protected void jbInit()
               throws Exception
Deprecated. 
Main GUI Initialization point. This block of code is updated by JBuilder when using it's GUI Editor.

Throws:
Exception

removeWidget

protected void removeWidget()
Deprecated. 
Removes the Parameter editor component from this editor. Allows this editor to be reconfigured to handle a new type of parameter.


addWidget

protected void addWidget()
Deprecated. 
VERY IMPORTANT function to understand this framework. This function must be overidden by all subclasses. This is where the particular type of editor component is added to the GUI for editing the particular type of parameter.

This base class sets the widget to a simple JTextField for an example of usage. This allows this editor to be able to edit an unconstrained String Parameter. No subclass is needed for that type of parameter.

Note: most subclasses add more complexity to this component. For example, the DoubleParameterEditor makes this widget componet an NumericTextField that only accepts numeric characters, such as digets and a period for the decimal place.


setWidgetBorder

public void setWidgetBorder(Border b)
Deprecated. 
Allows the GUI to set different borders to this editor for customization


updateNameLabel

protected void updateNameLabel(String label)
Deprecated. 
Updates the name label (titled border ) of this editor with a new parameter name.


focusGained

public void focusGained(FocusEvent e)
Deprecated. 
Called when this editor gains the GUI focus for keyboard and mouse events.

Specified by:
focusGained in interface FocusListener

focusLost

public void focusLost(FocusEvent e)
Deprecated. 
Called when this editor looses the GUI focus for keyboard and mouse events.

Specified by:
focusLost in interface FocusListener

keyTyped

public void keyTyped(KeyEvent e)
Deprecated. 
Called when a key is typed in this editor.

Specified by:
keyTyped in interface KeyListener

keyPressed

public void keyPressed(KeyEvent e)
Deprecated. 
Called when a key is pressed in this editor.

Specified by:
keyPressed in interface KeyListener

keyReleased

public void keyReleased(KeyEvent e)
Deprecated. 
Called when a key was pressed and is now released in this editor.

Specified by:
keyReleased in interface KeyListener

setEnabled

public void setEnabled(boolean isEnabled)
Deprecated. 
It enables/disables the editor according to whether user is allowed to fill in the values. THIS METHOD NEEDS TO BE OVERRIDDEN FOR COMPLEX ParameterEditors

Specified by:
setEnabled in interface ParameterEditor
Overrides:
setEnabled in class JComponent

getOuterPanel

public JPanel getOuterPanel()
Deprecated. 
return the JPanel This is needed so that we can set the border or font differently This function is called from IMR gui Bean and ERF Gui Bean

Returns:

getComponent

public JPanel getComponent()
Deprecated. 
Specified by:
getComponent in interface ParameterEditor

setEditorBorder

public void setEditorBorder(Border b)
Deprecated. 
Specified by:
setEditorBorder in interface ParameterEditor