Examples of sameValue()


Examples of org.openquark.cal.valuenode.ValueNode.sameValue()

            ValueGem valueGemChanged = mapEntry.getKey();
            ValueNode valueGemChangedValue = mapEntry.getValue();

            ValueNode preChangeValue = (valueGemChanged == committedValueGem) ? oldValue : valueGemChanged.getValueNode();

            if (!preChangeValue.sameValue(valueGemChangedValue)) {
                valueGemChanged.changeValue(valueGemChangedValue);
                undoableEditSupport.postEdit(new UndoableValueChangeEdit(valueGemChanged, preChangeValue));
                valueGemChangesPosted = true;
            }
        }
View Full Code Here

Examples of org.openquark.cal.valuenode.ValueNode.sameValue()

        // Post a ValueChangeEdit for each value gem that changed.
        for (final Map.Entry<ValueGem, ValueNode> mapEntry : valueGemToOldValueMap.entrySet()) {
            ValueGem valueGem = mapEntry.getKey();
            ValueNode oldValue = mapEntry.getValue();

            if (!oldValue.sameValue(valueGem.getValueNode())) {
                undoableEditSupport.postEdit(new UndoableValueChangeEdit(valueGem, oldValue));
                valueGemChangesPosted = true;
            }
        }
View Full Code Here

Examples of org.openquark.cal.valuenode.ValueNode.sameValue()

                    ValueNode vn = (ValueNode) value;
                   
                    label.setText(vn.getTextValue());
                    label.setToolTipText(vn.getTextValue());
                   
                    if (highlightValue != null && vn.sameValue(highlightValue)) {
                        label.setForeground(isSelected ? Color.WHITE : Color.BLUE);
                    }
                   
                    return label;
                }
View Full Code Here

Examples of org.openquark.cal.valuenode.ValueNode.sameValue()

        ValueNode searchValueNode = getValueNode();

        for (int i = 0, listSize = listModel.getSize(); i < listSize; i++) {
            ValueNode vn = (ValueNode) listModel.get(i);

            if (vn.sameValue(searchValueNode)) {
                getEnumeratedValueList().setSelectedIndex(i);
                break;
            }
        }
    }
View Full Code Here

Examples of org.openquark.cal.valuenode.ValueNode.sameValue()

        super.setOwnerValueNode(newValueNode);
        TypeExpr typeExpr = getValueNode().getTypeExpr();

        // if the value changed, give it a new value entry field.
        if (oldOwnerValueNode == null || !oldOwnerValueNode.sameValue(newValueNode)) {

            // Set-up this ValueEntryPanel with the data in the ValueNode.
            String iconName = valueEditorManager.getTypeIconName(typeExpr);
            this.setTypeIcon(iconName);
   
View Full Code Here

Examples of org.openquark.cal.valuenode.ValueNode.sameValue()

           
            int current = -1;
           
            for (int i = 0, size = valueNodeList.size(); i < size; i++) {
                ValueNode valueNode = valueNodeList.get(i);
                if (valueNode.sameValue(getValueNode())) {
                    current = i;
                    break;
                }
            }
           
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.