Skip to content

Commit f4d3251

Browse files
committed
Merge pull request ArcBees#1 from ArcBees/jd_initial
Elastic plugin : Initial revision
2 parents ac2dce6 + 9339e59 commit f4d3251

File tree

23 files changed

+2162
-0
lines changed

23 files changed

+2162
-0
lines changed

README.md

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#ArcBees GQuery Plugins
2+
3+
##Plugins
4+
<table>
5+
<tr>
6+
<th>Plugin</th>
7+
<th>Demo</th>
8+
<th>Demo Source</th>
9+
<th>Javadocs</th>
10+
</tr>
11+
<tr>
12+
<td><a href="https://github.com/ArcBees/ArcBees-GQuery-Plugins/tree/master/tooltip">Tooltip Home</a></td>
13+
<td><a href="http://arcbees.github.com/ArcBees-GQuery-Plugins/">Demo & Docs</a></td>
14+
<td><a href="https://github.com/ArcBees/ArcBees-GQuery-Plugins/tree/master/tooltip-sample/src/main/java/com/arcbees/gquery/tooltip/client">Source</a></td>
15+
<td><a href="http://arcbees.github.com/ArcBees-GQuery-Plugins/javadoc/apidocs/">Javadocs</a></td>
16+
</tr>
17+
</table>
18+
19+
##Contributor
20+
21+
###Deploying
22+
* Deploying Javadocs and site to GitHub use `mvn clean package site`
23+
24+
##Thanks to
25+
[![Arcbees.com](http://arcbees-ads.appspot.com/ad.png)](http://arcbees.com)
26+
27+
[![IntelliJ](https://lh6.googleusercontent.com/--QIIJfKrjSk/UJJ6X-UohII/AAAAAAAAAVM/cOW7EjnH778/s800/banner_IDEA.png)](http://www.jetbrains.com/idea/index.html)
28+
29+
[![githalytics.com alpha](https://cruel-carlota.gopagoda.com/ae27e06a3a8ba8e031d37594ff186900 "githalytics.com")](http://githalytics.com/ArcBees/ArcBees-GQuery-Plugins)

elastic-sample/pom.xml

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project>
3+
<modelVersion>4.0.0</modelVersion>
4+
<parent>
5+
<groupId>com.arcbees.gquery</groupId>
6+
<artifactId>elastic-plugin</artifactId>
7+
<version>1.0-SNAPSHOT</version>
8+
</parent>
9+
10+
<name>Elastic gQuery plugin example</name>
11+
<artifactId>elastic-sample</artifactId>
12+
<packaging>war</packaging>
13+
14+
<properties>
15+
<webappDirectory>${project.build.directory}/${project.build.finalName}</webappDirectory>
16+
</properties>
17+
18+
<build>
19+
<outputDirectory>${webappDirectory}/WEB-INF/classes</outputDirectory>
20+
21+
<plugins>
22+
<plugin>
23+
<groupId>org.codehaus.mojo</groupId>
24+
<artifactId>gwt-maven-plugin</artifactId>
25+
<configuration>
26+
<modules>
27+
<module>com.arcbees.gquery.elastic.htmlsample.ElasticSample</module>
28+
<module>com.arcbees.gquery.elastic.widgetsample.WidgetSample</module>
29+
</modules>
30+
</configuration>
31+
</plugin>
32+
33+
<plugin>
34+
<groupId>org.apache.maven.plugins</groupId>
35+
<artifactId>maven-source-plugin</artifactId>
36+
</plugin>
37+
38+
<!-- run 'mvn site' to upload -->
39+
<!-- run 'mvn site -X' to debug and upload. -->
40+
<plugin>
41+
<groupId>com.github.github</groupId>
42+
<artifactId>site-maven-plugin</artifactId>
43+
44+
<configuration>
45+
<outputDirectory>${webappDirectory}</outputDirectory>
46+
</configuration>
47+
</plugin>
48+
</plugins>
49+
</build>
50+
51+
<dependencies>
52+
<dependency>
53+
<groupId>com.google.gwt</groupId>
54+
<artifactId>gwt-user</artifactId>
55+
<version>${gwt.version}</version>
56+
<scope>compile</scope>
57+
</dependency>
58+
<dependency>
59+
<groupId>com.googlecode.gwtquery</groupId>
60+
<artifactId>gwtquery</artifactId>
61+
<version>${gquery.version}</version>
62+
</dependency>
63+
<dependency>
64+
<groupId>com.arcbees.gquery</groupId>
65+
<artifactId>elastic</artifactId>
66+
<version>${project.version}</version>
67+
</dependency>
68+
</dependencies>
69+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<module rename-to='ElasticBasicSample'>
2+
<inherits name='com.arcbees.gquery.elastic.Elastic'/>
3+
<entry-point class='com.arcbees.gquery.elastic.htmlsample.client.ElasticSample'/>
4+
</module>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<module rename-to='ElasticBasicSample'>
2+
<inherits name='com.arcbees.gquery.elastic.basicsample.ElasticSample'/>
3+
4+
<add-linker name="xsiframe"/>
5+
<set-configuration-property name="devModeRedirectEnabled" value="true"/>
6+
7+
</module>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/**
2+
* Copyright 2014 ArcBees Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
5+
* use this file except in compliance with the License. You may obtain a copy of
6+
* the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13+
* License for the specific language governing permissions and limitations under
14+
* the License.
15+
*/
16+
17+
package com.arcbees.gquery.elastic.htmlsample.client;
18+
19+
import com.arcbees.gquery.elastic.client.ElasticOption;
20+
import com.google.gwt.core.client.EntryPoint;
21+
import com.google.gwt.query.client.Function;
22+
23+
import static com.arcbees.gquery.elastic.client.Elastic.Elastic;
24+
import static com.google.gwt.query.client.GQuery.$;
25+
26+
/**
27+
* Example code for Elastic plugin for GwtQuery
28+
*/
29+
public class ElasticSample implements EntryPoint {
30+
public void onModuleLoad() {
31+
$("#go").click(new Function() {
32+
@Override
33+
public void f() {
34+
ElasticOption option = new ElasticOption()
35+
.setMinimumColumWidth(400)
36+
.setMinimalNumberOfColumn(2);
37+
38+
$("#container").as(Elastic).elastic(option);
39+
}
40+
});
41+
}
42+
}

0 commit comments

Comments
 (0)