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
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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).