站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

WidgetAction.Chain (Visual Library API) - NetBeans API Javadoc (Current Development Version)

org.netbeans.api.visual 2.2

org.netbeans.api.visual.action
Class WidgetAction.Chain

java.lang.Object
  extended by org.netbeans.api.visual.action.WidgetAction.Chain
All Implemented Interfaces:
WidgetAction
Enclosing interface:
WidgetAction

public static final class WidgetAction.Chain
extends Object
implements WidgetAction

Represents a chain of widget actions.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.netbeans.api.visual.action.WidgetAction
WidgetAction.Adapter, WidgetAction.Chain, WidgetAction.LockedAdapter, WidgetAction.State, WidgetAction.WidgetDropTargetDragEvent, WidgetAction.WidgetDropTargetDropEvent, WidgetAction.WidgetDropTargetEvent, WidgetAction.WidgetEvent, WidgetAction.WidgetFocusEvent, WidgetAction.WidgetKeyEvent, WidgetAction.WidgetLocationEvent, WidgetAction.WidgetMouseEvent, WidgetAction.WidgetMouseWheelEvent
 
Constructor Summary
WidgetAction.Chain()
          Creates a chain.
 
Method Summary
 void addAction(int index, WidgetAction action)
          Adds an action at a specific index
 void addAction(WidgetAction action)
          Adds an action.
 WidgetAction.State dragEnter(Widget widget, WidgetAction.WidgetDropTargetDragEvent event)
          Called for handling a dragEnter event.
 WidgetAction.State dragExit(Widget widget, WidgetAction.WidgetDropTargetEvent event)
          Called for handling a dragExit event.
 WidgetAction.State dragOver(Widget widget, WidgetAction.WidgetDropTargetDragEvent event)
          Called for handling a dragOver event.
 WidgetAction.State drop(Widget widget, WidgetAction.WidgetDropTargetDropEvent event)
          Called for handling a drop event.
 WidgetAction.State dropActionChanged(Widget widget, WidgetAction.WidgetDropTargetDragEvent event)
          Called for handling a dropActionChanged event.
 WidgetAction.State focusGained(Widget widget, WidgetAction.WidgetFocusEvent event)
          Called for handling a focusGained event.
 WidgetAction.State focusLost(Widget widget, WidgetAction.WidgetFocusEvent event)
          Called for handling a focusLost event.
 List<WidgetAction> getActions()
          Returns a list of actions in the chain.
 WidgetAction.State keyPressed(Widget widget, WidgetAction.WidgetKeyEvent event)
          Called for handling a keyPressed event.
 WidgetAction.State keyReleased(Widget widget, WidgetAction.WidgetKeyEvent event)
          Called for handling a keyReleased event.
 WidgetAction.State keyTyped(Widget widget, WidgetAction.WidgetKeyEvent event)
          Called for handling a keyTyped event.
 WidgetAction.State mouseClicked(Widget widget, WidgetAction.WidgetMouseEvent event)
          Called for handling a mouseClicked event.
 WidgetAction.State mouseDragged(Widget widget, WidgetAction.WidgetMouseEvent event)
          Called for handling a mouseMoved event.
 WidgetAction.State mouseEntered(Widget widget, WidgetAction.WidgetMouseEvent event)
          Called for handling a mouseEntered event.
 WidgetAction.State mouseExited(Widget widget, WidgetAction.WidgetMouseEvent event)
          Called for handling a mouseExited event.
 WidgetAction.State mouseMoved(Widget widget, WidgetAction.WidgetMouseEvent event)
          Called for handling a mouseWheelMoved event.
 WidgetAction.State mousePressed(Widget widget, WidgetAction.WidgetMouseEvent event)
          Called for handling a mousePressed event.
 WidgetAction.State mouseReleased(Widget widget, WidgetAction.WidgetMouseEvent event)
          Called for handling a mouseReleased event.
 WidgetAction.State mouseWheelMoved(Widget widget, WidgetAction.WidgetMouseWheelEvent event)
          Called for handling a keyTyped event.
 void removeAction(int index)
          Removes an action at specified index.
 void removeAction(WidgetAction action)
          Removes an action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WidgetAction.Chain

public WidgetAction.Chain()
Creates a chain.

Method Detail

getActions

public List<WidgetAction> getActions()
Returns a list of actions in the chain.

Returns:
the lst of actions

addAction

public void addAction(WidgetAction action)
Adds an action.

Parameters:
action - the action to be added

addAction

public void addAction(int index,
                      WidgetAction action)
Adds an action at a specific index

Parameters:
index - the index; the action will be added before the action at the index position
action - the action to be added

removeAction

public void removeAction(WidgetAction action)
Removes an action.

Parameters:
action - the action

removeAction

public void removeAction(int index)
Removes an action at specified index.

Parameters:
index - the index

mouseClicked

public WidgetAction.State mouseClicked(Widget widget,
                                       WidgetAction.WidgetMouseEvent event)
Called for handling a mouseClicked event.

Specified by:
mouseClicked in interface WidgetAction
Parameters:
widget - the widget where the action is assigned
event - the mouse event
Returns:
the event state

mousePressed

public WidgetAction.State mousePressed(Widget widget,
                                       WidgetAction.WidgetMouseEvent event)
