本文整理匯總了Java中org.netbeans.modeler.widget.context.action.ConnectAction類的典型用法代碼示例。如果您正苦於以下問題:Java ConnectAction類的具體用法?Java ConnectAction怎麽用?Java ConnectAction使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ConnectAction類屬於org.netbeans.modeler.widget.context.action包,在下文中一共展示了ConnectAction類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getConnectActions
import org.netbeans.modeler.widget.context.action.ConnectAction; //導入依賴的package包/類
public static WidgetAction[] getConnectActions(IModelerScene scene, String connectionType) {
WidgetAction[] retVal = new WidgetAction[0];
SceneConnectProvider connector = new SceneConnectProvider(connectionType);
LayerWidget layer = scene.getInterractionLayer();
WidgetAction action = new ConnectAction(new ContextPaletteConnectDecorator(), layer, connector);
retVal = new WidgetAction[]{action};
return retVal;
}
示例2: getConnectActions
import org.netbeans.modeler.widget.context.action.ConnectAction; //導入依賴的package包/類
private static WidgetAction[] getConnectActions(IModelerScene scene, String connectionContextToolId) {
SceneConnectProvider connector = new SceneConnectProvider(connectionContextToolId);
LayerWidget layer = scene.getInterractionLayer();
WidgetAction action = new ConnectAction(new ContextPaletteConnectDecorator(), layer, connector);
WidgetAction[] retVal = new WidgetAction[]{action};
return retVal;
}
示例3: getConnectActions
import org.netbeans.modeler.widget.context.action.ConnectAction; //導入依賴的package包/類
private static WidgetAction[] getConnectActions(IModelerScene scene, String connectionContextToolId) {
WidgetAction[] retVal = new WidgetAction[0];
SceneConnectProvider connector = new SceneConnectProvider(connectionContextToolId);
LayerWidget layer = scene.getInterractionLayer();
WidgetAction action = new ConnectAction(new ContextPaletteConnectDecorator(), layer, connector);
retVal = new WidgetAction[]{action};
return retVal;
}