Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9ac5cdd

Browse files
author
Suresh Tripathi
committed
Addinf code for tagEditor and PreferenceServlet
1 parent 3a1d2a8 commit 9ac5cdd

15 files changed

Lines changed: 572 additions & 251 deletions

netview/.classpath

Lines changed: 15 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -2,98 +2,21 @@
22
<classpath>
33
<classpathentry kind="src" path="src"/>
44
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
5-
<classpathentry kind="lib" path="war/WEB-INF/lib/opencsv-1.8.jar" sourcepath="opencsv-1.8/src"/>
6-
<classpathentry kind="lib" path="war/WEB-INF/lib/json_simple-1.1.jar"/>
75
<classpathentry kind="con" path="com.google.gwt.eclipse.core.GWT_CONTAINER"/>
8-
<classpathentry kind="lib" path="C:/Program Files/Genuitec/Common/plugins/com.google.appengine.eclipse.sdkbundle_1.2.2.v200907131030/appengine-java-sdk-1.2.2/lib/shared/appengine-local-runtime-shared.jar">
9-
<attributes>
10-
<attribute name="javadoc_location" value="file:/C:/Program%20Files/Genuitec/Common/plugins/com.google.appengine.eclipse.sdkbundle_1.2.2.v200907131030/appengine-java-sdk-1.2.2/docs/javadoc/"/>
11-
</attributes>
12-
</classpathentry>
13-
<classpathentry kind="lib" path="C:/Program Files/Genuitec/Common/plugins/com.google.appengine.eclipse.sdkbundle_1.2.2.v200907131030/appengine-java-sdk-1.2.2/lib/shared/geronimo-el_1.0_spec-1.0.1.jar">
14-
<attributes>
15-
<attribute name="javadoc_location" value="file:/C:/Program%20Files/Genuitec/Common/plugins/com.google.appengine.eclipse.sdkbundle_1.2.2.v200907131030/appengine-java-sdk-1.2.2/docs/javadoc/"/>
16-
</attributes>
17-
</classpathentry>
18-
<classpathentry kind="lib" path="C:/Program Files/Genuitec/Common/plugins/com.google.appengine.eclipse.sdkbundle_1.2.2.v200907131030/appengine-java-sdk-1.2.2/lib/shared/geronimo-jsp_2.1_spec-1.0.1.jar">
19-
<attributes>
20-
<attribute name="javadoc_location" value="file:/C:/Program%20Files/Genuitec/Common/plugins/com.google.appengine.eclipse.sdkbundle_1.2.2.v200907131030/appengine-java-sdk-1.2.2/docs/javadoc/"/>
21-
</attributes>
22-
</classpathentry>
23-
<classpathentry kind="lib" path="C:/Program Files/Genuitec/Common/plugins/com.google.appengine.eclipse.sdkbundle_1.2.2.v200907131030/appengine-java-sdk-1.2.2/lib/shared/geronimo-servlet_2.5_spec-1.2.jar">
24-
<attributes>
25-
<attribute name="javadoc_location" value="file:/C:/Program%20Files/Genuitec/Common/plugins/com.google.appengine.eclipse.sdkbundle_1.2.2.v200907131030/appengine-java-sdk-1.2.2/docs/javadoc/"/>
26-
</attributes>
27-
</classpathentry>
28-
<classpathentry kind="lib" path="C:/Program Files/Genuitec/Common/plugins/com.google.appengine.eclipse.sdkbundle_1.2.2.v200907131030/appengine-java-sdk-1.2.2/lib/shared/jsp/repackaged-appengine-ant-1.6.5.jar">
29-
<attributes>
30-
<attribute name="javadoc_location" value="file:/C:/Program%20Files/Genuitec/Common/plugins/com.google.appengine.eclipse.sdkbundle_1.2.2.v200907131030/appengine-java-sdk-1.2.2/docs/javadoc/"/>
31-
</attributes>
32-
</classpathentry>
33-
<classpathentry kind="lib" path="C:/Program Files/Genuitec/Common/plugins/com.google.appengine.eclipse.sdkbundle_1.2.2.v200907131030/appengine-java-sdk-1.2.2/lib/shared/jsp/repackaged-appengine-ant-launcher-1.6.5.jar">
34-
<attributes>
35-
<attribute name="javadoc_location" value="file:/C:/Program%20Files/Genuitec/Common/plugins/com.google.appengine.eclipse.sdkbundle_1.2.2.v200907131030/appengine-java-sdk-1.2.2/docs/javadoc/"/>
36-
</attributes>
37-
</classpathentry>
38-
<classpathentry kind="lib" path="C:/Program Files/Genuitec/Common/plugins/com.google.appengine.eclipse.sdkbundle_1.2.2.v200907131030/appengine-java-sdk-1.2.2/lib/shared/jsp/repackaged-appengine-commons-el-1.0.jar">
39-
<attributes>
40-
<attribute name="javadoc_location" value="file:/C:/Program%20Files/Genuitec/Common/plugins/com.google.appengine.eclipse.sdkbundle_1.2.2.v200907131030/appengine-java-sdk-1.2.2/docs/javadoc/"/>
41-
</attributes>
42-
</classpathentry>
43-
<classpathentry kind="lib" path="C:/Program Files/Genuitec/Common/plugins/com.google.appengine.eclipse.sdkbundle_1.2.2.v200907131030/appengine-java-sdk-1.2.2/lib/shared/jsp/repackaged-appengine-commons-logging-1.1.1.jar">
44-
<attributes>
45-
<attribute name="javadoc_location" value="file:/C:/Program%20Files/Genuitec/Common/plugins/com.google.appengine.eclipse.sdkbundle_1.2.2.v200907131030/appengine-java-sdk-1.2.2/docs/javadoc/"/>
46-
</attributes>
47-
</classpathentry>
48-
<classpathentry kind="lib" path="C:/Program Files/Genuitec/Common/plugins/com.google.appengine.eclipse.sdkbundle_1.2.2.v200907131030/appengine-java-sdk-1.2.2/lib/shared/jsp/repackaged-appengine-jasper-compiler-5.0.28.jar">
49-
<attributes>
50-
<attribute name="javadoc_location" value="file:/C:/Program%20Files/Genuitec/Common/plugins/com.google.appengine.eclipse.sdkbundle_1.2.2.v200907131030/appengine-java-sdk-1.2.2/docs/javadoc/"/>
51-
</attributes>
52-
</classpathentry>
53-
<classpathentry kind="lib" path="C:/Program Files/Genuitec/Common/plugins/com.google.appengine.eclipse.sdkbundle_1.2.2.v200907131030/appengine-java-sdk-1.2.2/lib/shared/jsp/repackaged-appengine-jasper-runtime-5.0.28.jar">
54-
<attributes>
55-
<attribute name="javadoc_location" value="file:/C:/Program%20Files/Genuitec/Common/plugins/com.google.appengine.eclipse.sdkbundle_1.2.2.v200907131030/appengine-java-sdk-1.2.2/docs/javadoc/"/>
56-
</attributes>
57-
</classpathentry>
58-
<classpathentry kind="lib" path="C:/Program Files/Genuitec/Common/plugins/com.google.appengine.eclipse.sdkbundle_1.2.2.v200907131030/appengine-java-sdk-1.2.2/lib/user/appengine-api-1.0-sdk-1.2.2.jar">
59-
<attributes>
60-
<attribute name="javadoc_location" value="file:/C:/Program%20Files/Genuitec/Common/plugins/com.google.appengine.eclipse.sdkbundle_1.2.2.v200907131030/appengine-java-sdk-1.2.2/docs/javadoc/"/>
61-
</attributes>
62-
</classpathentry>
63-
<classpathentry kind="lib" path="C:/Program Files/Genuitec/Common/plugins/com.google.appengine.eclipse.sdkbundle_1.2.2.v200907131030/appengine-java-sdk-1.2.2/lib/user/orm/datanucleus-appengine-1.0.2.final.jar" sourcepath="C:/Program Files/Genuitec/Common/plugins/com.google.appengine.eclipse.sdkbundle_1.2.2.v200907131030/appengine-java-sdk-1.2.2/src/orm/datanucleus-appengine-1.0.2.final-src.zip">
64-
<attributes>
65-
<attribute name="javadoc_location" value="file:/C:/Program%20Files/Genuitec/Common/plugins/com.google.appengine.eclipse.sdkbundle_1.2.2.v200907131030/appengine-java-sdk-1.2.2/docs/javadoc/"/>
66-
</attributes>
67-
</classpathentry>
68-
<classpathentry kind="lib" path="C:/Program Files/Genuitec/Common/plugins/com.google.appengine.eclipse.sdkbundle_1.2.2.v200907131030/appengine-java-sdk-1.2.2/lib/user/orm/datanucleus-core-1.1.4-gae.jar" sourcepath="C:/Program Files/Genuitec/Common/plugins/com.google.appengine.eclipse.sdkbundle_1.2.2.v200907131030/appengine-java-sdk-1.2.2/src/orm/datanucleus-core-1.1.4-gae-src.zip">
69-
<attributes>
70-
<attribute name="javadoc_location" value="file:/C:/Program%20Files/Genuitec/Common/plugins/com.google.appengine.eclipse.sdkbundle_1.2.2.v200907131030/appengine-java-sdk-1.2.2/docs/javadoc/"/>
71-
</attributes>
72-
</classpathentry>
73-
<classpathentry kind="lib" path="C:/Program Files/Genuitec/Common/plugins/com.google.appengine.eclipse.sdkbundle_1.2.2.v200907131030/appengine-java-sdk-1.2.2/lib/user/orm/datanucleus-jpa-1.1.4.jar" sourcepath="C:/Program Files/Genuitec/Common/plugins/com.google.appengine.eclipse.sdkbundle_1.2.2.v200907131030/appengine-java-sdk-1.2.2/src/orm/datanucleus-jpa-1.1.4-src.zip">
74-
<attributes>
75-
<attribute name="javadoc_location" value="file:/C:/Program%20Files/Genuitec/Common/plugins/com.google.appengine.eclipse.sdkbundle_1.2.2.v200907131030/appengine-java-sdk-1.2.2/docs/javadoc/"/>
76-
</attributes>
77-
</classpathentry>
78-
<classpathentry kind="lib" path="C:/Program Files/Genuitec/Common/plugins/com.google.appengine.eclipse.sdkbundle_1.2.2.v200907131030/appengine-java-sdk-1.2.2/lib/user/orm/geronimo-jpa_3.0_spec-1.1.1.jar">
79-
<attributes>
80-
<attribute name="javadoc_location" value="file:/C:/Program%20Files/Genuitec/Common/plugins/com.google.appengine.eclipse.sdkbundle_1.2.2.v200907131030/appengine-java-sdk-1.2.2/docs/javadoc/"/>
81-
</attributes>
82-
</classpathentry>
83-
<classpathentry kind="lib" path="C:/Program Files/Genuitec/Common/plugins/com.google.appengine.eclipse.sdkbundle_1.2.2.v200907131030/appengine-java-sdk-1.2.2/lib/user/orm/geronimo-jta_1.1_spec-1.1.1.jar">
84-
<attributes>
85-
<attribute name="javadoc_location" value="file:/C:/Program%20Files/Genuitec/Common/plugins/com.google.appengine.eclipse.sdkbundle_1.2.2.v200907131030/appengine-java-sdk-1.2.2/docs/javadoc/"/>
86-
</attributes>
87-
</classpathentry>
88-
<classpathentry kind="lib" path="C:/Program Files/Genuitec/Common/plugins/com.google.appengine.eclipse.sdkbundle_1.2.2.v200907131030/appengine-java-sdk-1.2.2/lib/user/orm/jdo2-api-2.3-ea.jar">
89-
<attributes>
90-
<attribute name="javadoc_location" value="file:/C:/Program%20Files/Genuitec/Common/plugins/com.google.appengine.eclipse.sdkbundle_1.2.2.v200907131030/appengine-java-sdk-1.2.2/docs/javadoc/"/>
91-
</attributes>
92-
</classpathentry>
93-
<classpathentry kind="lib" path="C:/Program Files/Genuitec/Common/plugins/com.google.appengine.eclipse.sdkbundle_1.2.2.v200907131030/appengine-java-sdk-1.2.2/lib/appengine-tools-api.jar">
94-
<attributes>
95-
<attribute name="javadoc_location" value="file:/C:/Program%20Files/Genuitec/Common/plugins/com.google.appengine.eclipse.sdkbundle_1.2.2.v200907131030/appengine-java-sdk-1.2.2/docs/javadoc/"/>
96-
</attributes>
97-
</classpathentry>
6+
<classpathentry kind="lib" path="war/WEB-INF/lib/appengine-api-1.0-sdk-1.2.2.jar"/>
7+
<classpathentry kind="lib" path="war/WEB-INF/lib/datanucleus-appengine-1.0.2.final.jar"/>
8+
<classpathentry kind="lib" path="war/WEB-INF/lib/datanucleus-core-1.1.4-gae.jar"/>
9+
<classpathentry kind="lib" path="war/WEB-INF/lib/datanucleus-enhancer-1.1.4.jar"/>
10+
<classpathentry kind="lib" path="war/WEB-INF/lib/datanucleus-jpa-1.1.4.jar"/>
11+
<classpathentry kind="lib" path="war/WEB-INF/lib/datanucleus-rdbms-1.1.4.jar"/>
12+
<classpathentry kind="lib" path="war/WEB-INF/lib/geronimo-jpa_3.0_spec-1.1.1.jar"/>
13+
<classpathentry kind="lib" path="war/WEB-INF/lib/geronimo-jta_1.1_spec-1.1.1.jar"/>
14+
<classpathentry kind="lib" path="war/WEB-INF/lib/gwt-servlet.jar"/>
15+
<classpathentry kind="lib" path="war/WEB-INF/lib/gxt.jar"/>
16+
<classpathentry kind="lib" path="war/WEB-INF/lib/jdo2-api-2.3-ea.jar"/>
17+
<classpathentry kind="lib" path="war/WEB-INF/lib/jdo2-api-2.3-SNAPSHOT.jar"/>
18+
<classpathentry kind="lib" path="war/WEB-INF/lib/json_simple-1.1.jar"/>
19+
<classpathentry kind="lib" path="war/WEB-INF/lib/mysql-connector-java-5.1.8-bin.jar"/>
20+
<classpathentry kind="lib" path="war/WEB-INF/lib/opencsv-1.8.jar"/>
9821
<classpathentry kind="output" path="war/WEB-INF/classes"/>
9922
</classpath>
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
package com.prodco.preferences.client;
2+
3+
import java.util.List;
4+
5+
import com.extjs.gxt.ui.client.Style.Orientation;
6+
import com.extjs.gxt.ui.client.binding.FormBinding;
7+
import com.extjs.gxt.ui.client.widget.ContentPanel;
8+
import com.extjs.gxt.ui.client.widget.LayoutContainer;
9+
import com.extjs.gxt.ui.client.widget.form.FormPanel;
10+
import com.extjs.gxt.ui.client.widget.form.FormPanel.LabelAlign;
11+
import com.extjs.gxt.ui.client.widget.layout.ColumnLayout;
12+
import com.extjs.gxt.ui.client.widget.layout.FormLayout;
13+
import com.extjs.gxt.ui.client.widget.layout.RowLayout;
14+
15+
public class CommonPanel extends ContentPanel {
16+
17+
public List<FormBinding> formBindings;
18+
19+
public LayoutContainer makeFormSection() {
20+
LayoutContainer main = new LayoutContainer();
21+
main.setLayout(new ColumnLayout());
22+
return main;
23+
}
24+
25+
public FormPanel makeFormColumn() {
26+
FormPanel col = new FormPanel();
27+
FormLayout layout = new FormLayout();
28+
layout.setLabelAlign(LabelAlign.LEFT);
29+
col.setLayout(layout);
30+
col.setHeaderVisible(false);
31+
col.setFrame(false);
32+
return col;
33+
}
34+
35+
public FormPanel makeFormRow() {
36+
FormPanel row = new FormPanel();
37+
row.setLayout(new RowLayout(Orientation.HORIZONTAL));
38+
row.setHeaderVisible(false);
39+
row.setFrame(false);
40+
return row;
41+
}
42+
43+
public List<FormBinding> getFormBindings() {
44+
return formBindings;
45+
}
46+
47+
public void setFormBindings(List<FormBinding> formBindings) {
48+
this.formBindings = formBindings;
49+
}
50+
51+
}

netview/src/com/prodco/preferences/client/PreferencesEntry.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ private void resizeWindow ()
113113
*/
114114
public void onWindowResized ( int width, int height )
115115
{
116-
height = height - 115;
116+
height = height -20;
117117
prefPanel.setWidth( width
118-
- 50 + "px" );
118+
- 25 + "px" );
119119
}
120120

121121
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package com.prodco.preferences.client;
2+
3+
import com.google.gwt.core.client.GWT;
4+
import com.google.gwt.user.client.rpc.ServiceDefTarget;
5+
import com.prodco.preferences.client.remote.PreferencesRemoteService;
6+
import com.prodco.preferences.client.remote.PreferencesRemoteServiceAsync;
7+
8+
9+
public class Services {
10+
public static final PreferencesRemoteServiceAsync PREFERENCES = (PreferencesRemoteServiceAsync) GWT
11+
.create(PreferencesRemoteService.class);
12+
13+
static {
14+
((ServiceDefTarget) PREFERENCES).setServiceEntryPoint(GWT.getModuleBaseURL()
15+
+ "/PreferencesRemoteService");
16+
}
17+
}

0 commit comments

Comments
 (0)