@PostConstruct public void init() { initWidget(uiBinder.createAndBindUi(this)); accordion.setId(DOM.createUniqueId()); formAccordionHeader.setDataParent(accordion.getId()); formAccordionHeader.setDataTargetWidget(formAccordionCollapse); resultAccordionHeader.setDataParent(accordion.getId()); resultAccordionHeader.setDataTargetWidget(resultAccordionCollapse); // TODO {porcelli} due a bug on bootstrap we can't use custom date formats createdAfter.setFormat(ApplicationPreferences.getDroolsDateFormat()); createdBefore.setFormat(ApplicationPreferences.getDroolsDateFormat()); lastModifiedAfter.setFormat(ApplicationPreferences.getDroolsDateFormat()); lastModifiedBefore.setFormat(ApplicationPreferences.getDroolsDateFormat()); formGroup.setStyleName(null); formatTypeahead.setDatasets( new StringDataset( new ArrayList<String>() { { for (final ClientResourceType resourceType : clientTypeRegistry.getRegisteredTypes()) { add(resourceType.getShortName()); } } })); }
@Inject public LayoutEditorView(LayoutEditorWidget layoutEditorWidget) { initWidget(uiBinder.createAndBindUi(this)); this.layoutEditorWidget = layoutEditorWidget; accordion.setId(DOM.createUniqueId()); anchor1.setDataParent(accordion.getId()); anchor1.setDataTargetWidget(collapseOne); anchor2.setDataParent(accordion.getId()); anchor2.setDataTargetWidget(collapseTwo); }
public AdvancedAnnotationListEditorViewImpl() { initWidget(uiBinder.createAndBindUi(this)); accordionsContainer.setId(DOM.createUniqueId()); }