当前位置: 首页>>代码示例>>Java>>正文


Java VMDPinWidget.setToolTipText方法代码示例

本文整理汇总了Java中org.netbeans.api.visual.vmd.VMDPinWidget.setToolTipText方法的典型用法代码示例。如果您正苦于以下问题:Java VMDPinWidget.setToolTipText方法的具体用法?Java VMDPinWidget.setToolTipText怎么用?Java VMDPinWidget.setToolTipText使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.netbeans.api.visual.vmd.VMDPinWidget的用法示例。


在下文中一共展示了VMDPinWidget.setToolTipText方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createAttribute

import org.netbeans.api.visual.vmd.VMDPinWidget; //导入方法依赖的package包/类
private void createAttribute(String table , Attribute attribute)   {
    VMDPinWidget attributeWidget = (VMDPinWidget)scene.addPin(table,table+attribute.getName());
    attributeWidget.setPinName(attribute.getName());
    attributeWidget.setToolTipText("Double click for View Table data");
    attributeWidget.setLayout(LayoutFactory.createHorizontalFlowLayout(
                                LayoutFactory.SerialAlignment.JUSTIFY, 7));
    
    LabelWidget type = new LabelWidget(scene);
    type.setForeground(Color.GRAY);
    type.setLabel(attribute.getType());
    attributeWidget.addChild(type);
    
    for(Key k : db.getKeys(table))   {
        for(AttributeRef attr : k.getAttributes())   {
            if(attr.getName().equals(attribute.getName()) && k.isPrimaryKey())   {
                LabelWidget pk = new LabelWidget(scene);
                pk.setForeground(Color.BLUE);
                pk.setLabel(" PK");
                attributeWidget.addChild(pk);    
            }
        }
    }
}
 
开发者ID:dbunibas,项目名称:BART,代码行数:24,代码来源:DB_VMDGraph.java

示例2: deleteSelectionCondition

import org.netbeans.api.visual.vmd.VMDPinWidget; //导入方法依赖的package包/类
private void deleteSelectionCondition(boolean oldButtonState, String oldSelectionCondition, SelectionConditionInfo selectionConditionInfo) {
    try {
        INode iNode = getNodeSelected();
        TreePath treePath = jTree.getSelectionPath();
        DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode) treePath.getLastPathComponent();

        review.removeSelectionCondition(selectionConditionInfo.getSelectionCondition(), dataSource);
        selectionConditionInfo.setSelectionCondition(null);
        selectionConditionInfo.setExpressionString("");
        analisiSelection.creaWidgetEsisteSelectionCondition(treeNode, selectionConditionInfo.getExpressionString(), selectionConditionInfo.getSelectionCondition());
        VMDPinWidget vMDPinWidget = (VMDPinWidget) iNode.getAnnotation(Costanti.PIN_WIDGET_TREE); 
        vMDPinWidget.setToolTipText(null);
        aggiorna();
    } catch (ExpressionSyntaxException e) {
        creator.undo(selectionConditionInfo.getSelectionCondition(), dataSource);
        DialogDisplayer.getDefault().notify(new NotifyDescriptor.Message(NbBundle.getMessage(Costanti.class, Costanti.SYNTAX_WARNING) + " : " + e.getMessage(), DialogDescriptor.WARNING_MESSAGE));
        StatusDisplayer.getDefault().setStatusText(NbBundle.getMessage(Costanti.class, Costanti.SYNTAX_WARNING));
        ripristina(oldButtonState, oldSelectionCondition, selectionConditionInfo);
    }   
}
 
开发者ID:dbunibas,项目名称:spicy,代码行数:21,代码来源:ActionSelectionCondition.java

示例3: updateSelectionCondition

import org.netbeans.api.visual.vmd.VMDPinWidget; //导入方法依赖的package包/类
private void updateSelectionCondition(boolean oldButtonState, String oldSelectionCondition, SelectionConditionInfo selectionConditionInfo) {
    try {
        INode iNode = getNodeSelected();
        TreePath treePath = jTree.getSelectionPath();
        DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode) treePath.getLastPathComponent();

        review.removeSelectionCondition(selectionConditionInfo.getSelectionCondition(), dataSource);
        creator.createSelectionCondition(iNode, selectionConditionInfo.getExpressionString(), dataSource, selectionConditionInfo);
        analisiSelection.creaWidgetEsisteSelectionCondition(treeNode, selectionConditionInfo.getExpressionString(),selectionConditionInfo.getSelectionCondition());
        VMDPinWidget vMDPinWidget = (VMDPinWidget) iNode.getAnnotation(Costanti.PIN_WIDGET_TREE); 
        vMDPinWidget.setToolTipText(selectionConditionInfo.getSelectionCondition().toString());
        aggiorna();
    } catch (ExpressionSyntaxException e) {
        creator.undo(selectionConditionInfo.getSelectionCondition(), dataSource);
        DialogDisplayer.getDefault().notify(new NotifyDescriptor.Message(NbBundle.getMessage(Costanti.class, Costanti.SYNTAX_WARNING) + " : " + e.getMessage(), DialogDescriptor.WARNING_MESSAGE));
        StatusDisplayer.getDefault().setStatusText(NbBundle.getMessage(Costanti.class, Costanti.SYNTAX_WARNING));
        ripristina(oldButtonState, oldSelectionCondition, selectionConditionInfo);
    }
}
 
开发者ID:dbunibas,项目名称:spicy,代码行数:20,代码来源:ActionSelectionCondition.java

示例4: creaWidgetEsisteSelectionCondition

import org.netbeans.api.visual.vmd.VMDPinWidget; //导入方法依赖的package包/类
public void creaWidgetEsisteSelectionCondition(DefaultMutableTreeNode treeNode, String espressione, SelectionCondition selectionCondition) {
    TreeNodeAdapter adapter = (TreeNodeAdapter) treeNode.getUserObject();
    INode iNode = adapter.getINode();

    if (!espressione.equalsIgnoreCase("true") && !espressione.equalsIgnoreCase("")) {
        adapter.setSelectionCondition(true);
        VMDPinWidget vMDPinWidget = (VMDPinWidget) iNode.getAnnotation(Costanti.PIN_WIDGET_TREE);
        if (selectionCondition != null) {
            vMDPinWidget.setToolTipText(selectionCondition.toString());
        }
    } else if ((espressione.equalsIgnoreCase("true") || espressione.equalsIgnoreCase(""))) {
        adapter.setSelectionCondition(false);
    }
}
 
开发者ID:dbunibas,项目名称:spicy,代码行数:15,代码来源:CreaWidgetEsisteSelectionCondition.java


注:本文中的org.netbeans.api.visual.vmd.VMDPinWidget.setToolTipText方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。