List of usage examples for com.google.gwt.core.client JavaScriptObject createObject
public static native JavaScriptObject createObject() ;
From source file:org.sigmah.offline.js.ContactRelationshipJS.java
License:Open Source License
public static ContactRelationshipJS toJavaScript(ContactRelationship contactRelationshipDTO) { ContactRelationshipJS contactRelationshipJS = (ContactRelationshipJS) JavaScriptObject.createObject(); contactRelationshipJS.setRelationshipId(contactRelationshipDTO.getRelationshipId()); contactRelationshipJS.setName(contactRelationshipDTO.getName()); contactRelationshipJS.setFieldName(contactRelationshipDTO.getFieldName()); contactRelationshipJS.setGroupName(contactRelationshipDTO.getGroupName()); contactRelationshipJS.setFormattedType(contactRelationshipDTO.getFormattedType()); contactRelationshipJS.setType(contactRelationshipDTO.getType()); contactRelationshipJS.setDirection(contactRelationshipDTO.getDirection()); return contactRelationshipJS; }
From source file:org.sigmah.offline.js.LayoutConstraintJS.java
License:Open Source License
public static LayoutConstraintJS toJavaScript(LayoutConstraintDTO layoutConstraintDTO) { final LayoutConstraintJS layoutConstraintJS = (LayoutConstraintJS) JavaScriptObject.createObject(); layoutConstraintJS.setId(layoutConstraintDTO.getId()); layoutConstraintJS.setSortOrder(layoutConstraintDTO.getSortOrder()); layoutConstraintJS.setFlexibleElement(layoutConstraintDTO.getFlexibleElementDTO()); return layoutConstraintJS; }
From source file:org.sigmah.offline.js.LayoutGroupJS.java
License:Open Source License
public static LayoutGroupJS toJavaScript(LayoutGroupDTO layoutGroupDTO) { final LayoutGroupJS layoutGroupJS = (LayoutGroupJS) JavaScriptObject.createObject(); layoutGroupJS.setId(layoutGroupDTO.getId()); layoutGroupJS.setTitle(layoutGroupDTO.getTitle()); layoutGroupJS.setRow(layoutGroupDTO.getRow()); layoutGroupJS.setColumn(layoutGroupDTO.getColumn()); layoutGroupJS.setParentLayout(layoutGroupDTO.getParentLayout()); layoutGroupJS.setConstraints(layoutGroupDTO.getConstraints()); return layoutGroupJS; }
From source file:org.sigmah.offline.js.LayoutJS.java
License:Open Source License
public static LayoutJS toJavaScript(LayoutDTO layoutDTO) { final LayoutJS layoutJS = (LayoutJS) JavaScriptObject.createObject(); layoutJS.setId(layoutDTO.getId());/*from w w w . j a v a 2 s . c om*/ layoutJS.setRowsCount(layoutDTO.getRowsCount()); layoutJS.setColumnsCount(layoutDTO.getColumnsCount()); layoutJS.setGroups(layoutDTO.getGroups()); return layoutJS; }
From source file:org.sigmah.offline.js.PersonalEventJS.java
License:Open Source License
public static PersonalEventJS toJavaScript(Event event) { final PersonalEventJS personalEventJS = (PersonalEventJS) JavaScriptObject.createObject(); personalEventJS.setId(event.getIdentifier()); personalEventJS.setSummary(event.getSummary()); personalEventJS.setDescription(event.getDescription()); personalEventJS.setDtstart(Values.toJsDate(event.getDtstart())); personalEventJS.setDtend(Values.toJsDate(event.getDtend())); return personalEventJS; }
From source file:org.sigmah.offline.js.PrivacyGroupJS.java
License:Open Source License
public static PrivacyGroupJS toJavaScript(PrivacyGroupDTO privacyGroupDTO) { final PrivacyGroupJS privacyGroupJS = (PrivacyGroupJS) JavaScriptObject.createObject(); privacyGroupJS.setId(privacyGroupDTO.getId()); privacyGroupJS.setCode(privacyGroupDTO.getCode()); privacyGroupJS.setTitle(privacyGroupDTO.getTitle()); return privacyGroupJS; }
From source file:org.sigmah.offline.js.ReminderJS.java
License:Open Source License
public static ReminderJS toJavaScript(ReminderDTO reminderDTO) { final ReminderJS reminderJS = (ReminderJS) JavaScriptObject.createObject(); reminderJS.setId(reminderDTO.getId()); reminderJS.setParentListId(reminderDTO.getParentListId()); reminderJS.setLabel(reminderDTO.getLabel()); reminderJS.setExpectedDate(Values.toJsDate(reminderDTO.getExpectedDate())); reminderJS.setCompletionDate(Values.toJsDate(reminderDTO.getCompletionDate())); reminderJS.setDeleted(reminderDTO.getDeleted()); if (reminderDTO.getCurrentMappingMode() == ReminderDTO.Mode.WITH_HISTORY) { reminderJS.setHistory(reminderDTO.getHistory()); }// w w w . j a va 2 s . c o m return reminderJS; }
From source file:org.tiwonk.rest.example.person.client.Person.java
License:Apache License
public static Person create() { return JavaScriptObject.createObject().cast(); }
From source file:org.tiwonk.rest.example.person.client.Phone.java
License:Apache License
public static Phone create() { return JavaScriptObject.createObject().cast(); }
From source file:org.tiwonk.rest.example.person.client.PostalAddress.java
License:Apache License
public static PostalAddress create() { return JavaScriptObject.createObject().cast(); }