| /******************************************************************************* |
| * Copyright (c) 2013, 2015 EclipseSource and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * EclipseSource - initial API and implementation |
| ******************************************************************************/ |
| package org.eclipse.rap.addons.dropdown.demo.internal; |
| |
| import java.util.HashMap; |
| import java.util.Map; |
| |
| import org.eclipse.rap.addons.dropdown.demo.AutoSuggestDemo; |
| import org.eclipse.rap.addons.dropdown.demo.DropDownDemo; |
| import org.eclipse.rap.rwt.RWT; |
| import org.eclipse.rap.rwt.application.Application; |
| import org.eclipse.rap.rwt.application.ApplicationConfiguration; |
| import org.eclipse.rap.rwt.client.WebClient; |
| import org.eclipse.rap.rwt.widgets.DropDown; |
| |
| |
| public class DropDownApplication implements ApplicationConfiguration { |
| |
| @Override |
| public void configure( Application application ) { |
| Map<String, String> properties = new HashMap<>(); |
| properties.put( WebClient.PAGE_TITLE, "DropDown Demo" ); |
| application.addEntryPoint( "/dropdown", DropDownDemo.class, properties ); |
| application.addEntryPoint( "/autosuggest", AutoSuggestDemo.class, properties ); |
| application.addStyleSheet( RWT.DEFAULT_THEME_ID, "theme/theme.css" ); |
| application.addThemeableWidget( DropDown.class ); |
| } |
| |
| } |