Examples of SetAttributeCommand


Examples of org.locationtech.udig.project.internal.commands.edit.SetAttributeCommand

     * @param attributeName
     * @param obj
     */
    private boolean setOnMap(final IMap map, final FeatureId fid, final String attributeName,
            final Object obj) {
        final SetAttributeCommand cmd = new SetAttributeCommand(attributeName, obj);
        map.sendCommandASync(cmd);
        return true;
    }
View Full Code Here

Examples of org.locationtech.udig.project.internal.commands.edit.SetAttributeCommand

     * @param value the value that the attribute will be set to.
     * @return a new {@linkplain SetAttributeCommand}object
     * @see EditCommand
     */
    public UndoableMapCommand createSetAttributeCommand( String xpath, Object value ) {
        return new SetAttributeCommand(xpath, value);
    }
View Full Code Here

Examples of org.locationtech.udig.project.internal.commands.edit.SetAttributeCommand

    @Override
    public void setAttribute( int index, Object value ) {
        SimpleFeatureType schema = getFeatureType();
        AttributeDescriptor attribute = schema.getAttributeDescriptors().get(index);
        String name = attribute.getLocalName();
        SetAttributeCommand sync = new SetAttributeCommand(name, value);
        dirty.add(name);
        manager.getMap().sendCommandASync(sync);
    }
View Full Code Here

Examples of org.locationtech.udig.project.internal.commands.edit.SetAttributeCommand

        dirty.add(name);
        manager.getMap().sendCommandASync(sync);
    }
    @Override
    public void setAttribute( Name name, Object value ) {
        SetAttributeCommand sync = new SetAttributeCommand(name.getLocalPart(), value);
        dirty.add(name.getLocalPart());
        manager.getMap().sendCommandASync(sync);
    }
View Full Code Here

Examples of org.locationtech.udig.project.internal.commands.edit.SetAttributeCommand

        manager.getMap().sendCommandASync(sync);
    }
    @Override
    public void setAttribute( String path, Object value ) {
        //System.out.println("made it to set attribute");
        SetAttributeCommand sync = new SetAttributeCommand(path, value);
        //System.out.println("made it to before dirty");
        dirty.add(path);
        //System.out.println("made it to after dirty");
        manager.getMap().sendCommandASync(sync);
    }
View Full Code Here

Examples of org.locationtech.udig.project.internal.commands.edit.SetAttributeCommand

     * @param value the value that the attribute will be set to.
     * @return a new {@linkplain SetAttributeCommand}object
     * @see EditCommand
     */
    public UndoableMapCommand createSetAttributeCommand( String xpath, Object value ) {
        return new SetAttributeCommand(xpath, value);
    }
View Full Code Here

Examples of org.locationtech.udig.project.internal.commands.edit.SetAttributeCommand

     * @param value the value that the attribute will be set to.
     * @return a new {@linkplain SetAttributeCommand}object
     * @see EditCommand
     */
    public UndoableMapCommand createSetAttributeCommand( SimpleFeature feature, ILayer layer, String xpath, Object value ) {
        return new SetAttributeCommand(new StaticBlockingProvider<SimpleFeature>(feature),
                new StaticBlockingProvider<ILayer>(layer), xpath, value);
    }
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.