# com.bea.ide.control
DefaultEditorSupport Class

public class DefaultEditorSupport
extends `Object`
implements `EditorSupport`

A simple implementation of EditorSupport. This provides static behaviors, and the values of the context objects are ignored.

Hierarchy
  `Object`
  `DefaultEditorSupport`

All Implemented Interfaces
  `EditorSupport`

## Constructor Summary

DefaultEditorSupport() creates an EditorSupport with no behaviors.
DefaultEditorSupport(`Map` map) creates an EditorSupport that returns behavior properties based on the given Map.

## Method Summary

`public `Object`` | `getBehavior`(`String` behaviorName, `ControlBehaviorContext` context) Called by the IDE to retrieve specifics related to the specified behavior.
`public void` | `setBehavior`(`String` behaviorName, `Object` value) set a given behavior.

Methods from class `java.lang.`Object``
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods from interface `com.bea.ide.control.`EditorSupport``
``getBehavior``

## Constructor Detail

### DefaultEditorSupport

    public DefaultEditorSupport()

  creates an EditorSupport with no behaviors. use setBehavior() to override defaults.

### DefaultEditorSupport

    public DefaultEditorSupport(Map map)

  creates an EditorSupport that returns behavior properties based on the given Map.

## Method Detail

### getBehavior(String, ControlBehaviorContext) Method

    public Object getBehavior(String behaviorName,
                              ControlBehaviorContext context)

Description copied from `EditorSupport.getBehavior(String, ControlBehaviorContext)`
Called by the IDE to retrieve specifics related to the specified behavior.
WARNING: the information in the context object passed in here is intended for use only during this call. Any information that editors or validators might later need should be copied out of the context object before returning from getBehavior().

#### Parameters

behaviorName
  An EditorSupport constant representing the name of the behavior which is being queried.

context
  The appropriate context object for the behavior. For behaviors that need no context, this will be null.

#### Returns

The behavior that the IDE should use for the given context. The type of object returned will depend on the behavorName. If null is returned, the default value will be used.

### setBehavior(String, Object) Method

    public void setBehavior(String behaviorName,
                            Object value)

set a given behavior. If the value is null, the behavior will be removed (and the IDE will use the default value).