Package org.eclipse.sapphire

Examples of org.eclipse.sapphire.ValuePropertyBinding


    {
        final PropertyDef pdef = property.definition();
       
        if( pdef == IEventAttachment.PROP_LOCAL_COPY_LOCATION )
        {
            return new ValuePropertyBinding()
            {
                @Override
                public String read()
                {
                    return getBase().getLocalCopyLocation().text( false );
                }
               
                @Override
                public void write( String value )
                {
                    getBase().setLocalCopyLocation( value );
                }
            };
        }
        else if( pdef == IEventAttachment.PROP_PUBLIC_COPY_LOCATION )
        {
            return new ValuePropertyBinding()
            {
                @Override
                public String read()
                {
                    return getBase().getPublicCopyLocation().text( false );
View Full Code Here


    {
        final PropertyDef pdef = property.definition();
       
        if( pdef == IEvent.PROP_SUBJECT )
        {
            return new ValuePropertyBinding()
            {
                @Override
                public String read()
                {
                    return getBase().getSubject().text( false );
                }
               
                @Override
                public void write( final String value )
                {
                    getBase().setSubject( value );
                }
            };
        }
        else if( pdef == IEvent.PROP_LOCATION )
        {
            return new ValuePropertyBinding()
            {
                @Override
                public String read()
                {
                    return getBase().getLocation().text( false );
                }
               
                @Override
                public void write( final String value )
                {
                    getBase().setLocation( value );
                }
            };
        }
        else if( pdef == IEvent.PROP_NOTES )
        {
            return new ValuePropertyBinding()
            {
                @Override
                public String read()
                {
                    return getBase().getNotes().text( false );
                }
               
                @Override
                public void write( final String value )
                {
                    getBase().setNotes( value );
                }
            };
        }
        else if( pdef == IEvent.PROP_START_TIME )
        {
            return new ValuePropertyBinding()
            {
                @Override
                public String read()
                {
                    return getBase().getStartTime().text( false );
                }
               
                @Override
                public void write( final String value )
                {
                    getBase().setStartTime( value );
                }
            };
        }
        else if( pdef == IEvent.PROP_END_TIME )
        {
            return new ValuePropertyBinding()
            {
                @Override
                public String read()
                {
                    return getBase().getEndTime().text( false );
View Full Code Here

    {
        final PropertyDef pdef = property.definition();
       
        if( pdef == IAttendee.PROP_NAME )
        {
            return new ValuePropertyBinding()
            {
                @Override
                public String read()
                {
                    return getBase().getName().text( false );
                }
               
                @Override
                public void write( final String value )
                {
                    getBase().setName( value );
                }
            };
        }
        else if( pdef == IAttendee.PROP_TYPE )
        {
            return new ValuePropertyBinding()
            {
                @Override
                public String read()
                {
                    return getBase().getType().text( false );
                }
               
                @Override
                public void write( final String value )
                {
                    getBase().setType( value );
                }
            };
        }
        else if( pdef == IAttendee.PROP_E_MAIL )
        {
            return new ValuePropertyBinding()
            {
                @Override
                public String read()
                {
                    final Contact c = findContactRecord( false );
                    return ( c != null ? c.getEMail().text() : null );
                }
               
                @Override
                public void write( final String value )
                {
                    final Contact c = findContactRecord( value != null );
                   
                    if( c != null )
                    {
                        c.setEMail( value );
                    }
                }
            };
        }
        else if( pdef == IAttendee.PROP_IN_CONTACT_REPOSITORY )
        {
            return new ValuePropertyBinding()
            {
                @Override
                public String read()
                {
                    return ( findContactRecord( false ) != null ? Boolean.TRUE.toString() : null );
View Full Code Here

           
            PropertyBinding binding = null;
           
            if( pdef == Manufacturer.PROP_NAME )
            {
                binding = new ValuePropertyBinding()
                {
                    @Override
                    public String read()
                    {
                        return getName();
View Full Code Here

           
            PropertyBinding binding = null;
           
            if( pdef == Category.PROP_NAME )
            {
                binding = new ValuePropertyBinding()
                {
                    @Override
                    public String read()
                    {
                        return getName();
View Full Code Here

    {
        PropertyBinding binding = null;
       
        if( property instanceof Value )
        {
            binding = new ValuePropertyBinding()
            {
                private String value;
               
                @Override
                public String read()
View Full Code Here

        @Override
        protected PropertyBinding createBinding( final Property property )
        {
            if( property.definition() == this.listEntryProperty )
            {
                return new ValuePropertyBinding()
                {
                    @Override
                    public String read()
                    {
                        return getValue();
View Full Code Here

TOP

Related Classes of org.eclipse.sapphire.ValuePropertyBinding

Copyright © 2018 www.massapicom. 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.