Package rim.pda

Examples of rim.pda.DateDocument


            resourceProperty.add(currentTimeDocument);
            resourceProperty.setCallback(new org.apache.ws.resource.lifetime.callback.CurrentTimeCallback());
            resourceProperty.addChangeListener(metricsCapability);

            resourceProperty = resourcePropertySet.get(BlackberryPropertyQNames.DATE);
            DateDocument dateDocument = DateDocument.Factory.newInstance();
            DateDocument.Date date = dateDocument.addNewDate();
            date.setDay(calendarInstance.get(Calendar.DAY_OF_MONTH));
            date.setMonth(calendarInstance.get(Calendar.MONTH));
            date.setYear(calendarInstance.get(Calendar.YEAR));
            dateDocument.setDate(date);
            resourceProperty.add(dateDocument);


            resourceProperty = resourcePropertySet.get(BlackberryPropertyQNames.FREESTORAGE);
            FreeStorageDocument freeStorageDocument = FreeStorageDocument.Factory.newInstance();
View Full Code Here


        XmlObject[] capabilityElems = m_resource.getResourceProperty( ManageabilityCharacteristicsCapability.PROP_NAME_MANAGEABILITY_CAPABILITY );
        assertContainsURI( capabilityElems, ConfigurationCapability.URI );
        assertContainsURI( capabilityElems, CAPABILITY_URI_BLACKBERRY_CONFIGURATION );

        // set date prop
        DateDocument dateDoc = DateDocument.Factory.newInstance();
        DateDocument.Date newDate = dateDoc.addNewDate();
        newDate.setDay( 24 );
        newDate.setMonth( 8 );
        newDate.setYear( 1975 );
        setSingleProperty( m_resource, dateDoc );
View Full Code Here

            resourceProperty.add(currentTimeDocument);
            resourceProperty.setCallback(new org.apache.ws.resource.lifetime.callback.CurrentTimeCallback());
            resourceProperty.addChangeListener(metricsCapability);

            resourceProperty = resourcePropertySet.get(BlackberryPropertyQNames.DATE);
            DateDocument dateDocument = DateDocument.Factory.newInstance();
            DateDocument.Date date = dateDocument.addNewDate();
            date.setDay(calendarInstance.get(Calendar.DAY_OF_MONTH));
            date.setMonth(calendarInstance.get(Calendar.MONTH));
            date.setYear(calendarInstance.get(Calendar.YEAR));
            dateDocument.setDate(date);
            resourceProperty.add(dateDocument);


            resourceProperty = resourcePropertySet.get(BlackberryPropertyQNames.FREESTORAGE);
            FreeStorageDocument freeStorageDocument = FreeStorageDocument.Factory.newInstance();
View Full Code Here

TOP

Related Classes of rim.pda.DateDocument

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.