2008年(4)
分类:
2008-08-05 16:19:55
preinitialize
event, removeChild()
or removeChildAt()
method. rawChildren.removeChild()
or rawChildren.removeChildAt()
method, the event is not dispatched.You can resize the component by setting the width
or
* height
property, by calling the setActualSize()
* method, or by setting one of
* the following properties either on the component or on other components
* such that the LayoutManager needs to change the width
or
* height
properties of the component:
minWidth
minHeight
maxWidth
maxHeight
explicitWidth
explicitHeight
The resize
event is not
* dispatched until after the property changes.
Because a programmatic change triggers this event, make sure
* that any valueCommit
event handler does not change
* a value that causes another valueCommit
event.
* For example, do not change a control's dataProvider
* property in a valueCommit
event handler.
In order to be a valid drop target, you must define a handler
* for this event.
* In the handler, you can change the appearance of the drop target
* to provide visual feedback to the user that the component can accept
* the drag.
* For example, you could draw a border around the drop target,
* or give focus to the drop target.
If you want to accept the drag, you must call the
* DragManager.acceptDragDrop()
method. If you don't
* call acceptDragDrop()
, you will not get any of the
* other drag events.
The value of the action
property is always
* DragManager.MOVE
, even if you are doing a copy.
* This is because the dragEnter
event occurs before
* the control recognizes that the Control key is pressed to signal a copy.
* The action
property of the event object for the
* dragOver
event does contain a value that signifies the type of
* drag operation.
You may change the type of drag action by calling the
* DragManager.showFeedback()
method.
In the handler, you can change the appearance of the drop target
* to provide visual feedback to the user that the component can accept
* the drag.
* For example, you could draw a border around the drop target,
* or give focus to the drop target.
You should handle this event to perform additional logic
* before allowing the drop, such as dropping data to various locations
* in the drop target, reading keyboard input to determine if the
* drag-and-drop action is a move or copy of the drag data, or providing
* different types of visual feedback based on the type of drag-and-drop
* action.
You may also change the type of drag action by changing the
* DragManager.showFeedback()
method.
* The default value of the action
property is
* DragManager.MOVE
.
You use this event to restore the drop target to its normal appearance
* if you modified its appearance as part of handling the
* dragEnter
or dragOver
event.
You use this event handler to add the drag data to the drop target.
You can use this event to perform any final cleanup
* of the drag-and-drop operation.
* For example, if you drag a List control item from one list to another,
* you can delete the List control item from the source if you no longer
* need it.
The effect does not start changing any visuals
* until after this event is fired.
The effect will have made the last set of visual changes
* before this event is fired, but those changes will not have
* been rendered on the screen.
* Thus, you might have to use the callLater()
method
* to delay any other changes that you want to make until after the
* changes have been rendered onscreen.
currentState
property changes,