Examples of EmbeddableAttributeEvent


Examples of org.apache.cayenne.map.event.EmbeddableAttributeEvent

            Object src,
            ProjectController mediator,
            Embeddable embeddable,
            EmbeddableAttribute attr) {

        mediator.fireEmbeddableAttributeEvent(new EmbeddableAttributeEvent(
                src,
                attr,
                embeddable,
                MapEvent.ADD));
View Full Code Here

Examples of org.apache.cayenne.map.event.EmbeddableAttributeEvent

    }

    @Override
    public void setUpdatedValueAt(Object value, int row, int col) {
        EmbeddableAttribute attribute = getEmbeddableAttribute(row);
        EmbeddableAttributeEvent event = new EmbeddableAttributeEvent(eventSource, embeddable, attribute);
        String path = null;
        Collection<String> nameAttr = null;
       
        if (col == OBJ_ATTRIBUTE) {
            event.setOldName(attribute.getName());
            ProjectUtil.setEmbeddableAttributeName(attribute, value != null ? value
             .toString()
             .trim() : null);

            fireTableCellUpdated(row, col);
View Full Code Here

Examples of org.apache.cayenne.map.event.EmbeddableAttributeEvent

            EmbeddableAttribute[] attrs) {
        ProjectController mediator = getProjectController();

        for (EmbeddableAttribute attrib : attrs) {
            embeddable.removeAttribute(attrib.getName());
            EmbeddableAttributeEvent e = new EmbeddableAttributeEvent(Application
                    .getFrame(), attrib, embeddable, MapEvent.REMOVE);
            mediator.fireEmbeddableAttributeEvent(e);
        }
    }
View Full Code Here

Examples of org.apache.cayenne.map.event.EmbeddableAttributeEvent

            Object src,
            ProjectController mediator,
            Embeddable embeddable,
            EmbeddableAttribute attr) {

        mediator.fireEmbeddableAttributeEvent(new EmbeddableAttributeEvent(
                src,
                attr,
                embeddable,
                MapEvent.ADD));
View Full Code Here

Examples of org.apache.cayenne.map.event.EmbeddableAttributeEvent

    }

    @Override
    public void setUpdatedValueAt(Object value, int row, int col) {
        EmbeddableAttribute attribute = getEmbeddableAttribute(row);
        EmbeddableAttributeEvent event = new EmbeddableAttributeEvent(
                eventSource,
                embeddable,
                attribute);
        String path = null;
        Collection<String> nameAttr = null;

        if (col == OBJ_ATTRIBUTE) {
            event.setOldName(attribute.getName());
            ProjectUtil.setEmbeddableAttributeName(attribute, value != null ? value
                    .toString()
                    .trim() : null);

            fireTableCellUpdated(row, col);
View Full Code Here

Examples of org.apache.cayenne.map.event.EmbeddableAttributeEvent

            EmbeddableAttribute[] attrs) {
        ProjectController mediator = getProjectController();

        for (EmbeddableAttribute attrib : attrs) {
            embeddable.removeAttribute(attrib.getName());
            EmbeddableAttributeEvent e = new EmbeddableAttributeEvent(Application
                    .getFrame(), attrib, embeddable, MapEvent.REMOVE);
            mediator.fireEmbeddableAttributeEvent(e);
        }
    }
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.