本文整理汇总了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);
}
}
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}