[Yanel-commits] rev 31345 - in
public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor:
client public
michi at wyona.com
michi at wyona.com
Wed Feb 6 20:34:02 CET 2008
Author: michi
Date: 2008-02-06 20:34:01 +0100 (Wed, 06 Feb 2008)
New Revision: 31345
Modified:
public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/client/AccessPolicyEditor.java
public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/public/TestAccessPolicyEditor.html
Log:
basic widgets added
Modified: public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/client/AccessPolicyEditor.java
===================================================================
--- public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/client/AccessPolicyEditor.java 2008-02-06 18:56:30 UTC (rev 31344)
+++ public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/client/AccessPolicyEditor.java 2008-02-06 19:34:01 UTC (rev 31345)
@@ -20,7 +20,9 @@
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.ClickListener;
import com.google.gwt.user.client.ui.HorizontalPanel;
+import com.google.gwt.user.client.ui.ListBox;
import com.google.gwt.user.client.ui.RootPanel;
+import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;
@@ -29,33 +31,49 @@
*/
public class AccessPolicyEditor implements EntryPoint {
- /**
- *
- */
- public void onModuleLoad() {
+ /**
+ *
+ */
+ public void onModuleLoad() {
+ VerticalPanel vp = new VerticalPanel();
+ RootPanel.get().add(vp);
- VerticalPanel vp = new VerticalPanel();
- RootPanel.get().add(vp);
+ VerticalPanel searchFilterVP = new VerticalPanel();
+ vp.add(searchFilterVP);
- VerticalPanel searchFilterVP = new VerticalPanel();
- vp.add(searchFilterVP);
+ TextBox searchTB = new TextBox();
+ searchTB.setVisibleLength(30);
+ searchFilterVP.add(searchTB);
- HorizontalPanel hp = new HorizontalPanel();
- vp.add(hp);
+ HorizontalPanel hp = new HorizontalPanel();
+ vp.add(hp);
- Button addIdentityButton = new Button(">", new ClickListener() {
- public void onClick(Widget sender) {
- Window.alert("Add identity to policy");
- }
- });
+ int visibleItemCount = 10;
- Button removeIdentityButton = new Button(">", new ClickListener() {
- public void onClick(Widget sender) {
- Window.alert("Remove identity from policy");
- }
- });
+ ListBox identitiesLB = new ListBox();
+ identitiesLB.setVisibleItemCount(visibleItemCount);
+ identitiesLB.addItem("U: michi");
+ identitiesLB.addItem("U: levi");
- hp.add(addIdentityButton);
- hp.add(removeIdentityButton);
- }
+ ListBox policyLB = new ListBox();
+ policyLB.setVisibleItemCount(visibleItemCount);
+ policyLB.addItem("U: alice");
+
+ Button addIdentityButton = new Button(">", new ClickListener() {
+ public void onClick(Widget sender) {
+ Window.alert("Add selected identity to policy");
+ }
+ });
+
+ Button removeIdentityButton = new Button("<", new ClickListener() {
+ public void onClick(Widget sender) {
+ Window.alert("Remove selected identity from policy");
+ }
+ });
+
+ hp.add(identitiesLB);
+ hp.add(removeIdentityButton);
+ hp.add(addIdentityButton);
+ hp.add(policyLB);
+ }
}
Modified: public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/public/TestAccessPolicyEditor.html
===================================================================
--- public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/public/TestAccessPolicyEditor.html 2008-02-06 18:56:30 UTC (rev 31344)
+++ public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/yanel/gwt/accesspolicyeditor/public/TestAccessPolicyEditor.html 2008-02-06 19:34:01 UTC (rev 31345)
@@ -1,8 +1,14 @@
-<html>
+<?xml version="1.0"?>
+
+<html xmlns="http://www.w3.org/1999/xhtml">
<head>
- <title>Access Policy Editor</title>
+ <title>Test Access Policy Editor</title>
</head>
<body bgcolor="white">
+ <h1>Test Access Policy Editor</h1>
+<p>
<script language="javascript" src="org.wyona.yanel.gwt.accesspolicyeditor.AccessPolicyEditor.nocache.js"></script>
+</p>
+ <p>Copyright © 2008 Wyona</p>
</body>
</html>
More information about the Yanel-commits
mailing list