Called for handling a mousePressed event.

Specified by:
mousePressed in interface WidgetAction
Parameters:
widget - the widget where the action is assigned
event - the mouse event
Returns:
the event state

mouseReleased

public WidgetAction.State mouseReleased(Widget widget,
                                        WidgetAction.WidgetMouseEvent event)
Called for handling a mouseReleased event.

Specified by:
mouseReleased in interface WidgetAction
Parameters:
widget - the widget where the action is assigned
event - the mouse event
Returns:
the event state

mouseEntered

public WidgetAction.State mouseEntered(Widget widget,
                                       WidgetAction.WidgetMouseEvent event)
Called for handling a mouseEntered event.

Specified by:
mouseEntered in interface WidgetAction
Parameters:
widget - the widget where the action is assigned
event - the mouse event
Returns:
the event state

mouseExited

public WidgetAction.State mouseExited(Widget widget,
                                      WidgetAction.WidgetMouseEvent event)
Called for handling a mouseExited event.

Specified by:
mouseExited in interface WidgetAction
Parameters:
widget - the widget where the action is assigned
event - the mouse event
Returns:
the event state

mouseDragged

public WidgetAction.State mouseDragged(Widget widget,
                                       WidgetAction.WidgetMouseEvent event)
Called for handling a mouseMoved event.

Specified by:
mouseDragged in interface WidgetAction
Parameters:
widget - the widget where the action is assigned
event - the mouse event
Returns:
the event state

mouseMoved

public WidgetAction.State mouseMoved(Widget widget,
                                     WidgetAction.WidgetMouseEvent event)
Called for handling a mouseWheelMoved event.

Specified by:
mouseMoved in interface WidgetAction
Parameters:
widget - the widget where the action is assigned
event - the mouse wheel event
Returns:
the event state

mouseWheelMoved

public WidgetAction.State mouseWheelMoved(Widget widget,
                                          WidgetAction.WidgetMouseWheelEvent event)
Called for handling a keyTyped event.

Specified by:
mouseWheelMoved in interface WidgetAction
Parameters:
widget - the widget where the action is assigned
event - the key event
Returns:
the event state

keyTyped

public WidgetAction.State keyTyped(Widget widget,
                                   WidgetAction.WidgetKeyEvent event)
Called for handling a keyTyped event.

Specified by:
keyTyped in interface WidgetAction
Parameters:
widget - the widget where the action is assigned
event - the key event
Returns:
the event state

keyPressed

public WidgetAction.State keyPressed(Widget widget,
                                     WidgetAction.WidgetKeyEvent event)
Called for handling a keyPressed event.

Specified by:
keyPressed in interface WidgetAction
Parameters:
widget - the widget where the action is assigned
event - the key event
Returns:
the event state

keyReleased

public WidgetAction.State keyReleased(Widget widget,
                                      WidgetAction.WidgetKeyEvent event)
Called for handling a keyReleased event.

Specified by:
keyReleased in interface WidgetAction
Parameters:
widget - the widget where the action is assigned
event - the key event
Returns:
the event state

focusGained

public WidgetAction.State focusGained(Widget widget,
                                      WidgetAction.WidgetFocusEvent event)
Called for handling a focusGained event.

Specified by:
focusGained in interface WidgetAction
Parameters:
widget - the widget where the action is assigned
event - the focus event
Returns:
the event state

focusLost

public WidgetAction.State focusLost(Widget widget,
                                    WidgetAction.WidgetFocusEvent event)
Called for handling a focusLost event.

Specified by:
focusLost in interface WidgetAction
Parameters:
widget - the widget where the action is assigned
event - the focus event
Returns:
the event state

dragEnter

public WidgetAction.State dragEnter(Widget widget,
                                    WidgetAction.WidgetDropTargetDragEvent event)
Called for handling a dragEnter event.

Specified by:
dragEnter in interface WidgetAction
Parameters:
widget - the widget where the action is assigned
event - the drop target drag event
Returns:
the event state

dragOver

public WidgetAction.State dragOver(Widget widget,
                                   WidgetAction.WidgetDropTargetDragEvent event)
Called for handling a dragOver event.

Specified by:
dragOver in interface WidgetAction
Parameters:
widget - the widget where the action is assigned
event - the drop target drag event
Returns:
the event state

dropActionChanged

public WidgetAction.State dropActionChanged(Widget widget,
                                            WidgetAction.WidgetDropTargetDragEvent event)
Called for handling a dropActionChanged event.

Specified by:
dropActionChanged in interface WidgetAction
Parameters:
widget - the widget where the action is assigned
event - the drop target drag event
Returns:
the event state

dragExit

public WidgetAction.State dragExit(Widget widget,
                                   WidgetAction.WidgetDropTargetEvent event)
Called for handling a dragExit event.

Specified by:
dragExit in interface WidgetAction
Parameters:
widget - the widget where the action is assigned
event - the drop target event
Returns:
the event state

drop

public WidgetAction.State drop(Widget widget,
                               WidgetAction.WidgetDropTargetDropEvent event)
Called for handling a drop event.

Specified by:
drop in interface WidgetAction
Parameters:
widget - the widget where the action is assigned
event - the drop target drop event
Returns:
the event state

org.netbeans.api.visual 2.2

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.