├── .travis.yml ├── Procfile ├── src ├── main │ ├── docs │ │ ├── gwt-bookmarks.png │ │ ├── gwt-compiler.png │ │ ├── sts-boot-jrebel.png │ │ ├── gwt-logging-client.png │ │ ├── gwt-logging-server.png │ │ ├── idea-add-web-facet.png │ │ ├── idea-choose-module.png │ │ ├── sts-boot-dashboard.png │ │ ├── idea-import-project.png │ │ ├── idea-do-not-add-web.xml.png │ │ ├── demo-gwt-springboot-model.jpg │ │ ├── idea-browser-dev-mode-on.png │ │ ├── idea-configure-web-facet.png │ │ ├── idea-ide-support-options.png │ │ ├── idea-configure-web-facet-2.png │ │ ├── idea-debugging-setup-diagram.png │ │ ├── idea-open-project-structure.png │ │ ├── idea-open-run-configuration.png │ │ ├── idea-add-gwt-run-configuration.png │ │ ├── sts-maven-development-profile.png │ │ ├── demo-gwt-springboot-architecture.jpg │ │ ├── idea-browser-add-links-dev-mode.png │ │ ├── idea-debugging-session-is-running.png │ │ ├── idea-alert-for-jetbrain-chrome-plugin.png │ │ ├── idea-configure-web-facet-add-contextpath.png │ │ ├── idea-ide-support-preferences-configure-port.png │ │ └── idea-projectstructure-gwt-facet-configuration.png │ ├── resources │ │ ├── application.properties │ │ ├── model │ │ │ ├── .gitignore │ │ │ ├── demo-gwt-springboot.mdzip │ │ │ ├── profiles │ │ │ │ ├── kissmda-profile-core.mdzip │ │ │ │ └── kissmda-profile-datatype.mdzip │ │ │ └── emf │ │ │ │ └── UML_Standard_Profile.StandardProfile.profile.uml │ │ ├── public │ │ │ ├── images │ │ │ │ ├── favicon.png │ │ │ │ ├── ajax-loader.gif │ │ │ │ ├── google-logo.png │ │ │ │ ├── yahoo-logo.png │ │ │ │ ├── auftrags-logo.png │ │ │ │ ├── entsorger-logo.png │ │ │ │ ├── isupplier-logo.png │ │ │ │ ├── dienstleistung-logo.png │ │ │ │ ├── ecoservice24-logo.png │ │ │ │ ├── mengenmeldung-logo.png │ │ │ │ └── sammeldrache-logo.jpeg │ │ │ ├── myfunction.js │ │ │ ├── manifest.json │ │ │ ├── index.html │ │ │ └── demogwt.css │ │ └── com │ │ │ └── lofidewanto │ │ │ └── demo │ │ │ ├── client │ │ │ ├── common │ │ │ │ ├── logo.png │ │ │ │ ├── ajax-loader.gif │ │ │ │ └── logo-transparent.png │ │ │ └── Messages.properties │ │ │ ├── resource │ │ │ └── themes │ │ │ │ ├── bootswatch │ │ │ │ ├── paper │ │ │ │ │ ├── css │ │ │ │ │ │ └── bootstrap.fix.css │ │ │ │ │ └── fonts │ │ │ │ │ │ ├── FontAwesome.otf │ │ │ │ │ │ ├── fontawesome-webfont.eot │ │ │ │ │ │ ├── fontawesome-webfont.ttf │ │ │ │ │ │ ├── fontawesome-webfont.woff │ │ │ │ │ │ ├── fontawesome-webfont.woff2 │ │ │ │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ │ │ │ └── glyphicons-halflings-regular.woff2 │ │ │ │ ├── cosmo │ │ │ │ │ └── fonts │ │ │ │ │ │ ├── FontAwesome.otf │ │ │ │ │ │ ├── fontawesome-webfont.eot │ │ │ │ │ │ ├── fontawesome-webfont.ttf │ │ │ │ │ │ ├── fontawesome-webfont.woff │ │ │ │ │ │ ├── fontawesome-webfont.woff2 │ │ │ │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ │ │ │ └── glyphicons-halflings-regular.woff2 │ │ │ │ ├── cyborg │ │ │ │ │ └── fonts │ │ │ │ │ │ ├── FontAwesome.otf │ │ │ │ │ │ ├── fontawesome-webfont.eot │ │ │ │ │ │ ├── fontawesome-webfont.ttf │ │ │ │ │ │ ├── fontawesome-webfont.woff │ │ │ │ │ │ ├── fontawesome-webfont.woff2 │ │ │ │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ │ │ │ └── glyphicons-halflings-regular.woff2 │ │ │ │ ├── darkly │ │ │ │ │ └── fonts │ │ │ │ │ │ ├── FontAwesome.otf │ │ │ │ │ │ ├── fontawesome-webfont.eot │ │ │ │ │ │ ├── fontawesome-webfont.ttf │ │ │ │ │ │ ├── fontawesome-webfont.woff │ │ │ │ │ │ ├── fontawesome-webfont.woff2 │ │ │ │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ │ │ │ └── glyphicons-halflings-regular.woff2 │ │ │ │ ├── flatly │ │ │ │ │ └── fonts │ │ │ │ │ │ ├── FontAwesome.otf │ │ │ │ │ │ ├── fontawesome-webfont.eot │ │ │ │ │ │ ├── fontawesome-webfont.ttf │ │ │ │ │ │ ├── fontawesome-webfont.woff │ │ │ │ │ │ ├── fontawesome-webfont.woff2 │ │ │ │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ │ │ │ └── glyphicons-halflings-regular.woff2 │ │ │ │ ├── simplex │ │ │ │ │ └── fonts │ │ │ │ │ │ ├── FontAwesome.otf │ │ │ │ │ │ ├── fontawesome-webfont.eot │ │ │ │ │ │ ├── fontawesome-webfont.ttf │ │ │ │ │ │ ├── fontawesome-webfont.woff │ │ │ │ │ │ ├── fontawesome-webfont.woff2 │ │ │ │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ │ │ │ └── glyphicons-halflings-regular.woff2 │ │ │ │ └── united │ │ │ │ │ └── fonts │ │ │ │ │ ├── FontAwesome.otf │ │ │ │ │ ├── fontawesome-webfont.eot │ │ │ │ │ ├── fontawesome-webfont.ttf │ │ │ │ │ ├── fontawesome-webfont.woff │ │ │ │ │ ├── fontawesome-webfont.woff2 │ │ │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ │ │ └── glyphicons-halflings-regular.woff2 │ │ │ │ └── interseroh │ │ │ │ ├── css │ │ │ │ ├── fonts │ │ │ │ │ └── webfonts │ │ │ │ │ │ ├── 31E5E6_1_0.eot │ │ │ │ │ │ ├── 31E5E6_1_0.ttf │ │ │ │ │ │ ├── 31E5E6_0_0.woff2 │ │ │ │ │ │ └── 31E5E6_1_0.woff2 │ │ │ │ ├── variables.less │ │ │ │ ├── sticky-footer-nav.css │ │ │ │ ├── individual.less │ │ │ │ ├── isd-base.css │ │ │ │ └── topmenubar.less │ │ │ │ ├── fonts │ │ │ │ └── bootstrap │ │ │ │ │ └── glyphicons-halflings-regular.woff │ │ │ │ └── bootstrap │ │ │ │ ├── css │ │ │ │ └── fonts │ │ │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ │ │ └── glyphicons-halflings-regular.woff2 │ │ │ │ └── js │ │ │ │ ├── ie10-viewport-bug-workaround.js │ │ │ │ └── ie-emulation-modes-warning.js │ │ │ ├── DemoGwt.gwt.xml │ │ │ ├── DemoGwtDevelopment.gwt.xml │ │ │ ├── DemoGwtDevelopmentMock.gwt.xml │ │ │ └── DemoBaseGwt.gwt.xml │ └── java │ │ └── com │ │ └── lofidewanto │ │ └── demo │ │ ├── client │ │ ├── event │ │ │ ├── SearchEvent.java │ │ │ ├── FilterEvent.java │ │ │ └── ChangeViewEvent.java │ │ ├── common │ │ │ ├── WidgetName.java │ │ │ ├── ServicePreparator.java │ │ │ ├── Startable.java │ │ │ ├── Asset.java │ │ │ ├── LoadingMessagePopupPanel.java │ │ │ ├── ErrorFormatter.java │ │ │ ├── RestServicePreparator.java │ │ │ └── AbstractMethodCallback.java │ │ ├── domain │ │ │ ├── UserClient.java │ │ │ ├── PersonClient.java │ │ │ ├── RestUserClient.java │ │ │ └── RestPersonClient.java │ │ ├── extra │ │ │ ├── Apple.java │ │ │ ├── MyJavaScriptHello.java │ │ │ └── PersonUtil.java │ │ ├── DemoGwtGinjector.java │ │ ├── DemoGwtEntryPoint.java │ │ ├── DemoGwtGinModule.java │ │ ├── ui │ │ │ ├── main │ │ │ │ ├── MainPanelView.ui.xml │ │ │ │ └── MainPanelView.java │ │ │ └── person │ │ │ │ └── PersonPanelView.ui.xml │ │ └── DemoGwtWebApp.java │ │ ├── shared │ │ ├── UserDto.java │ │ ├── DemoGwtServiceEndpoint.java │ │ ├── PersonDto.java │ │ └── AddressDto.java │ │ ├── server │ │ ├── service │ │ │ ├── user │ │ │ │ └── UserServiceImpl.java │ │ │ └── person │ │ │ │ └── PersonServiceImpl.java │ │ ├── repository │ │ │ ├── AddressRepository.java │ │ │ └── PersonRepository.java │ │ ├── DemoGwtSpringbootApplication.java │ │ ├── controller │ │ │ ├── UserController.java │ │ │ └── PersonController.java │ │ └── domain │ │ │ ├── AddressImpl.java │ │ │ └── PersonImpl.java │ │ └── mock │ │ ├── domain │ │ ├── MockUserClient.java │ │ └── MockPersonClient.java │ │ ├── common │ │ └── MockServicePreparator.java │ │ ├── DemoGwtMockWebAppGinjector.java │ │ ├── DemoGwtMockEntryPoint.java │ │ └── DemoGwtMockWebAppGinModule.java └── test │ └── java │ └── com │ └── lofidewanto │ └── demo │ ├── server │ ├── DemoGwtSpringbootApplicationTests.java │ ├── domain │ │ └── PersonImplTest.java │ └── service │ │ └── person │ │ ├── PersonServiceImplTest.java │ │ └── PersonServiceImplIT.java │ └── client │ ├── ui │ ├── main │ │ └── MainPanelViewTest.java │ └── person │ │ └── PersonPanelViewTest.java │ └── common │ └── AbstractMethodCallbackTest.java ├── .gitignore └── LICENSE /.travis.yml: -------------------------------------------------------------------------------- 1 | language: java 2 | jdk: 3 | - oraclejdk8 -------------------------------------------------------------------------------- /Procfile: -------------------------------------------------------------------------------- 1 | web: java -Dserver.port=$PORT $JAVA_OPTS -jar target/*.jar 2 | -------------------------------------------------------------------------------- /src/main/docs/gwt-bookmarks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/docs/gwt-bookmarks.png -------------------------------------------------------------------------------- /src/main/docs/gwt-compiler.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/docs/gwt-compiler.png -------------------------------------------------------------------------------- /src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port=9014 2 | server.context-path=/demogwt 3 | security.basic.enabled=false -------------------------------------------------------------------------------- /src/main/docs/sts-boot-jrebel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/docs/sts-boot-jrebel.png -------------------------------------------------------------------------------- /src/main/docs/gwt-logging-client.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/docs/gwt-logging-client.png -------------------------------------------------------------------------------- /src/main/docs/gwt-logging-server.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/docs/gwt-logging-server.png -------------------------------------------------------------------------------- /src/main/docs/idea-add-web-facet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/docs/idea-add-web-facet.png -------------------------------------------------------------------------------- /src/main/docs/idea-choose-module.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/docs/idea-choose-module.png -------------------------------------------------------------------------------- /src/main/docs/sts-boot-dashboard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/docs/sts-boot-dashboard.png -------------------------------------------------------------------------------- /src/main/docs/idea-import-project.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/docs/idea-import-project.png -------------------------------------------------------------------------------- /src/main/resources/model/.gitignore: -------------------------------------------------------------------------------- 1 | /test-uml.mdzip.bak 2 | /demo-gwt-springboot.mdzip.bak 3 | /demo-gwt-springboot.mdzip_pre18.1.mdzip.bak 4 | -------------------------------------------------------------------------------- /src/main/docs/idea-do-not-add-web.xml.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/docs/idea-do-not-add-web.xml.png -------------------------------------------------------------------------------- /src/main/docs/demo-gwt-springboot-model.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/docs/demo-gwt-springboot-model.jpg -------------------------------------------------------------------------------- /src/main/docs/idea-browser-dev-mode-on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/docs/idea-browser-dev-mode-on.png -------------------------------------------------------------------------------- /src/main/docs/idea-configure-web-facet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/docs/idea-configure-web-facet.png -------------------------------------------------------------------------------- /src/main/docs/idea-ide-support-options.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/docs/idea-ide-support-options.png -------------------------------------------------------------------------------- /src/main/docs/idea-configure-web-facet-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/docs/idea-configure-web-facet-2.png -------------------------------------------------------------------------------- /src/main/docs/idea-debugging-setup-diagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/docs/idea-debugging-setup-diagram.png -------------------------------------------------------------------------------- /src/main/docs/idea-open-project-structure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/docs/idea-open-project-structure.png -------------------------------------------------------------------------------- /src/main/docs/idea-open-run-configuration.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/docs/idea-open-run-configuration.png -------------------------------------------------------------------------------- /src/main/resources/public/images/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/public/images/favicon.png -------------------------------------------------------------------------------- /src/main/docs/idea-add-gwt-run-configuration.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/docs/idea-add-gwt-run-configuration.png -------------------------------------------------------------------------------- /src/main/docs/sts-maven-development-profile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/docs/sts-maven-development-profile.png -------------------------------------------------------------------------------- /src/main/resources/public/images/ajax-loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/public/images/ajax-loader.gif -------------------------------------------------------------------------------- /src/main/resources/public/images/google-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/public/images/google-logo.png -------------------------------------------------------------------------------- /src/main/resources/public/images/yahoo-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/public/images/yahoo-logo.png -------------------------------------------------------------------------------- /src/main/docs/demo-gwt-springboot-architecture.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/docs/demo-gwt-springboot-architecture.jpg -------------------------------------------------------------------------------- /src/main/docs/idea-browser-add-links-dev-mode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/docs/idea-browser-add-links-dev-mode.png -------------------------------------------------------------------------------- /src/main/docs/idea-debugging-session-is-running.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/docs/idea-debugging-session-is-running.png -------------------------------------------------------------------------------- /src/main/resources/model/demo-gwt-springboot.mdzip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/model/demo-gwt-springboot.mdzip -------------------------------------------------------------------------------- /src/main/resources/public/images/auftrags-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/public/images/auftrags-logo.png -------------------------------------------------------------------------------- /src/main/resources/public/images/entsorger-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/public/images/entsorger-logo.png -------------------------------------------------------------------------------- /src/main/resources/public/images/isupplier-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/public/images/isupplier-logo.png -------------------------------------------------------------------------------- /src/main/docs/idea-alert-for-jetbrain-chrome-plugin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/docs/idea-alert-for-jetbrain-chrome-plugin.png -------------------------------------------------------------------------------- /src/main/resources/public/images/dienstleistung-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/public/images/dienstleistung-logo.png -------------------------------------------------------------------------------- /src/main/resources/public/images/ecoservice24-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/public/images/ecoservice24-logo.png -------------------------------------------------------------------------------- /src/main/resources/public/images/mengenmeldung-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/public/images/mengenmeldung-logo.png -------------------------------------------------------------------------------- /src/main/resources/public/images/sammeldrache-logo.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/public/images/sammeldrache-logo.jpeg -------------------------------------------------------------------------------- /src/main/docs/idea-configure-web-facet-add-contextpath.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/docs/idea-configure-web-facet-add-contextpath.png -------------------------------------------------------------------------------- /src/main/docs/idea-ide-support-preferences-configure-port.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/docs/idea-ide-support-preferences-configure-port.png -------------------------------------------------------------------------------- /src/main/resources/model/profiles/kissmda-profile-core.mdzip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/model/profiles/kissmda-profile-core.mdzip -------------------------------------------------------------------------------- /src/main/docs/idea-projectstructure-gwt-facet-configuration.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/docs/idea-projectstructure-gwt-facet-configuration.png -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/client/common/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/client/common/logo.png -------------------------------------------------------------------------------- /src/main/resources/model/profiles/kissmda-profile-datatype.mdzip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/model/profiles/kissmda-profile-datatype.mdzip -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/client/common/ajax-loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/client/common/ajax-loader.gif -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/client/common/logo-transparent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/client/common/logo-transparent.png -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/paper/css/bootstrap.fix.css: -------------------------------------------------------------------------------- 1 | /* Fix for Bootstrap theme Paper */ 2 | /* Checkbox and label does not have any empty space */ 3 | .checkbox label span { 4 | padding-left: 10px; 5 | } -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/cosmo/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/cosmo/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/cyborg/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/cyborg/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/darkly/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/darkly/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/flatly/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/flatly/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/paper/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/paper/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/simplex/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/simplex/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/united/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/united/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/interseroh/css/fonts/webfonts/31E5E6_1_0.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/interseroh/css/fonts/webfonts/31E5E6_1_0.eot -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/interseroh/css/fonts/webfonts/31E5E6_1_0.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/interseroh/css/fonts/webfonts/31E5E6_1_0.ttf -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/cosmo/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/cosmo/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/cosmo/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/cosmo/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/cosmo/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/cosmo/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/cyborg/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/cyborg/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/cyborg/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/cyborg/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/darkly/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/darkly/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/darkly/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/darkly/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/flatly/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/flatly/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/flatly/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/flatly/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/paper/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/paper/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/paper/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/paper/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/paper/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/paper/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/united/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/united/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/united/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/united/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/interseroh/css/fonts/webfonts/31E5E6_0_0.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/interseroh/css/fonts/webfonts/31E5E6_0_0.woff2 -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/interseroh/css/fonts/webfonts/31E5E6_1_0.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/interseroh/css/fonts/webfonts/31E5E6_1_0.woff2 -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/cosmo/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/cosmo/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/cyborg/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/cyborg/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/cyborg/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/cyborg/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/darkly/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/darkly/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/darkly/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/darkly/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/flatly/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/flatly/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/flatly/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/flatly/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/paper/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/paper/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/simplex/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/simplex/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/simplex/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/simplex/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/simplex/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/simplex/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/simplex/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/simplex/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/united/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/united/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/united/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/united/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/cosmo/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/cosmo/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/cosmo/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/cosmo/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/paper/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/paper/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/paper/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/paper/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /src/main/resources/public/myfunction.js: -------------------------------------------------------------------------------- 1 | /* 2 | * JavaScript MyFunction. 3 | * 4 | * This file needs to be injected, so that the MyJavaScriptHello class 5 | * can be compiled before. 6 | */ 7 | var myJavaScriptHello = new MyJavaScriptHello('Lofi'); 8 | myJavaScriptHello.click(); 9 | -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/cosmo/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/cosmo/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/cosmo/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/cosmo/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/cyborg/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/cyborg/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/cyborg/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/cyborg/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/cyborg/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/cyborg/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/darkly/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/darkly/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/darkly/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/darkly/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/darkly/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/darkly/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/flatly/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/flatly/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/flatly/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/flatly/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/flatly/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/flatly/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/paper/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/paper/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/paper/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/paper/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/simplex/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/simplex/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/simplex/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/simplex/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/united/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/united/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/united/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/united/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/united/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/united/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/cyborg/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/cyborg/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/darkly/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/darkly/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/flatly/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/flatly/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/simplex/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/simplex/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/simplex/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/simplex/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/united/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/bootswatch/united/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/interseroh/fonts/bootstrap/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/interseroh/fonts/bootstrap/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/interseroh/bootstrap/css/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/interseroh/bootstrap/css/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/interseroh/bootstrap/css/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/interseroh/bootstrap/css/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/interseroh/bootstrap/css/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/interseroh/bootstrap/css/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/interseroh/bootstrap/css/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/interseroh/demo-gwt-springboot/HEAD/src/main/resources/com/lofidewanto/demo/resource/themes/interseroh/bootstrap/css/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.class 2 | 3 | # Mobile Tools for Java (J2ME) 4 | .mtj.tmp/ 5 | 6 | # Package Files # 7 | *.jar 8 | *.war 9 | *.ear 10 | 11 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml 12 | hs_err_pid* 13 | /target/ 14 | /.settings/ 15 | /.classpath 16 | /.project 17 | .idea/ 18 | demo-gwt-springboot.iml 19 | 20 | /replay_*.log 21 | **/rebel.xml -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/DemoGwt.gwt.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /src/main/resources/public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Demo Spring Boot GWT", 3 | "short_name": "Demo Webapp", 4 | "icons": [{ 5 | "src": "images/favicon.png", 6 | "sizes": "144x144", 7 | "type": "image/png" 8 | }, 9 | { 10 | "src": "images/entsorger-logo.png", 11 | "sizes": "348x348", 12 | "type": "image/png" 13 | } 14 | ], 15 | "start_url": "/demogwt.html", 16 | "display": "standalone", 17 | "background_color": "#000000", 18 | "theme_color": "#000000" 19 | } -------------------------------------------------------------------------------- /src/test/java/com/lofidewanto/demo/server/DemoGwtSpringbootApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.lofidewanto.demo.server; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 7 | 8 | @RunWith(SpringJUnit4ClassRunner.class) 9 | @SpringBootTest 10 | public class DemoGwtSpringbootApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/interseroh/css/variables.less: -------------------------------------------------------------------------------- 1 | @secondary-dark-grey: #A1A1A3; 2 | @secondary-medium-grey: #D9D9D9; 3 | @secondary-light-grey: #E5E5E5; 4 | @secondary-lighter-grey: #F2F2F2; 5 | @secondary-lighter-hover-grey: #f7f7f7; 6 | @interseroh-dark-blue: #002652; 7 | @interseroh-azur-blue: #009DD3; 8 | @interseroh-azur-hover-blue: #00B3F0; 9 | @interseroh-white: #FFFFFF; 10 | @interseroh-yellow: #FFCE00; 11 | @interseroh-dark-green: #6b9c4e; 12 | @interseroh-placeholder-color: #999999; 13 | -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/client/Messages.properties: -------------------------------------------------------------------------------- 1 | # LoadingMessagePopupPanel 2 | loadingMessage.message=Loading... 3 | 4 | app.title=MyWebApp 5 | 6 | menu.text.1=Menu One 7 | menu.text.2=Menu Two 8 | menu.text.3=Menu Three 9 | menu.text.4=Menu Four 10 | 11 | button.search=Search 12 | button.update=Update 13 | button.filter=Filter 14 | 15 | first.tab=First Tab 16 | search.tab=Search Tab 17 | 18 | content.heading=Content 19 | 20 | name.suggest=Name 21 | date.from=From 22 | date.until=Until 23 | -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/interseroh/bootstrap/js/ie10-viewport-bug-workaround.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * IE10 viewport hack for Surface/desktop Windows 8 bug 3 | * Copyright 2014-2015 Twitter, Inc. 4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 5 | */ 6 | 7 | // See the Getting Started docs for more information: 8 | // http://getbootstrap.com/getting-started/#support-ie10-width 9 | 10 | (function () { 11 | 'use strict'; 12 | 13 | if (navigator.userAgent.match(/IEMobile\/10\.0/)) { 14 | var msViewportStyle = document.createElement('style'); 15 | msViewportStyle.appendChild( 16 | document.createTextNode( 17 | '@-ms-viewport{width:auto!important}' 18 | ) 19 | ); 20 | document.querySelector('head').appendChild(msViewportStyle) 21 | } 22 | 23 | })(); 24 | -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/DemoGwtDevelopment.gwt.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /src/main/java/com/lofidewanto/demo/client/event/SearchEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.client.event; 20 | 21 | public class SearchEvent extends FilterEvent { 22 | } 23 | -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/interseroh/css/sticky-footer-nav.css: -------------------------------------------------------------------------------- 1 | /* Sticky footer styles 2 | -------------------------------------------------- */ 3 | html { 4 | position: relative; 5 | min-height: 100%; 6 | } 7 | body { 8 | /* Margin bottom by footer height */ 9 | margin-bottom: 40px; 10 | } 11 | .footer { 12 | position: absolute; 13 | bottom: 0; 14 | width: 100%; 15 | /* Set the fixed height of the footer here */ 16 | height: 40px; 17 | background-color: #E7E9EB; 18 | } 19 | 20 | 21 | /* Custom page CSS 22 | -------------------------------------------------- */ 23 | /* Not required for template or sticky footer method. */ 24 | 25 | body > .container { 26 | padding: 40px 15px 0; 27 | } 28 | 29 | .container .text-muted { 30 | margin: 12px 0; 31 | } 32 | 33 | .container-fluid .text-muted { 34 | margin: 12px 0; 35 | } 36 | 37 | .footer > .container { 38 | padding-right: 15px; 39 | padding-left: 15px; 40 | } 41 | 42 | code { 43 | font-size: 80%; 44 | } -------------------------------------------------------------------------------- /src/main/java/com/lofidewanto/demo/client/common/WidgetName.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.client.common; 20 | 21 | public enum WidgetName { 22 | PERSONLIST 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/com/lofidewanto/demo/client/common/ServicePreparator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.client.common; 20 | 21 | public interface ServicePreparator { 22 | 23 | void prepare(String baseUrl); 24 | } 25 | -------------------------------------------------------------------------------- /src/main/java/com/lofidewanto/demo/client/common/Startable.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.client.common; 20 | 21 | public interface Startable { 22 | 23 | void init(); 24 | 25 | void start(); 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/com/lofidewanto/demo/client/event/FilterEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.client.event; 20 | 21 | import com.google.web.bindery.event.shared.binder.GenericEvent; 22 | 23 | public class FilterEvent extends GenericEvent { 24 | } 25 | -------------------------------------------------------------------------------- /src/main/java/com/lofidewanto/demo/client/domain/UserClient.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.client.domain; 20 | 21 | import org.fusesource.restygwt.client.MethodCallback; 22 | 23 | public interface UserClient { 24 | 25 | void getLoginUser(MethodCallback callback); 26 | 27 | } -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/DemoGwtDevelopmentMock.gwt.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /src/main/java/com/lofidewanto/demo/shared/UserDto.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.shared; 20 | 21 | public class UserDto { 22 | 23 | private String name; 24 | 25 | public String getName() { 26 | return name; 27 | } 28 | 29 | public void setName(String name) { 30 | this.name = name; 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/com/lofidewanto/demo/server/service/user/UserServiceImpl.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.server.service.user; 20 | 21 | import org.springframework.stereotype.Service; 22 | 23 | @Service 24 | public class UserServiceImpl implements UserService { 25 | 26 | @Override 27 | public String getLoginUser() { 28 | return "lofidewanto"; 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/com/lofidewanto/demo/server/repository/AddressRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.server.repository; 20 | 21 | import com.lofidewanto.demo.server.domain.AddressImpl; 22 | import org.springframework.data.repository.PagingAndSortingRepository; 23 | 24 | public interface AddressRepository 25 | extends PagingAndSortingRepository { 26 | 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/com/lofidewanto/demo/client/extra/Apple.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.client.extra; 20 | 21 | import jsinterop.annotations.JsPackage; 22 | import jsinterop.annotations.JsType; 23 | 24 | import javax.inject.Singleton; 25 | 26 | @Singleton 27 | @JsType(namespace = JsPackage.GLOBAL, name = "Apple", isNative = true) 28 | public class Apple { 29 | 30 | public int x; 31 | 32 | public int y; 33 | 34 | public native int sum(); 35 | } 36 | -------------------------------------------------------------------------------- /src/main/java/com/lofidewanto/demo/client/common/Asset.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.client.common; 20 | 21 | import com.google.gwt.resources.client.ClientBundle; 22 | import com.google.gwt.resources.client.ImageResource; 23 | 24 | public interface Asset extends ClientBundle { 25 | 26 | @Source("ajax-loader.gif") 27 | ImageResource loadingIcon(); 28 | 29 | @Source("logo-transparent.png") 30 | ImageResource logo(); 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/com/lofidewanto/demo/mock/domain/MockUserClient.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.mock.domain; 20 | 21 | import com.lofidewanto.demo.client.domain.UserClient; 22 | import org.fusesource.restygwt.client.MethodCallback; 23 | 24 | import javax.inject.Singleton; 25 | 26 | @Singleton 27 | public class MockUserClient implements UserClient { 28 | 29 | @Override 30 | public void getLoginUser(MethodCallback callback) { 31 | 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/com/lofidewanto/demo/server/repository/PersonRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.server.repository; 20 | 21 | import com.lofidewanto.demo.server.domain.PersonImpl; 22 | import org.springframework.data.repository.PagingAndSortingRepository; 23 | import org.springframework.stereotype.Repository; 24 | 25 | @Repository 26 | public interface PersonRepository 27 | extends PagingAndSortingRepository { 28 | 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/com/lofidewanto/demo/client/DemoGwtGinjector.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.client; 20 | 21 | import com.google.gwt.inject.client.GinModules; 22 | import com.google.gwt.inject.client.Ginjector; 23 | import com.lofidewanto.demo.client.common.ServicePreparator; 24 | 25 | @GinModules(DemoGwtGinModule.class) 26 | public interface DemoGwtGinjector extends Ginjector { 27 | 28 | DemoGwtWebApp getDemoGwtWebApp(); 29 | 30 | ServicePreparator getServicePreparator(); 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/com/lofidewanto/demo/shared/DemoGwtServiceEndpoint.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.shared; 20 | 21 | public interface DemoGwtServiceEndpoint { 22 | 23 | String GWT_MODULE_NAME = "/demogwt"; 24 | 25 | String GWT_REMOTE_LOGGING = GWT_MODULE_NAME + "/remote_logging"; 26 | 27 | String SERVER_CONTEXT_PATH = "/demogwt"; 28 | 29 | String PERSON_LIST = "/v1/persons"; 30 | 31 | String PERSON_FILTER = "/v1/personsFilter"; 32 | 33 | String LOGIN_USER = "/v1/loginuser"; 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/main/java/com/lofidewanto/demo/client/domain/PersonClient.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.client.domain; 20 | 21 | import com.lofidewanto.demo.shared.PersonDto; 22 | import org.fusesource.restygwt.client.MethodCallback; 23 | 24 | import java.util.Date; 25 | import java.util.List; 26 | 27 | public interface PersonClient { 28 | 29 | void getPersons(Integer start, Integer length, MethodCallback> callback); 30 | 31 | void filterPerson(String personName, Date fromDate, Date toDate, MethodCallback> callback); 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/com/lofidewanto/demo/mock/common/MockServicePreparator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.mock.common; 20 | 21 | import java.util.logging.Logger; 22 | 23 | import com.lofidewanto.demo.client.common.ServicePreparator; 24 | 25 | public class MockServicePreparator implements ServicePreparator { 26 | 27 | private static Logger logger = Logger 28 | .getLogger(MockServicePreparator.class.getName()); 29 | 30 | @Override 31 | public void prepare(String baseUrl) { 32 | logger.info("MockServicePreparator prepare..."); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/com/lofidewanto/demo/mock/DemoGwtMockWebAppGinjector.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.mock; 20 | 21 | import com.google.gwt.inject.client.GinModules; 22 | import com.google.gwt.inject.client.Ginjector; 23 | import com.lofidewanto.demo.client.DemoGwtWebApp; 24 | import com.lofidewanto.demo.client.common.ServicePreparator; 25 | 26 | @GinModules(DemoGwtMockWebAppGinModule.class) 27 | public interface DemoGwtMockWebAppGinjector extends Ginjector { 28 | 29 | DemoGwtWebApp getDemoGwtWebApp(); 30 | 31 | ServicePreparator getServicePreparator(); 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/com/lofidewanto/demo/client/event/ChangeViewEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.client.event; 20 | 21 | import com.google.web.bindery.event.shared.binder.GenericEvent; 22 | import com.lofidewanto.demo.client.common.WidgetName; 23 | 24 | public class ChangeViewEvent extends GenericEvent { 25 | 26 | private WidgetName widgetName; 27 | 28 | public ChangeViewEvent() { 29 | } 30 | 31 | public ChangeViewEvent(WidgetName widgetName) { 32 | this.widgetName = widgetName; 33 | } 34 | 35 | public WidgetName getWidgetName() { 36 | return widgetName; 37 | } 38 | 39 | public void setWidgetName(WidgetName widgetName) { 40 | this.widgetName = widgetName; 41 | } 42 | 43 | } 44 | -------------------------------------------------------------------------------- /src/main/java/com/lofidewanto/demo/shared/PersonDto.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.shared; 20 | 21 | public class PersonDto { 22 | 23 | private String name; 24 | 25 | private String nickname; 26 | 27 | private Boolean isInRetirement; 28 | 29 | public String getName() { 30 | return name; 31 | } 32 | 33 | public void setName(String name) { 34 | this.name = name; 35 | } 36 | 37 | public String getNickname() { 38 | return nickname; 39 | } 40 | 41 | public void setNickname(String nickname) { 42 | this.nickname = nickname; 43 | } 44 | 45 | public Boolean isInRetirement() { 46 | return isInRetirement==null?false:isInRetirement; 47 | } 48 | 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/com/lofidewanto/demo/client/extra/MyJavaScriptHello.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.client.extra; 20 | 21 | import com.google.gwt.user.client.Window; 22 | import jsinterop.annotations.JsPackage; 23 | import jsinterop.annotations.JsType; 24 | 25 | @JsType(namespace = JsPackage.GLOBAL, name = "MyJavaScriptHello") 26 | public class MyJavaScriptHello { 27 | 28 | public String name; 29 | 30 | public MyJavaScriptHello(String name) { 31 | this.name = name; 32 | } 33 | 34 | public String sayHello() { 35 | return "Hello " + this.name; 36 | } 37 | 38 | public void click() { 39 | Window.alert("Hello, I'm GWT JsInterop!\nThanks for clicking: " + name); 40 | } 41 | 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/com/lofidewanto/demo/client/domain/RestUserClient.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.client.domain; 20 | 21 | import com.lofidewanto.demo.shared.DemoGwtServiceEndpoint; 22 | import org.fusesource.restygwt.client.MethodCallback; 23 | import org.fusesource.restygwt.client.RestService; 24 | 25 | import javax.inject.Singleton; 26 | import javax.ws.rs.Consumes; 27 | import javax.ws.rs.GET; 28 | import javax.ws.rs.Path; 29 | import javax.ws.rs.Produces; 30 | import javax.ws.rs.core.MediaType; 31 | 32 | @Singleton 33 | @Produces(MediaType.APPLICATION_JSON) 34 | @Consumes(MediaType.APPLICATION_JSON) 35 | public interface RestUserClient extends UserClient, RestService { 36 | 37 | @Override 38 | @GET 39 | @Path(DemoGwtServiceEndpoint.LOGIN_USER) 40 | void getLoginUser(MethodCallback callback); 41 | 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/com/lofidewanto/demo/shared/AddressDto.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.shared; 20 | 21 | import com.lofidewanto.demo.server.domain.AddressType; 22 | 23 | public class AddressDto { 24 | 25 | private String street; 26 | 27 | private AddressType addressType; 28 | 29 | private boolean isOld; 30 | 31 | public String getStreet() { 32 | return street; 33 | } 34 | 35 | public void setStreet(String street) { 36 | this.street = street; 37 | } 38 | 39 | public AddressType getAddressType() { 40 | return addressType; 41 | } 42 | 43 | public void setAddressType(AddressType addressType) { 44 | this.addressType = addressType; 45 | } 46 | 47 | public boolean isOld() { 48 | return isOld; 49 | } 50 | 51 | public void setOld(boolean isOld) { 52 | this.isOld = isOld; 53 | } 54 | 55 | } 56 | -------------------------------------------------------------------------------- /src/main/resources/model/emf/UML_Standard_Profile.StandardProfile.profile.uml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/test/java/com/lofidewanto/demo/server/domain/PersonImplTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.server.domain; 20 | 21 | import org.junit.Before; 22 | import org.junit.Test; 23 | 24 | import static org.junit.Assert.assertEquals; 25 | 26 | public class PersonImplTest { 27 | 28 | @Before 29 | public void setUp() throws Exception { 30 | } 31 | 32 | @Test 33 | public void testCalculateAgeAsOldie() { 34 | // Prepare 35 | Person person = new PersonImpl("Oldie"); 36 | 37 | // CUT 38 | Integer age = person.calculateAge(); 39 | 40 | // Asserts 41 | assertEquals(80, age.intValue()); 42 | } 43 | 44 | @Test 45 | public void testCalculateAgeAsYoungster() { 46 | // Prepare 47 | Person person = new PersonImpl("Lofi"); 48 | 49 | // CUT 50 | Integer age = person.calculateAge(); 51 | 52 | // Asserts 53 | assertEquals(10, age.intValue()); 54 | } 55 | 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/com/lofidewanto/demo/server/DemoGwtSpringbootApplication.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.server; 20 | 21 | import org.springframework.boot.SpringApplication; 22 | import org.springframework.boot.autoconfigure.SpringBootApplication; 23 | import org.springframework.boot.web.servlet.ServletRegistrationBean; 24 | import org.springframework.context.annotation.Bean; 25 | 26 | import com.google.gwt.logging.server.RemoteLoggingServiceImpl; 27 | import com.lofidewanto.demo.shared.DemoGwtServiceEndpoint; 28 | 29 | @SpringBootApplication 30 | public class DemoGwtSpringbootApplication { 31 | 32 | public static void main(String[] args) { 33 | SpringApplication.run(DemoGwtSpringbootApplication.class, args); 34 | } 35 | 36 | @Bean 37 | public ServletRegistrationBean servletRegistrationBean() { 38 | return new ServletRegistrationBean(new RemoteLoggingServiceImpl(), 39 | DemoGwtServiceEndpoint.GWT_REMOTE_LOGGING 40 | + "/*"); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/com/lofidewanto/demo/client/DemoGwtEntryPoint.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.client; 20 | 21 | import java.util.logging.Logger; 22 | 23 | import com.google.gwt.core.client.EntryPoint; 24 | import com.google.gwt.core.client.GWT; 25 | import com.lofidewanto.demo.shared.DemoGwtServiceEndpoint; 26 | 27 | public class DemoGwtEntryPoint implements EntryPoint { 28 | 29 | private static Logger logger = Logger 30 | .getLogger(DemoGwtEntryPoint.class.getName()); 31 | 32 | // Create Gin Injector 33 | private final DemoGwtGinjector injector = GWT 34 | .create(DemoGwtGinjector.class); 35 | 36 | @Override 37 | public void onModuleLoad() { 38 | logger.info("DemoGwtEntryPoint onModuleLoad..."); 39 | 40 | // We need to prepare the services with RestyGwt before... 41 | injector.getServicePreparator() 42 | .prepare(DemoGwtServiceEndpoint.SERVER_CONTEXT_PATH); 43 | 44 | // Create webapp 45 | injector.getDemoGwtWebApp(); 46 | } 47 | 48 | } 49 | -------------------------------------------------------------------------------- /src/main/java/com/lofidewanto/demo/client/common/LoadingMessagePopupPanel.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.client.common; 20 | 21 | import com.google.gwt.user.client.ui.Grid; 22 | import com.google.gwt.user.client.ui.PopupPanel; 23 | import com.lofidewanto.demo.client.Messages; 24 | import org.gwtbootstrap3.client.ui.Image; 25 | import org.gwtbootstrap3.client.ui.gwt.FlowPanel; 26 | 27 | import javax.inject.Inject; 28 | import javax.inject.Singleton; 29 | 30 | @Singleton 31 | public final class LoadingMessagePopupPanel extends PopupPanel { 32 | 33 | private final FlowPanel container = new FlowPanel(); 34 | 35 | @Inject 36 | public LoadingMessagePopupPanel(Messages messages, Asset asset) { 37 | final Image ajaxImage = new Image(asset.loadingIcon()); 38 | final Grid grid = new Grid(1, 3); 39 | grid.setWidget(0, 0, ajaxImage); 40 | grid.setText(0, 2, messages.loadingMessage_message()); 41 | this.container.add(grid); 42 | add(this.container); 43 | } 44 | 45 | } -------------------------------------------------------------------------------- /src/main/java/com/lofidewanto/demo/client/common/ErrorFormatter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.client.common; 20 | 21 | import org.gwtbootstrap3.extras.notify.client.ui.Notify; 22 | 23 | import javax.inject.Singleton; 24 | import java.util.logging.Level; 25 | import java.util.logging.Logger; 26 | 27 | @Singleton 28 | public class ErrorFormatter { 29 | 30 | private static Logger logger = Logger 31 | .getLogger(ErrorFormatter.class.getName()); 32 | 33 | public void showError(Throwable exception, String inputMessage) { 34 | String message = inputMessage + exception + " - " 35 | + exception.getMessage() + "Stack trace: " 36 | + stackTraceToString(exception); 37 | logger.log(Level.SEVERE, message); 38 | Notify.notify(message); 39 | } 40 | 41 | private String stackTraceToString(Throwable e) { 42 | StringBuilder sb = new StringBuilder(); 43 | for (StackTraceElement element : e.getStackTrace()) { 44 | sb.append(element.toString()); 45 | sb.append("\n"); 46 | } 47 | return sb.toString(); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/com/lofidewanto/demo/mock/DemoGwtMockEntryPoint.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.mock; 20 | 21 | import java.util.logging.Logger; 22 | 23 | import com.google.gwt.core.client.EntryPoint; 24 | import com.google.gwt.core.client.GWT; 25 | import com.lofidewanto.demo.client.DemoGwtWebApp; 26 | import com.lofidewanto.demo.client.common.ServicePreparator; 27 | 28 | public class DemoGwtMockEntryPoint implements EntryPoint { 29 | 30 | private static Logger logger = Logger 31 | .getLogger(DemoGwtMockEntryPoint.class.getName()); 32 | 33 | // Create Gin Injector 34 | private final DemoGwtMockWebAppGinjector injector = GWT 35 | .create(DemoGwtMockWebAppGinjector.class); 36 | 37 | @Override 38 | public void onModuleLoad() { 39 | logger.info("DemoGwtMockEntryPoint onModuleLoad..."); 40 | 41 | // We need to prepare the services with RestyGwt before... 42 | ServicePreparator servicePreparator = injector.getServicePreparator(); 43 | servicePreparator.prepare(""); 44 | 45 | // Create webapp 46 | DemoGwtWebApp demoGwtWebApp = injector.getDemoGwtWebApp(); 47 | } 48 | 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/com/lofidewanto/demo/server/controller/UserController.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.server.controller; 20 | 21 | import com.lofidewanto.demo.server.service.user.UserService; 22 | import com.lofidewanto.demo.shared.DemoGwtServiceEndpoint; 23 | import com.lofidewanto.demo.shared.UserDto; 24 | import org.springframework.beans.factory.annotation.Autowired; 25 | import org.springframework.stereotype.Controller; 26 | import org.springframework.web.bind.annotation.RequestMapping; 27 | import org.springframework.web.bind.annotation.RequestMethod; 28 | import org.springframework.web.bind.annotation.ResponseBody; 29 | 30 | @Controller 31 | public class UserController { 32 | 33 | @Autowired 34 | private UserService userService; 35 | 36 | @RequestMapping(value = DemoGwtServiceEndpoint.LOGIN_USER, method = RequestMethod.GET) 37 | public @ResponseBody UserDto getLoginUser() { 38 | String loginUser = userService.getLoginUser(); 39 | 40 | UserDto userDto = buildUser(loginUser); 41 | 42 | return userDto; 43 | } 44 | 45 | private UserDto buildUser(String loginUser) { 46 | UserDto userDto = new UserDto(); 47 | userDto.setName(loginUser); 48 | return userDto; 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/com/lofidewanto/demo/client/DemoGwtGinModule.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.client; 20 | 21 | import com.google.gwt.event.shared.EventBus; 22 | import com.google.gwt.event.shared.SimpleEventBus; 23 | import com.google.gwt.inject.client.AbstractGinModule; 24 | import com.google.inject.Singleton; 25 | import com.lofidewanto.demo.client.common.RestServicePreparator; 26 | import com.lofidewanto.demo.client.common.ServicePreparator; 27 | import com.lofidewanto.demo.client.domain.PersonClient; 28 | import com.lofidewanto.demo.client.domain.RestPersonClient; 29 | import com.lofidewanto.demo.client.domain.RestUserClient; 30 | import com.lofidewanto.demo.client.domain.UserClient; 31 | 32 | public class DemoGwtGinModule extends AbstractGinModule { 33 | 34 | @Override 35 | protected void configure() { 36 | // Bind the SimpleEventBus as Singleton 37 | bind(EventBus.class).to(SimpleEventBus.class).in(Singleton.class); 38 | 39 | // Bind ServicePreparator 40 | bind(ServicePreparator.class).to(RestServicePreparator.class).in(Singleton.class); 41 | 42 | // Using the real RestyGwt 43 | bind(PersonClient.class).to(RestPersonClient.class).in(Singleton.class); 44 | bind(UserClient.class).to(RestUserClient.class).in(Singleton.class); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/com/lofidewanto/demo/mock/DemoGwtMockWebAppGinModule.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.mock; 20 | 21 | import com.google.gwt.event.shared.EventBus; 22 | import com.google.gwt.event.shared.SimpleEventBus; 23 | import com.google.gwt.inject.client.AbstractGinModule; 24 | import com.google.inject.Singleton; 25 | import com.lofidewanto.demo.client.common.ServicePreparator; 26 | import com.lofidewanto.demo.client.domain.PersonClient; 27 | import com.lofidewanto.demo.client.domain.UserClient; 28 | import com.lofidewanto.demo.mock.common.MockServicePreparator; 29 | import com.lofidewanto.demo.mock.domain.MockPersonClient; 30 | import com.lofidewanto.demo.mock.domain.MockUserClient; 31 | 32 | public class DemoGwtMockWebAppGinModule extends AbstractGinModule { 33 | 34 | @Override 35 | protected void configure() { 36 | // Bind the SimpleEventBus as Singleton 37 | bind(EventBus.class).to(SimpleEventBus.class).in(Singleton.class); 38 | 39 | // Bind ServicePreparator 40 | bind(ServicePreparator.class).to(MockServicePreparator.class).in(Singleton.class); 41 | 42 | // Using the mocks 43 | bind(PersonClient.class).to(MockPersonClient.class).in(Singleton.class); 44 | bind(UserClient.class).to(MockUserClient.class).in(Singleton.class); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/com/lofidewanto/demo/client/domain/RestPersonClient.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.client.domain; 20 | 21 | import java.util.Date; 22 | import java.util.List; 23 | 24 | import javax.inject.Singleton; 25 | import javax.ws.rs.Consumes; 26 | import javax.ws.rs.GET; 27 | import javax.ws.rs.Path; 28 | import javax.ws.rs.Produces; 29 | import javax.ws.rs.QueryParam; 30 | import javax.ws.rs.core.MediaType; 31 | 32 | import org.fusesource.restygwt.client.MethodCallback; 33 | import org.fusesource.restygwt.client.RestService; 34 | 35 | import com.lofidewanto.demo.shared.DemoGwtServiceEndpoint; 36 | import com.lofidewanto.demo.shared.PersonDto; 37 | 38 | @Singleton 39 | @Produces(MediaType.APPLICATION_JSON) 40 | @Consumes(MediaType.APPLICATION_JSON) 41 | public interface RestPersonClient extends PersonClient, RestService { 42 | 43 | @Override 44 | @GET 45 | @Path(DemoGwtServiceEndpoint.PERSON_LIST) 46 | void getPersons(@QueryParam("start") Integer start, 47 | @QueryParam("length") Integer length, 48 | MethodCallback> callback); 49 | 50 | @Override 51 | @GET 52 | @Path(DemoGwtServiceEndpoint.PERSON_FILTER) 53 | void filterPerson(@QueryParam("nameSuggestBox") String personName, 54 | @QueryParam("fromDateTimePicker") Date fromDate, 55 | @QueryParam("untilDateTimePicker") Date toDate, 56 | MethodCallback> callback); 57 | } 58 | -------------------------------------------------------------------------------- /src/main/java/com/lofidewanto/demo/client/common/RestServicePreparator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.client.common; 20 | 21 | import java.util.logging.Logger; 22 | 23 | import javax.inject.Inject; 24 | import javax.inject.Singleton; 25 | 26 | import org.fusesource.restygwt.client.Defaults; 27 | import org.fusesource.restygwt.client.Resource; 28 | import org.fusesource.restygwt.client.RestServiceProxy; 29 | 30 | import com.lofidewanto.demo.client.domain.PersonClient; 31 | import com.lofidewanto.demo.client.domain.UserClient; 32 | 33 | @Singleton 34 | public class RestServicePreparator implements ServicePreparator { 35 | 36 | private static Logger logger = Logger 37 | .getLogger(RestServicePreparator.class.getName()); 38 | 39 | @Inject 40 | private PersonClient personClient; 41 | 42 | @Inject 43 | private UserClient userClient; 44 | 45 | public RestServicePreparator() { 46 | } 47 | 48 | @Override 49 | public void prepare(String baseUrl) { 50 | logger.info("Prepare for the resources for the services..."); 51 | 52 | initServices(baseUrl); 53 | } 54 | 55 | private void initServices(String baseUrl) { 56 | Defaults.setDateFormat(null); 57 | 58 | logger.info("Init the domains..."); 59 | 60 | Resource resource = new Resource(baseUrl); 61 | 62 | ((RestServiceProxy) personClient).setResource(resource); 63 | ((RestServiceProxy) userClient).setResource(resource); 64 | } 65 | 66 | } 67 | -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/interseroh/bootstrap/js/ie-emulation-modes-warning.js: -------------------------------------------------------------------------------- 1 | // NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT 2 | // IT'S JUST JUNK FOR OUR DOCS! 3 | // ++++++++++++++++++++++++++++++++++++++++++ 4 | /*! 5 | * Copyright 2014-2015 Twitter, Inc. 6 | * 7 | * Licensed under the Creative Commons Attribution 3.0 Unported License. For 8 | * details, see https://creativecommons.org/licenses/by/3.0/. 9 | */ 10 | // Intended to prevent false-positive bug reports about Bootstrap not working properly in old versions of IE due to folks testing using IE's unreliable emulation modes. 11 | (function () { 12 | 'use strict'; 13 | 14 | function emulatedIEMajorVersion() { 15 | var groups = /MSIE ([0-9.]+)/.exec(window.navigator.userAgent); 16 | if (groups === null) { 17 | return null 18 | } 19 | var ieVersionNum = parseInt(groups[1], 10); 20 | var ieMajorVersion = Math.floor(ieVersionNum); 21 | return ieMajorVersion 22 | } 23 | 24 | function actualNonEmulatedIEMajorVersion() { 25 | // Detects the actual version of IE in use, even if it's in an older-IE emulation mode. 26 | // IE JavaScript conditional compilation docs: https://msdn.microsoft.com/library/121hztk3%28v=vs.94%29.aspx 27 | // @cc_on docs: https://msdn.microsoft.com/library/8ka90k2e%28v=vs.94%29.aspx 28 | var jscriptVersion = new Function('/*@cc_on return @_jscript_version; @*/')(); // jshint ignore:line 29 | if (jscriptVersion === undefined) { 30 | return 11 // IE11+ not in emulation mode 31 | } 32 | if (jscriptVersion < 9) { 33 | return 8 // IE8 (or lower; haven't tested on IE<8) 34 | } 35 | return jscriptVersion // IE9 or IE10 in any mode, or IE11 in non-IE11 mode 36 | } 37 | 38 | var ua = window.navigator.userAgent; 39 | if (ua.indexOf('Opera') > -1 || ua.indexOf('Presto') > -1) { 40 | return // Opera, which might pretend to be IE 41 | } 42 | var emulated = emulatedIEMajorVersion(); 43 | if (emulated === null) { 44 | return // Not IE 45 | } 46 | var nonEmulated = actualNonEmulatedIEMajorVersion(); 47 | 48 | if (emulated !== nonEmulated) { 49 | window.alert('WARNING: You appear to be using IE' + nonEmulated + ' in IE' + emulated + ' emulation mode.\nIE emulation modes can behave significantly differently from ACTUAL older versions of IE.\nPLEASE DON\'T FILE BOOTSTRAP BUGS based on testing in IE emulation modes!') 50 | } 51 | })(); 52 | -------------------------------------------------------------------------------- /src/main/java/com/lofidewanto/demo/server/domain/AddressImpl.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.server.domain; 20 | 21 | import javax.persistence.*; 22 | import java.util.Collection; 23 | 24 | @Entity 25 | public class AddressImpl implements Address { 26 | 27 | @Id 28 | @GeneratedValue(strategy = GenerationType.AUTO) 29 | private Long id; 30 | 31 | private String street; 32 | 33 | @ManyToOne 34 | private PersonImpl person; 35 | 36 | private AddressType addressType; 37 | 38 | private boolean isOld; 39 | 40 | @Transient 41 | private Collection newAddresses; 42 | 43 | @Override 44 | public Collection getNewAddresses() { 45 | return newAddresses; 46 | } 47 | 48 | @Override 49 | public String getStreet() { 50 | return street; 51 | } 52 | 53 | @Override 54 | public void setStreet(String street) { 55 | this.street = street; 56 | } 57 | 58 | @Override 59 | public Person getPerson() { 60 | return person; 61 | } 62 | 63 | @Override 64 | public void setPerson(Person person) { 65 | this.person = (PersonImpl) person; 66 | } 67 | 68 | @Override 69 | public AddressType getAddressType() { 70 | return addressType; 71 | } 72 | 73 | @Override 74 | public void setAddressType(AddressType addressType) { 75 | this.addressType = addressType; 76 | } 77 | 78 | @Override 79 | public boolean isOld() { 80 | return isOld; 81 | } 82 | 83 | @Override 84 | public void setOld(boolean isOld) { 85 | this.isOld = isOld; 86 | } 87 | 88 | } 89 | -------------------------------------------------------------------------------- /src/main/java/com/lofidewanto/demo/client/extra/PersonUtil.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.client.extra; 20 | 21 | import java.util.logging.Logger; 22 | 23 | import javax.inject.Inject; 24 | import javax.inject.Singleton; 25 | 26 | import org.gwtbootstrap3.extras.bootbox.client.Bootbox; 27 | 28 | import com.google.gwt.core.client.GWT; 29 | import com.google.gwt.event.shared.EventBus; 30 | import com.google.web.bindery.event.shared.binder.EventBinder; 31 | import com.google.web.bindery.event.shared.binder.EventHandler; 32 | import com.lofidewanto.demo.client.event.FilterEvent; 33 | import com.lofidewanto.demo.client.event.SearchEvent; 34 | 35 | @Singleton 36 | public class PersonUtil { 37 | 38 | private static Logger logger = Logger.getLogger(PersonUtil.class.getName()); 39 | 40 | interface PersonUtilEventBinder extends EventBinder { 41 | } 42 | 43 | private final PersonUtilEventBinder eventBinder = GWT.create(PersonUtilEventBinder.class); 44 | 45 | @Inject 46 | public PersonUtil(EventBus eventBus) { 47 | logger.info("PersonUtil created..."); 48 | eventBinder.bindEventHandlers(this, eventBus); 49 | } 50 | 51 | @EventHandler 52 | public void onEvent(FilterEvent event) { 53 | logger.info("Get Event: " + event); 54 | Bootbox.alert("FilterEvent is received in PersonUtil..."); 55 | } 56 | 57 | @EventHandler 58 | public void onEvent(SearchEvent event) { 59 | logger.info("Get Event: " + event); 60 | Bootbox.alert("SearchEvent is received in PersonUtil..."); 61 | } 62 | 63 | public String sayHello() { 64 | return "Hello from PersonUtil"; 65 | } 66 | 67 | } 68 | -------------------------------------------------------------------------------- /src/main/java/com/lofidewanto/demo/mock/domain/MockPersonClient.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.mock.domain; 20 | 21 | import com.lofidewanto.demo.client.domain.PersonClient; 22 | import com.lofidewanto.demo.shared.PersonDto; 23 | import org.fusesource.restygwt.client.MethodCallback; 24 | 25 | import javax.inject.Singleton; 26 | import java.util.ArrayList; 27 | import java.util.Date; 28 | import java.util.List; 29 | import java.util.logging.Logger; 30 | 31 | @Singleton 32 | public class MockPersonClient implements PersonClient { 33 | 34 | private static Logger logger = Logger 35 | .getLogger(MockPersonClient.class.getName()); 36 | 37 | @Override 38 | public void getPersons(Integer start, Integer length, MethodCallback> callback) { 39 | logger.info("Mock getPersons..."); 40 | 41 | List personDtos = getPersonDtos(); 42 | 43 | callback.onSuccess(null, personDtos); 44 | } 45 | 46 | @Override 47 | public void filterPerson(String personName, Date fromDate, Date toDate, MethodCallback> callback) { 48 | logger.info("Mock filterPerson..."); 49 | 50 | List personDtos = getPersonDtos(); 51 | 52 | callback.onSuccess(null, personDtos); 53 | } 54 | 55 | private List getPersonDtos() { 56 | List personDtos = new ArrayList<>(); 57 | 58 | PersonDto person = new PersonDto(); 59 | person.setName("Lofi"); 60 | person.setNickname("Jawa"); 61 | 62 | personDtos.add(person); 63 | return personDtos; 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /src/test/java/com/lofidewanto/demo/server/service/person/PersonServiceImplTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.server.service.person; 20 | 21 | import com.lofidewanto.demo.server.domain.Address; 22 | import com.lofidewanto.demo.server.domain.AddressImpl; 23 | import com.lofidewanto.demo.server.domain.Person; 24 | import com.lofidewanto.demo.server.domain.PersonImpl; 25 | import com.lofidewanto.demo.server.exception.CreatePersonException; 26 | import com.lofidewanto.demo.server.repository.AddressRepository; 27 | import com.lofidewanto.demo.server.repository.PersonRepository; 28 | import org.junit.Before; 29 | import org.junit.Test; 30 | import org.junit.runner.RunWith; 31 | import org.mockito.InjectMocks; 32 | import org.mockito.Mock; 33 | import org.mockito.runners.MockitoJUnitRunner; 34 | 35 | import static org.junit.Assert.assertNotNull; 36 | import static org.mockito.Mockito.doReturn; 37 | 38 | @RunWith(MockitoJUnitRunner.class) 39 | public class PersonServiceImplTest { 40 | 41 | @InjectMocks 42 | private PersonService personService = new PersonServiceImpl(); 43 | 44 | @Mock 45 | private PersonRepository personRepository; 46 | 47 | @Mock 48 | private AddressRepository addressRepository; 49 | 50 | @Before 51 | public void setUp() throws Exception { 52 | } 53 | 54 | @Test 55 | public void testCreateAddressFromPerson() throws CreatePersonException { 56 | // Prepare 57 | Person person = new PersonImpl(); 58 | Address address = new AddressImpl(); 59 | 60 | doReturn(person).when(personRepository).save((PersonImpl) person); 61 | doReturn(address).when(addressRepository).save((AddressImpl) address); 62 | 63 | // CUT 64 | Person createAddressFromPerson = personService 65 | .createAddressFromPerson(address, person); 66 | 67 | // Asserts 68 | assertNotNull(createAddressFromPerson); 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /src/main/resources/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | Demo GWT Webapp 22 | 23 | 24 | 25 | 26 | 27 | 28 | 30 | 31 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 52 | 53 | 54 | 60 | 61 |
62 | 63 |
64 | 65 |
66 | 67 | 68 | 69 | -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/interseroh/css/individual.less: -------------------------------------------------------------------------------- 1 | @import "variables.less"; 2 | 3 | .sticky-content { 4 | position: fixed; 5 | z-index: 9; 6 | right: 0; 7 | bottom: 120px; 8 | ul { 9 | margin: 0; 10 | padding: 0; 11 | li { 12 | list-style-type: none; 13 | } 14 | } 15 | 16 | &__element { 17 | box-shadow: -5px 5px 25px rgba(0, 0, 0, .1); 18 | &:first-child { 19 | margin-bottom: 3px; 20 | } 21 | > a { 22 | transition: background 150ms ease; 23 | background: @interseroh-yellow; 24 | color: @interseroh-dark-blue; 25 | display: block; 26 | text-decoration: none; 27 | position: relative; 28 | text-align: center; 29 | z-index: 8; 30 | padding: 15px 15px 13px; 31 | &:hover { 32 | background: @interseroh-azur-hover-blue; 33 | color: @interseroh-white; 34 | } 35 | i { 36 | font-size: 2em; 37 | font-weight: bold; 38 | display: block; 39 | } 40 | } 41 | &.is-active { 42 | .sticky-content__flyout { 43 | opacity: 1; 44 | visibility: visible; 45 | } 46 | > a:after { 47 | position: absolute; 48 | right: 100%; 49 | top: 50%; 50 | margin-top: -13px; 51 | content: ''; 52 | width: 0; 53 | height: 0; 54 | border-style: solid; 55 | border-width: 13px 15px 13px 0; 56 | border-color: transparent @interseroh-azur-hover-blue transparent transparent; 57 | } 58 | } 59 | 60 | } 61 | &__flyout { 62 | transition: opacity .2s ease, visibility .2s ease; 63 | font-size: 15px; 64 | opacity: 0; 65 | visibility: hidden; 66 | box-shadow: 0 0 55px -15px rgba(0, 0, 0, .5); 67 | overflow: auto; 68 | padding: 30px; 69 | background: @interseroh-white; 70 | width: 500px; 71 | z-index: 7; 72 | right: 100%; 73 | bottom: 0; 74 | display: none; 75 | } 76 | } 77 | 78 | textarea { 79 | min-height: 300px; 80 | } 81 | 82 | .btn { 83 | text-transform: uppercase; 84 | transition: all 0.2s ease-out; 85 | &.interseroh-style { 86 | padding: 20px 30px; 87 | } 88 | &:hover { 89 | border-color: transparent; 90 | } 91 | } 92 | 93 | .btn:focus { 94 | outline: none; 95 | } 96 | 97 | .jumbotron p { 98 | margin-bottom: 15px; 99 | font-size: 16px; 100 | font-weight: 200; 101 | } 102 | 103 | .jumbotron h1, .jumbotron .h1 { 104 | font-size: 63px; 105 | } 106 | 107 | .btn-lg, .btn-group-lg > .btn { 108 | font-size: 18px; 109 | } 110 | 111 | .btn-success { 112 | &:hover, 113 | &.focus, 114 | &:active, 115 | &:active:hover, 116 | &.active { 117 | color: @interseroh-white; 118 | background-color: @interseroh-dark-green; 119 | border-color: transparent; 120 | } 121 | } 122 | -------------------------------------------------------------------------------- /src/test/java/com/lofidewanto/demo/server/service/person/PersonServiceImplIT.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.server.service.person; 20 | 21 | import com.lofidewanto.demo.server.domain.Address; 22 | import com.lofidewanto.demo.server.domain.AddressImpl; 23 | import com.lofidewanto.demo.server.domain.Person; 24 | import com.lofidewanto.demo.server.domain.PersonImpl; 25 | import com.lofidewanto.demo.server.exception.CreatePersonException; 26 | import org.junit.Before; 27 | import org.junit.Test; 28 | import org.junit.runner.RunWith; 29 | import org.springframework.beans.factory.annotation.Autowired; 30 | import org.springframework.boot.test.context.SpringBootTest; 31 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; 32 | 33 | import java.util.Collection; 34 | 35 | import static org.junit.Assert.assertEquals; 36 | import static org.junit.Assert.assertNotNull; 37 | 38 | @RunWith(SpringJUnit4ClassRunner.class) 39 | @SpringBootTest 40 | public class PersonServiceImplIT { 41 | 42 | @Autowired 43 | private PersonService personService; 44 | 45 | @Before 46 | public void setUp() throws Exception { 47 | } 48 | 49 | @Test 50 | public void testCreateAddressFromPerson() throws CreatePersonException { 51 | // Prepare 52 | Person person = new PersonImpl(); 53 | Address address = new AddressImpl(); 54 | 55 | // CUT 56 | Person createAddressFromPerson = personService.createAddressFromPerson(address, person); 57 | 58 | // Asserts 59 | assertNotNull(createAddressFromPerson); 60 | } 61 | 62 | @Test 63 | public void testFindAllPersons() throws CreatePersonException { 64 | // Prepare 65 | Person person = new PersonImpl(); 66 | Address address = new AddressImpl(); 67 | 68 | Person createAddressFromPerson = personService 69 | .createAddressFromPerson(address, person); 70 | assertNotNull(createAddressFromPerson); 71 | 72 | // CUT 73 | Collection persons = personService.findAllPersons(0, 10); 74 | 75 | // Asserts 76 | assertEquals(1, persons.size()); 77 | } 78 | 79 | } 80 | -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/interseroh/css/isd-base.css: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | ### Primaerfarben ### 4 | (Interseroh-Blau) 5 | 100% #183362, rgba(0,38,82,1); 6 | 90% rgb(3,60,105); 7 | 80% rgb(40,74,117); 8 | 70% rgb(40,74,114); 9 | 60% rgb(89,113,150); 10 | 50% rgb(114,135,167); 11 | 40% rgb(141,155,182); 12 | 30% rgb(169,179,200); 13 | 20% rgb(196,202,217); 14 | 10% rgb(225,229,238); 15 | 16 | (Interseroh-Grau) 17 | 100% #a1a1a3, rgba(161,161,163,1); 18 | 20% rgba(218,218,218,1); 19 | 10% rgba(236,236,236,1); 20 | 21 | (Interseroh-Rot) 22 | 100% #aa2321, rgb(170,35,33); 23 | 24 | (Interseroh-Gruen) 25 | 100% #4a8726, rgb(74,135,38); 26 | 50% #4a8726, rgba(74,135,38, 0.5); 27 | 28 | (Interseroh-Gelb) 29 | 100% #e9c819, rgb(233,200,25); 30 | 50% rgba(233,200,25, 0.5); 31 | 32 | (ALBA Group Watermarke) Rgb 33 | HKS 41 #002f5d; 34 | Pantone Cool Gray 6C #c5c6c6; 35 | */ 36 | 37 | 38 | *, *:before, *:after { 39 | -webkit-box-sizing: border-box; 40 | -moz-box-sizing: border-box; 41 | box-sizing: border-box; 42 | } 43 | 44 | html { 45 | font-family: sans-serif; /* 1 */ 46 | -ms-text-size-adjust: 100%; /* 2 */ 47 | -webkit-text-size-adjust: 100%; /* 2 */ 48 | } 49 | 50 | body { 51 | font-family: 'Arial', sans-serif; 52 | margin:0; 53 | } 54 | 55 | h1 { 56 | font-size:32px; 57 | font-weight: bold; 58 | 59 | } 60 | 61 | h2 { 62 | font-size:26px; 63 | font-weight: bold; 64 | } 65 | 66 | h3 { 67 | font-size:20px; 68 | font-weight: bold; 69 | } 70 | 71 | h4 { 72 | font-size:16px; 73 | font-weight: bold; 74 | } 75 | 76 | h5 { 77 | font-size:14px; 78 | font-weight: bold; 79 | } 80 | 81 | p { 82 | color:#000; 83 | font-size:12px; 84 | line-height:16px; 85 | margin: 0px 86 | } 87 | 88 | p+p { 89 | margin: 12px 0px 90 | } 91 | 92 | .jumbotron p { 93 | font-size: 21px; 94 | font-weight: 200; 95 | margin-bottom: 15px; 96 | line-height:1; 97 | } 98 | 99 | .btn-example { 100 | background-color: #183362; 101 | } 102 | 103 | .interseroh-blau100 { 104 | background-color: rgba(0,38,82,1); 105 | } 106 | .interseroh-blau90 { 107 | background-color: rgb(3,60,105); 108 | } 109 | .interseroh-blau80 { 110 | background-color: rgb(40,74,117); 111 | } 112 | .interseroh-blau70 { 113 | background-color: rgb(40,74,114); 114 | } 115 | .interseroh-blau60 { 116 | background-color: rgb(89,113,150); 117 | } 118 | .interseroh-blau50 { 119 | background-color: rgb(114,135,167); 120 | } 121 | .interseroh-blau40 { 122 | background-color: rgb(141,155,182); 123 | } 124 | .interseroh-blau30 { 125 | background-color: rgb(169,179,200); 126 | } 127 | .interseroh-blau20 { 128 | background-color: rgb(196,202,217); 129 | } 130 | .interseroh-blau10 { 131 | background-color: rgb(225,229,238); 132 | } 133 | 134 | 135 | .interseroh-rot { 136 | background-color: rgb(170,35,33) 137 | } 138 | 139 | .interseroh-gelb { 140 | background-color: rgb(233,200,25); 141 | } 142 | 143 | .interseroh-gruen { 144 | background-color: rgb(74,135,38); 145 | } -------------------------------------------------------------------------------- /src/main/java/com/lofidewanto/demo/server/domain/PersonImpl.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.server.domain; 20 | 21 | import javax.persistence.*; 22 | import java.util.ArrayList; 23 | import java.util.Collection; 24 | import java.util.Date; 25 | import java.util.Optional; 26 | 27 | @Entity 28 | public class PersonImpl implements Person { 29 | 30 | @Id 31 | @GeneratedValue(strategy = GenerationType.AUTO) 32 | private Long id; 33 | 34 | private String name; 35 | 36 | private String nickname; 37 | 38 | @OneToMany 39 | private Collection addresses = new ArrayList<>(); 40 | 41 | private Boolean isInRetirement; 42 | 43 | public PersonImpl() { 44 | } 45 | 46 | public PersonImpl(String nickname) { 47 | super(); 48 | this.nickname = nickname; 49 | } 50 | 51 | @Override 52 | public Integer calculateAge() { 53 | // The age depends on the nickname 54 | if (nickname.equalsIgnoreCase("Oldie")) { 55 | return 80; 56 | } else { 57 | return 10; 58 | } 59 | } 60 | 61 | @Override 62 | public Date[] run(byte[] content) { 63 | Date[] dates = { getDateFromString("25/11/2009"), 64 | getDateFromString("24/12/2009") }; 65 | return dates; 66 | } 67 | 68 | private Date getDateFromString(String string) { 69 | return new Date(); 70 | } 71 | 72 | @Override 73 | public void changeLastAddress(Address address, Boolean isLastOne) { 74 | if (!isLastOne) { 75 | Optional findFirst = addresses.stream().findFirst(); 76 | Address addressFound = findFirst.get(); 77 | addressFound.setStreet("New Street on the Blocks"); 78 | } 79 | } 80 | 81 | @Override 82 | public String getName() { 83 | return name; 84 | } 85 | 86 | @Override 87 | public void setName(String name) { 88 | this.name = name; 89 | } 90 | 91 | @Override 92 | public Collection
getAddresses() { 93 | ArrayList
copyOfAddresses = new ArrayList<>(addresses); 94 | return copyOfAddresses; 95 | } 96 | 97 | @Override 98 | public void addAddress(Address address) { 99 | this.addresses.add((AddressImpl) address); 100 | } 101 | 102 | @Override 103 | public String getNickname() { 104 | return nickname; 105 | } 106 | 107 | @Override 108 | public Boolean isInRetirement() { 109 | return isInRetirement; 110 | } 111 | 112 | } 113 | -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/DemoBaseGwt.gwt.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | -------------------------------------------------------------------------------- /src/main/java/com/lofidewanto/demo/server/service/person/PersonServiceImpl.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.server.service.person; 20 | 21 | import java.util.ArrayList; 22 | import java.util.Collection; 23 | 24 | import org.slf4j.Logger; 25 | import org.slf4j.LoggerFactory; 26 | import org.springframework.beans.factory.annotation.Autowired; 27 | import org.springframework.data.domain.PageRequest; 28 | import org.springframework.data.domain.Pageable; 29 | import org.springframework.stereotype.Service; 30 | import org.springframework.transaction.annotation.Transactional; 31 | 32 | import com.lofidewanto.demo.server.domain.Address; 33 | import com.lofidewanto.demo.server.domain.AddressImpl; 34 | import com.lofidewanto.demo.server.domain.Person; 35 | import com.lofidewanto.demo.server.domain.PersonImpl; 36 | import com.lofidewanto.demo.server.exception.CreatePersonException; 37 | import com.lofidewanto.demo.server.repository.AddressRepository; 38 | import com.lofidewanto.demo.server.repository.PersonRepository; 39 | 40 | @Service 41 | public class PersonServiceImpl implements PersonService { 42 | 43 | private static final Logger logger = LoggerFactory.getLogger(PersonServiceImpl.class); 44 | 45 | @Autowired 46 | private PersonRepository personRepository; 47 | 48 | @Autowired 49 | private AddressRepository addressRepository; 50 | 51 | @Override 52 | @Transactional 53 | public Person createAddressFromPerson(Address address, Person person) throws CreatePersonException { 54 | // Create a Person and add an Address to it 55 | Address addressSaved = addressRepository.save((AddressImpl) address); 56 | 57 | logger.info("Following address created: " + addressSaved.getStreet()); 58 | 59 | person.addAddress(address); 60 | 61 | try { 62 | Person personSaved = personRepository.save((PersonImpl) person); 63 | 64 | logger.info("Following person created: " + personSaved.getName()); 65 | 66 | return personSaved; 67 | } catch (Exception e) { 68 | logger.error("Error saving the person and address - exception: " + e); 69 | throw new CreatePersonException(); 70 | } 71 | } 72 | 73 | @Override 74 | @Transactional 75 | public Collection findAllPersons(Integer start, Integer length) { 76 | Collection personsAsCollection = new ArrayList<>(); 77 | Pageable pageable = new PageRequest(start, length); 78 | Iterable persons = personRepository.findAll(pageable); 79 | 80 | persons.forEach(person -> { 81 | personsAsCollection.add(person); 82 | }); 83 | 84 | logger.info("Find all persons with start and length amount: " + personsAsCollection.size()); 85 | 86 | return personsAsCollection; 87 | } 88 | 89 | } 90 | -------------------------------------------------------------------------------- /src/test/java/com/lofidewanto/demo/client/ui/main/MainPanelViewTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.client.ui.main; 20 | 21 | import com.google.gwt.event.shared.EventBus; 22 | import com.google.gwtmockito.GwtMockitoTestRunner; 23 | import com.lofidewanto.demo.client.common.ErrorFormatter; 24 | import com.lofidewanto.demo.client.common.LoadingMessagePopupPanel; 25 | import com.lofidewanto.demo.client.common.WidgetName; 26 | import com.lofidewanto.demo.client.ui.person.PersonPanelView; 27 | import org.junit.Before; 28 | import org.junit.Test; 29 | import org.junit.runner.RunWith; 30 | import org.mockito.Mock; 31 | 32 | import static org.junit.Assert.assertEquals; 33 | import static org.mockito.Matchers.anyInt; 34 | import static org.mockito.Mockito.*; 35 | 36 | @RunWith(GwtMockitoTestRunner.class) 37 | public class MainPanelViewTest { 38 | 39 | private MainPanelView view; 40 | 41 | @Mock 42 | private ErrorFormatter errorFormatter; 43 | 44 | @Mock 45 | private LoadingMessagePopupPanel loadingMessagePopupPanel; 46 | 47 | @Mock 48 | private EventBus eventBus; 49 | 50 | @Mock 51 | private PersonPanelView personPanelView; 52 | 53 | @Before 54 | public void setUp() throws Exception { 55 | view = new MainPanelView(eventBus, errorFormatter, 56 | loadingMessagePopupPanel); 57 | } 58 | 59 | @Test 60 | public void testAddWidget() { 61 | // Prepare 62 | doNothing().when(view.contentColumn).add(personPanelView); 63 | 64 | // CUT 65 | view.addWidget(WidgetName.PERSONLIST, personPanelView); 66 | 67 | // Asserts 68 | assertEquals(view.widgets.size(), 1); 69 | verify(personPanelView, times(1)).setVisible(false); 70 | verify(view.contentColumn, times(1)).add(personPanelView); 71 | } 72 | 73 | @Test 74 | public void testShowWidget() { 75 | // Prepare 76 | view.addWidget(WidgetName.PERSONLIST, personPanelView); 77 | doReturn(1).when(view.contentColumn).getWidgetCount(); 78 | 79 | // CUT 80 | view.showWidget(WidgetName.PERSONLIST); 81 | 82 | // Asserts 83 | assertEquals(view.widgets.size(), 1); 84 | verify(view.contentColumn, times(1)).getWidget(anyInt()); 85 | verify(personPanelView, times(1)).setVisible(false); 86 | verify(personPanelView, times(1)).setVisible(true); 87 | } 88 | 89 | @Test 90 | public void testUpdatePersonPanelView() { 91 | // Prepare 92 | view.addWidget(WidgetName.PERSONLIST, personPanelView); 93 | doReturn(1).when(view.contentColumn).getWidgetCount(); 94 | 95 | // CUT 96 | view.updatePersonPanelView(); 97 | 98 | // Asserts 99 | assertEquals(view.widgets.size(), 1); 100 | } 101 | 102 | } 103 | -------------------------------------------------------------------------------- /src/test/java/com/lofidewanto/demo/client/common/AbstractMethodCallbackTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.client.common; 20 | 21 | import java.util.logging.Logger; 22 | 23 | import org.fusesource.restygwt.client.Method; 24 | import org.fusesource.restygwt.client.MethodCallback; 25 | import org.junit.Before; 26 | import org.junit.Ignore; 27 | import org.junit.Test; 28 | import org.junit.runner.RunWith; 29 | import org.mockito.Answers; 30 | import org.mockito.Mock; 31 | import org.mockito.Spy; 32 | import org.mockito.runners.MockitoJUnitRunner; 33 | 34 | import static org.junit.Assert.assertEquals; 35 | import static org.mockito.Matchers.any; 36 | import static org.mockito.Matchers.anyBoolean; 37 | import static org.mockito.Matchers.anyObject; 38 | import static org.mockito.Mockito.doAnswer; 39 | import static org.mockito.Mockito.doNothing; 40 | import static org.mockito.Mockito.doReturn; 41 | import static org.mockito.Mockito.times; 42 | import static org.mockito.Mockito.verify; 43 | 44 | @RunWith(MockitoJUnitRunner.class) 45 | public class AbstractMethodCallbackTest { 46 | 47 | private static final Logger logger = Logger 48 | .getLogger(AbstractMethodCallbackTest.class.getName()); 49 | 50 | @Spy 51 | private AbstractMethodCallback abstractMethodCallback; 52 | 53 | @Mock(answer = Answers.RETURNS_DEEP_STUBS) 54 | private Exception exception; 55 | 56 | @Before 57 | public void setUp() throws Exception { 58 | } 59 | 60 | @Test 61 | public void checkTimeoutErrorWithJsonErrorText() throws Exception { 62 | final boolean isTimeout = abstractMethodCallback.checkTimeoutError( 63 | new Exception( 64 | AbstractMethodCallback.ERROR_TEXT_RESPONSE_WAS_NOT_A_VALID_JSON)); 65 | 66 | assertEquals(false, isTimeout); 67 | } 68 | 69 | @Test 70 | public void checkTimeoutErrorWithTimeoutError() throws Exception { 71 | doNothing().when(abstractMethodCallback).redirectToLogin(); 72 | 73 | final boolean isTimeout = abstractMethodCallback.checkTimeoutError( 74 | new Exception(AbstractMethodCallback.ERROR_TEXT_LOGIN_FORM)); 75 | 76 | assertEquals(true, isTimeout); 77 | } 78 | 79 | @Test 80 | public void execute() { 81 | doNothing().when(abstractMethodCallback).showLoadingMessage(); 82 | 83 | abstractMethodCallback.execute(); 84 | 85 | verify(abstractMethodCallback, times(1)).executeCallService(any()); 86 | } 87 | 88 | @Ignore 89 | @Test 90 | public void executeCallService() { 91 | doAnswer(invocationOnMock -> { 92 | logger.info(invocationOnMock.getMock().toString()); 93 | 94 | ((MethodCallback) invocationOnMock.getArguments()[0]). 95 | onSuccess(any(Method.class), anyObject()); 96 | 97 | return null; 98 | }).when(abstractMethodCallback) 99 | .executeCallService(any(MethodCallback.class)); 100 | 101 | abstractMethodCallback.executeCallService(any(MethodCallback.class)); 102 | 103 | verify(abstractMethodCallback, times(1)). 104 | onSuccess(any(Method.class), anyObject()); 105 | } 106 | 107 | @Test 108 | public void executeOnFailure() { 109 | doReturn(false).when(abstractMethodCallback) 110 | .checkTimeoutError(exception); 111 | doReturn( 112 | AbstractMethodCallback.ERROR_TEXT_RESPONSE_WAS_NOT_A_VALID_JSON) 113 | .when(exception).getMessage(); 114 | doNothing().when(abstractMethodCallback).onFailure(any(), any()); 115 | doNothing().when(abstractMethodCallback) 116 | .hideLoadingMessage(anyBoolean()); 117 | 118 | abstractMethodCallback.executeOnFailure(null, exception); 119 | 120 | verify(abstractMethodCallback, times(1)).onFailure(any(), any()); 121 | } 122 | } -------------------------------------------------------------------------------- /src/main/resources/com/lofidewanto/demo/resource/themes/interseroh/css/topmenubar.less: -------------------------------------------------------------------------------- 1 | body { 2 | min-width: 320px; 3 | margin-top: 75px; 4 | } 5 | 6 | #tmb_top_menu_bar { 7 | 8 | z-index: 2; 9 | position: fixed; 10 | top: 0; 11 | width: 100%; 12 | letter-spacing: 0.1px; 13 | 14 | #tmb_portal_links { 15 | position: relative; 16 | } 17 | p, .paragraph, li, a { 18 | font-size: 13px; 19 | font-family: inherit; 20 | } 21 | #icons_right, 22 | .navbar-brand, 23 | .navbar > .navbar-collapse:not(.in) > #tmb_portal_links { 24 | top: 29px !important; 25 | } 26 | 27 | .navbar { 28 | background-color: #f8f8f8; 29 | min-height: 64px; 30 | border: none; 31 | } 32 | 33 | .navbar-brand { 34 | padding: 0 21px; 35 | position: relative; 36 | height: auto; 37 | font-family: inherit; 38 | font-size: 12px; 39 | color: inherit; 40 | white-space: nowrap; 41 | font-weight: 700; 42 | } 43 | 44 | .navbar-nav > li > a { 45 | font-family: inherit; 46 | line-height: 23px; 47 | padding: 0 15px; 48 | font-size: inherit; 49 | } 50 | 51 | .fa { 52 | font-size: 18px; 53 | color: inherit; 54 | &:focus, 55 | &:hover { 56 | color: inherit !important; 57 | } 58 | } 59 | 60 | .headertabs { 61 | float: right; 62 | margin-right: 15px; 63 | margin-left: 13px; 64 | .dropdown-toggle { 65 | padding: 0; 66 | line-height: 1em; 67 | } 68 | } 69 | .TMB_application, 70 | .INTERSEROH_application { 71 | &__logocontainer { 72 | float: left; 73 | background-color: transparent; 74 | padding: 6px; 75 | margin: 12px 4px; 76 | margin-left: 19px; 77 | border-radius: 5px; 78 | 79 | img { 80 | height: 45px; 81 | @media (max-width: 640px) { 82 | height: 40px; 83 | } 84 | } 85 | 86 | &__button { 87 | padding-left: 0 !important; 88 | padding-right: 0 !important; 89 | 90 | } 91 | } 92 | } 93 | /*theme*/ 94 | .navbar-default { 95 | .navbar-nav { 96 | padding: 0; 97 | 98 | > li > a { 99 | color: inherit !important; 100 | font-size: inherit !important; 101 | &:hover, 102 | &:focus { 103 | color: inherit; 104 | } 105 | } 106 | } 107 | } 108 | .navbar-toggle { 109 | border: none; 110 | margin: 2px 15px; 111 | padding: 0; 112 | background-color: transparent !important; 113 | &:focus, 114 | &:hover { 115 | background-color: transparent !important; 116 | } 117 | } 118 | .navbar-collapse, 119 | .navbar-form { 120 | border-color: transparent; 121 | } 122 | 123 | #icons_right { 124 | position: absolute; 125 | right: 10px; 126 | top: 22px; 127 | .TMB_application, 128 | .INTERSEROH_application { 129 | &__button { 130 | border: none; 131 | padding-top: 3px; 132 | padding-bottom: 3px; 133 | margin-bottom: 0; 134 | margin-top: 0; 135 | position: relative; 136 | bottom: 1px; 137 | } 138 | } 139 | } 140 | 141 | @media (max-width: 400px) { 142 | .navbar-brand { 143 | display: none; 144 | } 145 | } 146 | 147 | #tmb_profile, 148 | #tmb_messaging { 149 | position: relative; 150 | a { 151 | display: block; 152 | position: absolute; 153 | width: 20px; 154 | height: 20px; 155 | top: -5px; 156 | left: -5px; 157 | } 158 | } 159 | 160 | @media (max-width: 767px) { 161 | #tmb_portal_links { 162 | position: static; 163 | } 164 | .navbar-nav > li > a { 165 | padding: 10px 15px; 166 | } 167 | 168 | .TMB_application, 169 | .INTERSEROH_application { 170 | &__logocontainer { 171 | margin-left: 8px; 172 | } 173 | } 174 | } 175 | 176 | &.TMB_application { /*own space, always on the top to overwrite applauncher popup*/ 177 | font-size: 13px; 178 | line-height: 1.846; 179 | color: #777; 180 | font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif; 181 | /*theme*/ 182 | .navbar { 183 | &.darkblue { 184 | background-color: #223d62; 185 | color: #fff; 186 | .TMB_application__logocontainer { 187 | background-color: #fff; 188 | } 189 | } 190 | &.white { 191 | background-color: #fff; 192 | color: #777; 193 | } 194 | } 195 | } 196 | } -------------------------------------------------------------------------------- /src/main/java/com/lofidewanto/demo/client/ui/main/MainPanelView.ui.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | .danger { 8 | background-color: #fcf2f2; 9 | border-color: #dFb5b4; 10 | } 11 | 12 | .margin-fix { 13 | margin-bottom: 0 !important; 14 | } 15 | 16 | .margin-logo { 17 | margin-left: 20px; 18 | margin-top: 5px; 19 | margin-bottom: 5px; 20 | } 21 | 22 | .margin-user { 23 | margin-right: 20px; 24 | margin-left: 20px; 25 | } 26 | 27 | .margin-webapps { 28 | margin-right: 20px; 29 | margin-left: 10px; 30 | } 31 | 32 | .margin-top-bottom { 33 | margin-top: 40px; 34 | margin-bottom: 10px; 35 | } 36 | 37 | .margin-top-bottom-search-field { 38 | margin-top: 10px; 39 | margin-bottom: 10px; 40 | } 41 | 42 | .margin-title { 43 | padding-top: 20px; 44 | } 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 64 | 65 | 66 | 67 | 68 | 69 | 71 | 72 | 74 | 75 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | -------------------------------------------------------------------------------- /src/main/resources/public/demogwt.css: -------------------------------------------------------------------------------- 1 | /** Add css rules here for your application. */ 2 | 3 | /** Example rules used by the template application (remove for your app) */ 4 | h1 { 5 | font-size: 2em; 6 | font-weight: bold; 7 | color: #777777; 8 | margin: 40px 0px 70px; 9 | text-align: center; 10 | } 11 | 12 | .sendButton { 13 | display: block; 14 | font-size: 16pt; 15 | } 16 | 17 | /** Most GWT widgets already have a style name defined */ 18 | .gwt-DialogBox { 19 | width: 400px; 20 | } 21 | 22 | .dialogVPanel { 23 | margin: 5px; 24 | } 25 | 26 | .serverResponseLabelError { 27 | color: red; 28 | } 29 | 30 | /** Set ids using widget.getElement().setId("idOfElement") */ 31 | #closeButton { 32 | margin: 15px 6px 6px; 33 | } 34 | 35 | /** GWTBootstrap3 SuggestBox */ 36 | .dropdown-menu .item { 37 | padding: 5px; 38 | } 39 | 40 | /** GWTBootstrap3 SuggestBox */ 41 | .dropdown-menu .item-selected { 42 | background-color: #eee; 43 | } 44 | 45 | .popover-title { 46 | display: none; 47 | } 48 | 49 | .webapps-popover-outer-div { 50 | font-family: arial,sans-serif; 51 | font-size: 13px; 52 | white-space: nowrap; 53 | text-align: left; 54 | line-height: normal; 55 | transition: height .2s ease-in-out; 56 | -moz-user-select: text; 57 | border-radius: 2px; 58 | animation: gb__a .2s; 59 | top: 0; 60 | right: 0; 61 | position: absolute; 62 | overflow: hidden; 63 | outline: none; 64 | box-shadow: 0 2px 10px rgba(0,0,0,.2); 65 | color: #000; 66 | border-color: rgba(0,0,0,.2); 67 | border: 1px solid #ccc; 68 | background: #fff; 69 | width: 320px; 70 | overflow-y: auto; 71 | min-height: 196px; 72 | display: block; 73 | } 74 | .webapps-popover-unnumbered-list { 75 | position: relative; 76 | display: block; 77 | background: #fff; 78 | margin: 0; 79 | min-height:100px; 80 | padding: 28px; 81 | padding-right: 27px; 82 | top-align: left; 83 | white-space: normal; 84 | width: 265px; 85 | border: 0; 86 | } 87 | 88 | .webapps-popover-list-item { 89 | padding: 1px; 90 | display: inline-block; 91 | vertical-align: top; 92 | color: black; 93 | z-index: 999; 94 | height: 98px; 95 | width: 86px; 96 | margin: 0; 97 | border: 0; 98 | } 99 | 100 | .webapps-popover-a-1-1 { 101 | transform: translate(0px, 0px); 102 | } 103 | 104 | .webapps-popover-a-1-2 { 105 | transform: translate(88px, 0px); 106 | } 107 | 108 | .webapps-popover-a-1-3 { 109 | transform: translate(176px, 0px); 110 | } 111 | 112 | .webapps-popover-a-2-1 { 113 | transform: translate(0px, 100px); 114 | } 115 | 116 | .webapps-popover-a-2-2 { 117 | transform: translate(88px, 100px); 118 | } 119 | 120 | .webapps-popover-a-2-3 { 121 | transform: translate(176px, 100px); 122 | } 123 | 124 | .webapps-popover-a-3-1 { 125 | transform: translate(0px, 200px); 126 | } 127 | .webapps-popover-a { 128 | white-space: normal; 129 | line-height: normal; 130 | display: inline-block; 131 | font-size: 13px; 132 | margin: 8px 2px; 133 | text-align: center; 134 | outline: none; 135 | position: absolute; 136 | top: 28px; 137 | left: 28px; 138 | transition: transform 0.2s cubic-bezier(0.333, 0, 0, 1) 0s; 139 | color: #404040; 140 | text-decoration: none; 141 | } 142 | 143 | .webapps-popover-list-item-div-1 { 144 | position: relative; 145 | top: 27px; 146 | visibility: hidden; 147 | float: left; 148 | width: 0; 149 | height: 0; 150 | border-top: 5px solid transparent; 151 | border-bottom: 5px solid transparent; 152 | border-right: 5px solid #4273db; 153 | } 154 | 155 | .webapps-popover-list-item-div-2 { 156 | position: relative; 157 | top: 27px; 158 | visibility: hidden; 159 | float: right; 160 | width: 0; 161 | height: 0; 162 | border-top: 5px solid transparent; 163 | border-bottom: 5px solid transparent; 164 | border-left: 5px solid #4273db; 165 | } 166 | 167 | .webapps-popover-list-item-div-3 { 168 | left: 37px; 169 | visibility: hidden; 170 | position: absolute; 171 | top: 0; 172 | width: 0; 173 | height: 0; 174 | border-left: 5px solid transparent; 175 | border-right: 5px solid transparent; 176 | border-bottom: 5px solid #4273db; 177 | } 178 | 179 | .webapps-popover-list-item-div-4 { 180 | left: 37px; 181 | visibility: hidden; 182 | position: absolute; 183 | top: 59px; 184 | width: 0; 185 | height: 0; 186 | border-left: 5px solid transparent; 187 | border-right: 5px solid transparent; 188 | border-top: 5px solid #4273db; 189 | } 190 | 191 | .webapps-popover-list-item-image { 192 | display: inline-block; 193 | vertical-align: top; 194 | height: 64px; 195 | width: 64px; 196 | } 197 | 198 | .webapps-popover-list-item-text { 199 | display: block; 200 | line-height: 20px; 201 | overflow: hidden; 202 | white-space: nowrap; 203 | width: 84px; 204 | text-overflow: ellipsis; 205 | } -------------------------------------------------------------------------------- /src/main/java/com/lofidewanto/demo/client/ui/person/PersonPanelView.ui.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | .margin-right { 11 | margin-right: 10px; 12 | } 13 | 14 | .panel-left-top { 15 | margin-top: 20px; 16 | margin-left: 10px; 17 | margin-right: 10px; 18 | } 19 | 20 | .panel-left-bottom { 21 | margin-top: 10px; 22 | margin-left: 10px; 23 | margin-right: 10px; 24 | } 25 | 26 | .panel-main { 27 | margin-top: 20px; 28 | margin-left: 10px; 29 | margin-right: 10px; 30 | } 31 | 32 | .button-toolbar { 33 | margin-right: 10px; 34 | } 35 | 36 | .margin-fix { 37 | margin-bottom: 0 !important; 38 | border-bottom-width: 0px; 39 | border-style: none; 40 | } 41 | 42 | .amount-update-time-info { 43 | margin-left: 15px; 44 | } 45 | 46 | .table-word-wrap { 47 | word-wrap: break-word; 48 | } 49 | 50 | .form-horizontal .control-label { 51 | width: 100px !important; 52 | } 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 82 | 83 | 84 | 85 | 86 | 88 | 89 | 93 | 94 | 95 | 97 | 98 | 102 | 103 | 104 | 105 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 124 | 126 | 127 | 128 | 129 | 131 | 132 | 135 | 136 | 137 | 138 | 140 | 141 | 142 | 143 | 144 | 145 | 148 | 149 | 150 | 151 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | -------------------------------------------------------------------------------- /src/main/java/com/lofidewanto/demo/server/controller/PersonController.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.server.controller; 20 | 21 | import java.util.ArrayList; 22 | import java.util.Collection; 23 | import java.util.Date; 24 | import java.util.List; 25 | 26 | import org.slf4j.Logger; 27 | import org.slf4j.LoggerFactory; 28 | import org.springframework.beans.factory.annotation.Autowired; 29 | import org.springframework.http.HttpStatus; 30 | import org.springframework.http.ResponseEntity; 31 | import org.springframework.stereotype.Controller; 32 | import org.springframework.web.bind.annotation.CrossOrigin; 33 | import org.springframework.web.bind.annotation.RequestMapping; 34 | import org.springframework.web.bind.annotation.RequestMethod; 35 | import org.springframework.web.bind.annotation.RequestParam; 36 | import org.springframework.web.bind.annotation.ResponseBody; 37 | 38 | import com.lofidewanto.demo.server.domain.Address; 39 | import com.lofidewanto.demo.server.domain.AddressImpl; 40 | import com.lofidewanto.demo.server.domain.Person; 41 | import com.lofidewanto.demo.server.domain.PersonImpl; 42 | import com.lofidewanto.demo.server.exception.CreatePersonException; 43 | import com.lofidewanto.demo.server.repository.PersonRepository; 44 | import com.lofidewanto.demo.server.service.person.PersonService; 45 | import com.lofidewanto.demo.shared.AddressDto; 46 | import com.lofidewanto.demo.shared.DemoGwtServiceEndpoint; 47 | import com.lofidewanto.demo.shared.PersonDto; 48 | 49 | @Controller 50 | @CrossOrigin 51 | public class PersonController { 52 | 53 | private static final Logger logger = LoggerFactory 54 | .getLogger(PersonController.class); 55 | 56 | @Autowired 57 | private PersonService personService; 58 | 59 | @Autowired 60 | private PersonRepository personRepository; 61 | 62 | /** 63 | * Using simple @{@link ResponseBody}. 64 | * 65 | * @param start 66 | * @param length 67 | * @return 68 | */ 69 | @RequestMapping(value = DemoGwtServiceEndpoint.PERSON_LIST, method = RequestMethod.GET) 70 | public @ResponseBody 71 | List getPersons( 72 | @RequestParam("start") Integer start, 73 | @RequestParam("length") Integer length) { 74 | addTestDateToDb(); 75 | logger.info("Method getPersons begins..."); 76 | ArrayList persons = new ArrayList<>(); 77 | Collection findAllPersons = personService.findAllPersons(start, 78 | length); 79 | for (Person person : findAllPersons) { 80 | PersonDto personDto = buildPerson(person); 81 | persons.add(personDto); 82 | } 83 | 84 | return persons; 85 | } 86 | 87 | /** 88 | * Using {@link ResponseEntity}. 89 | * 90 | * @param personName 91 | * @param fromDate 92 | * @param toDate 93 | * @return 94 | */ 95 | @RequestMapping(value = DemoGwtServiceEndpoint.PERSON_FILTER, method = RequestMethod.GET) 96 | public ResponseEntity> filterPersons( 97 | @RequestParam("nameSuggestBox") String personName, 98 | @RequestParam(value = "fromDateTimePicker", required = false) Date fromDate, 99 | @RequestParam(value = "untilDateTimePicker", required = false) Date toDate) { 100 | logger.info("Method filterPersons begins..."); 101 | 102 | List persons = new ArrayList<>(); 103 | PersonDto dto = new PersonDto(); 104 | 105 | if (personName == null || personName.equals("")) { 106 | personName = ".. Empty .."; 107 | } 108 | 109 | dto.setName(personName); 110 | dto.setNickname("muster"); 111 | persons.add(dto); 112 | 113 | dto = new PersonDto(); 114 | dto.setName("Bauer_Filter"); 115 | dto.setNickname("baur"); 116 | 117 | persons.add(dto); 118 | 119 | return new ResponseEntity>(persons, HttpStatus.OK); 120 | } 121 | 122 | public PersonDto createAddressFromPerson(PersonDto personDto, AddressDto addressDto) { 123 | // Mapping to entity 124 | Person person = new PersonImpl("muster"); 125 | person.setName("Mustermann"); 126 | 127 | Address address = new AddressImpl(); 128 | 129 | Person createdPerson = null; 130 | try { 131 | createdPerson = personService.createAddressFromPerson(address, person); 132 | } catch (CreatePersonException e) { 133 | logger.error("Error: ", e); 134 | } 135 | 136 | // Mapping to DTO 137 | PersonDto createdPersonDto = buildPerson(createdPerson); 138 | 139 | return createdPersonDto; 140 | } 141 | 142 | private PersonDto buildPerson(Person person) { 143 | PersonDto personDto = new PersonDto(); 144 | personDto.setName(person.getName()); 145 | personDto.setNickname(person.getNickname()); 146 | return personDto; 147 | } 148 | 149 | private void addTestDateToDb() { 150 | PersonImpl personImpl = new PersonImpl("muster"); 151 | personImpl.setName("Mustermann"); 152 | personRepository.save(personImpl); 153 | 154 | personImpl = new PersonImpl("baur"); 155 | personImpl.setName("Bauer"); 156 | personRepository.save(personImpl); 157 | } 158 | 159 | } 160 | -------------------------------------------------------------------------------- /src/test/java/com/lofidewanto/demo/client/ui/person/PersonPanelViewTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one 3 | * or more contributor license agreements. See the NOTICE file 4 | * distributed with this work for additional information 5 | * regarding copyright ownership. The ASF licenses this file 6 | * to you under the Apache License, Version 2.0 (the 7 | * "License"); you may not use this file except in compliance 8 | * with the License. You may obtain a copy of the License at 9 | * 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * 12 | * Unless required by applicable law or agreed to in writing, 13 | * software distributed under the License is distributed on an 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 | * KIND, either express or implied. See the License for the 16 | * specific language governing permissions and limitations 17 | * under the License. 18 | */ 19 | package com.lofidewanto.demo.client.ui.person; 20 | 21 | import com.google.gwt.event.shared.EventBus; 22 | import com.google.gwtmockito.GwtMockitoTestRunner; 23 | import com.lofidewanto.demo.client.common.ErrorFormatter; 24 | import com.lofidewanto.demo.client.common.LoadingMessagePopupPanel; 25 | import com.lofidewanto.demo.client.domain.PersonClient; 26 | import org.gwtbootstrap3.extras.select.client.ui.Option; 27 | import org.junit.Before; 28 | import org.junit.Test; 29 | import org.junit.runner.RunWith; 30 | import org.mockito.Mock; 31 | 32 | import java.util.ArrayList; 33 | import java.util.List; 34 | 35 | import static org.mockito.Matchers.anyString; 36 | import static org.mockito.Mockito.*; 37 | 38 | /** 39 | * Unit test with GwtMockito. 40 | *

41 | * Created by dewanto on 29.05.2017. 42 | */ 43 | @RunWith(GwtMockitoTestRunner.class) 44 | public class PersonPanelViewTest { 45 | 46 | // CUT: Class Under Test 47 | private PersonPanelView view; 48 | 49 | @Mock 50 | private ErrorFormatter errorFormatter; 51 | 52 | @Mock 53 | private LoadingMessagePopupPanel loadingMessagePopupPanel; 54 | 55 | @Mock 56 | private EventBus eventBus; 57 | 58 | @Mock 59 | private PersonClient personClient; 60 | 61 | @Mock 62 | private Option mustardOption; 63 | 64 | @Before 65 | public void setUp() throws Exception { 66 | // CUT create 67 | view = new PersonPanelView(eventBus, errorFormatter, 68 | loadingMessagePopupPanel, personClient); 69 | 70 | // Create a spy on the view to mock view.runtimer() 71 | view = spy(view); 72 | } 73 | 74 | /** 75 | * Partial Mocking using Spy in the method: runTimerRefreshButton. 76 | * 77 | * @throws Exception 78 | */ 79 | @Test 80 | public void testOnButtonClickNoSelectedFoodRuntimerTrue() throws Exception { 81 | // Prepare 82 | // Empty list no food selected 83 | List

"); 206 | } 207 | 208 | public void addWidget(WidgetName name, Widget widget) { 209 | this.widgets.put(name, widget); 210 | this.contentColumn.add(widget); 211 | widget.setVisible(false); 212 | } 213 | 214 | public void showWidget(WidgetName name) { 215 | hideAllWidgets(); 216 | Widget widget = this.widgets.get(name); 217 | widget.setVisible(true); 218 | } 219 | 220 | private void hideAllWidgets() { 221 | final int count = this.contentColumn.getWidgetCount(); 222 | for (int i = 0; i < count; i++) { 223 | this.contentColumn.getWidget(i).setVisible(false); 224 | } 225 | } 226 | 227 | void showAndStartWidget(WidgetName name) { 228 | hideAllWidgets(); 229 | Widget widget = this.widgets.get(name); 230 | widget.setVisible(true); 231 | if (widget instanceof Startable) { 232 | Startable startable = (Startable) widget; 233 | startable.start(); 234 | } 235 | } 236 | 237 | public void setContentAreaVisible(boolean visible) { 238 | this.contentColumn.setVisible(visible); 239 | } 240 | 241 | public void updatePersonPanelView() { 242 | showWidget(WidgetName.PERSONLIST); 243 | // Workaround for DataGrid, the same for GwtBootstrap3: 244 | // https://github.com/gwtbootstrap/gwt-bootstrap/issues/279 245 | // just call dataGrid.onResize() when the tab is clicked 246 | // dataGrid implements RequiresResize and must be placed on a 247 | // LayoutPanel or you must call onResize() yourself 248 | PersonPanelView personPanelView = (PersonPanelView) this.widgets 249 | .get(WidgetName.PERSONLIST); 250 | 251 | // Init some data 252 | personPanelView.init(); 253 | 254 | logger.info("Method updatePersonPanelView finished: " + personPanelView.getTitle()); 255 | } 256 | 257 | @EventHandler 258 | void onChangeViewed(ChangeViewEvent event) { 259 | logger.info("ChangeViewEvent triggered: " + event.getWidgetName() 260 | + " - Source: " + event.getSource()); 261 | showAndStartWidget(event.getWidgetName()); 262 | } 263 | 264 | } 265 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "{}" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright {yyyy} {name of copyright owner} 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | --------------------------------------------------------------------------------