File tree Expand file tree Collapse file tree 4 files changed +19
-1
lines changed
gwt-material/src/main/java/gwt/material/design/client/api Expand file tree Collapse file tree 4 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,6 @@ install: true
1515before_script :
1616 - chmod +x .utility/*
1717script :
18- - mvn clean install -DdryRun=true
18+ - mvn clean install -DdryRun=true -DskipTests=true
1919after_success :
2020- .utility/deploy.sh
Original file line number Diff line number Diff line change 2020package gwt .material .design .client .api ;
2121
2222import com .google .gwt .core .client .Callback ;
23+ import gwt .material .design .client .api .google .maps .GoogleApi ;
2324
2425/**
2526 * A Base feature that can be extended to build your own custom API Component.
2829 */
2930public interface ApiFeature {
3031
32+ /**
33+ * Will construct the given url. See {@link GoogleApi#constructApiUrl()} for the usage.
34+ */
3135 String constructApiUrl ();
3236
37+ /**
38+ * A Feature Api Key {i.e Google API Key}
39+ */
3340 String getApiKey ();
3441
42+ /**
43+ * A Feature Api Url provided to load any external js framework {i.e Google Maps Js resources}
44+ */
3545 String getApiUrl ();
3646}
Original file line number Diff line number Diff line change 2121
2222import gwt .material .design .client .api .ApiFeature ;
2323
24+ /**
25+ * An abstract implementation for loading any {@link GoogleApi}.
26+ *
27+ * @author kevzlou7979
28+ */
2429public abstract class GoogleApi implements ApiFeature {
2530
2631 protected final String apiKey ;
Original file line number Diff line number Diff line change @@ -36,5 +36,8 @@ public String constructApiUrl() {
3636 return super .constructApiUrl () + "&libraries=" + getLibrary ().name ().toLowerCase ();
3737 }
3838
39+ /**
40+ * Will pull any {@link MapLibrary} from Google Maps API
41+ */
3942 protected abstract MapLibrary getLibrary ();
4043}
You can’t perform that action at this time.
0 commit comments