| org.netbeans.api.visual.action.ReconnectProvider
ReconnectProvider | public interface ReconnectProvider (Code) | | This interface controls a reconnect action.
author: David Kaspar |
hasCustomReplacementWidgetResolver | boolean hasCustomReplacementWidgetResolver(Scene scene)(Code) | | Called to check whether the provider has a custom replacement widget resolver.
Parameters: scene - the scene where the resolver will be called if true, then the resolveReplacementWidget method is called for resolving the replacement widget;if false, then the isReplacementWidget method is called for resolving the replacement widget |
isReplacementWidget | ConnectorState isReplacementWidget(ConnectionWidget connectionWidget, Widget replacementWidget, boolean reconnectingSource)(Code) | | Called to check for possible replacement of a connection source/target.
Called only when the hasCustomReplacementWidgetResolver method return false.
Parameters: connectionWidget - the connection widget Parameters: replacementWidget - the replacement widget Parameters: reconnectingSource - if true, then source is being reconnected; if false, then target is being reconnected |
isSourceReconnectable | boolean isSourceReconnectable(ConnectionWidget connectionWidget)(Code) | | Called for checking whether it is possible to reconnection a source of a specified connection widget.
Parameters: connectionWidget - the connection widget if true, then it is possible to reconnection the source; if false, then is not allowed |
isTargetReconnectable | boolean isTargetReconnectable(ConnectionWidget connectionWidget)(Code) | | Called for checking whether it is possible to reconnection a target of a specified connection widget.
Parameters: connectionWidget - the connection widget if true, then it is possible to reconnection the target; if false, then is not allowed |
reconnect | void reconnect(ConnectionWidget connectionWidget, Widget replacementWidget, boolean reconnectingSource)(Code) | | Called for replacing a source/target with a new one.
This method is called only when the possible replacement is found and an user approves it.
Parameters: connectionWidget - the connection widget Parameters: replacementWidget - the replacement widget Parameters: reconnectingSource - if true, then source is being reconnected; if false, then target is being reconnected |
reconnectingFinished | void reconnectingFinished(ConnectionWidget connectionWidget, boolean reconnectingSource)(Code) | | Called to notify about the finish of reconnecting.
Parameters: connectionWidget - the connection widget Parameters: reconnectingSource - if true, then source is being reconnected; if false, then target is being reconnected |
reconnectingStarted | void reconnectingStarted(ConnectionWidget connectionWidget, boolean reconnectingSource)(Code) | | Called to notify about the start of reconnecting.
Parameters: connectionWidget - the connection widget Parameters: reconnectingSource - if true, then source is being reconnected; if false, then target is being reconnected |
resolveReplacementWidget | Widget resolveReplacementWidget(Scene scene, Point sceneLocation)(Code) | | Called to find the replacement widget of a possible connection.
Called only when a hasCustomReplacementWidgetResolver returns true.
Parameters: scene - the scene Parameters: sceneLocation - the scene location the replacement widget; null if no replacement widget found |
|
|