Examples of addAttributeListener()


Examples of com.cburch.logisim.data.AttributeSet.addAttributeListener()

    this.fieldY = y;
    this.halign = halign;
    this.valign = valign;
    boolean shouldReg = shouldRegister();
    AttributeSet attrs = comp.getAttributeSet();
    if (!wasReg && shouldReg) attrs.addAttributeListener(this);
    if (wasReg && !shouldReg) attrs.removeAttributeListener(this);
   
    updateField(attrs);
  }
 
View Full Code Here

Examples of com.cburch.logisim.data.AttributeSet.addAttributeListener()

        this.fieldY = y;
        this.halign = halign;
        this.valign = valign;
        boolean shouldReg = shouldRegister();
        AttributeSet attrs = comp.getAttributeSet();
        if (!wasReg && shouldReg) attrs.addAttributeListener(this);
        if (wasReg && !shouldReg) attrs.removeAttributeListener(this);

        updateField(attrs);
    }
View Full Code Here

Examples of com.cburch.logisim.data.AttributeSet.addAttributeListener()

    }

    static AttributeSet createBaseAttrs(Circuit source, String name) {
        AttributeSet ret = AttributeSets.fixedSet(STATIC_ATTRS, STATIC_DEFAULTS);
        ret.setValue(CircuitAttributes.NAME_ATTR, name);
        ret.addAttributeListener(new StaticListener(source));
        return ret;
    }

    private Circuit source;
    private Instance subcircInstance;
View Full Code Here

Examples of com.cburch.logisim.data.AttributeSet.addAttributeListener()

    public void addToolAttributeListener(AttributeListener l) {
        for (Tool tool : contents) {
            if (tool != null) {
                AttributeSet attrs = tool.getAttributeSet();
                if (attrs != null) attrs.addAttributeListener(l);
            }
        }
        toolListeners.add(l);
    }
View Full Code Here

Examples of com.cburch.logisim.data.AttributeSet.addAttributeListener()

    }

    private void addAttributeListeners(Tool tool) {
        for (AttributeListener l : toolListeners) {
            AttributeSet attrs = tool.getAttributeSet();
            if (attrs != null) attrs.addAttributeListener(l);
        }
    }

    private void removeAttributeListeners(Tool tool) {
        for (AttributeListener l : toolListeners) {
View Full Code Here

Examples of com.cburch.logisim.data.AttributeSet.addAttributeListener()

                }
            } else if (action == LibraryEvent.ADD_TOOL) {
                Tool tool = (Tool) event.getData();
                AttributeSet attrs = tool.getAttributeSet();
                if (attrs != null) {
                    attrs.addAttributeListener(this);
                }

            } else if (action == LibraryEvent.REMOVE_TOOL) {
                Tool tool = (Tool) event.getData();
                AttributeSet attrs = tool.getAttributeSet();
View Full Code Here

Examples of com.cburch.logisim.data.AttributeSet.addAttributeListener()

                ((LibraryEventSource) lib).addLibraryListener(this);
            }
            for (Tool tool : lib.getTools()) {
                AttributeSet attrs = tool.getAttributeSet();
                if (attrs != null) {
                    attrs.addAttributeListener(this);
                }

            }
        }
View Full Code Here

Examples of com.cburch.logisim.data.AttributeSet.addAttributeListener()

            }
            if (fact == null) {
                ret = AttributeSets.EMPTY;
            } else {
                ret = fact.createAttributeSet();
                ret.addAttributeListener(this);
            }
            baseAttrs = ret;
        }
        return ret;
    }
View Full Code Here

Examples of org.gephi.data.attributes.api.AttributeModel.addAttributeListener()

                nodeAvailableColumnsModel = dataTablesModel.getNodeAvailableColumnsModel();
                edgeAvailableColumnsModel = dataTablesModel.getEdgeAvailableColumnsModel();
                hideTable();
                enableTableControls();

                attributeModel.addAttributeListener(DataTableTopComponent.this);

                graphModel = gc.getModel();
                graphModel.addGraphListener(DataTableTopComponent.this);

                refreshAllOnce();
View Full Code Here

Examples of org.gephi.data.attributes.api.AttributeModel.addAttributeListener()

            dataTablesModel = pc.getCurrentWorkspace().getLookup().lookup(DataTablesModel.class);
            graphModel = gc.getModel();
            graphModel.addGraphListener(DataTableTopComponent.this);

            AttributeModel attributeModel = pc.getCurrentWorkspace().getLookup().lookup(AttributeModel.class);
            attributeModel.addAttributeListener(DataTableTopComponent.this);
        }

        //Filter
        if (dynamicFiltering) {
            filterTextField.getDocument().addDocumentListener(new DocumentListener() {
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.