[Yanel-commits] rev 32965 - in
public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor:
client public
michi at wyona.com
michi at wyona.com
Wed Mar 5 23:04:48 CET 2008
Author: michi
Date: 2008-03-05 23:04:47 +0100 (Wed, 05 Mar 2008)
New Revision: 32965
Added:
public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/public/style.css
Modified:
public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/client/AccessPolicyEditor.java
public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/public/TestAccessPolicyEditor.html
Log:
style added
Modified: public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/client/AccessPolicyEditor.java
===================================================================
--- public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/client/AccessPolicyEditor.java 2008-03-05 20:30:25 UTC (rev 32964)
+++ public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/client/AccessPolicyEditor.java 2008-03-05 22:04:47 UTC (rev 32965)
@@ -24,6 +24,7 @@
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.HorizontalPanel;
+import com.google.gwt.user.client.ui.HasVerticalAlignment;
import com.google.gwt.user.client.ui.ListBox;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.TextBox;
@@ -85,12 +86,18 @@
searchFilterVP.add(new Button("Search within Identities"));
HorizontalPanel hp = new HorizontalPanel();
+ hp.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
vp.add(hp);
- //vp.add(new Button("Apply Policy"));
+
+ HorizontalPanel buttonHP = new HorizontalPanel();
+ vp.add(buttonHP);
+ //buttonHP.add(new Button("Apply Policy"));
+
// Save Button
final String savePolicyUrl = savePolicyURL;
- Button saveButton = new Button("Save Policy and Exit", new ClickListener() {
+ //Button saveButton = new Button("Save Policy and Exit", new ClickListener() {
+ Button saveButton = new Button("Save Policy", new ClickListener() {
public void onClick(Widget sender) {
final AsynchronousPolicySetter aps = new AsynchronousPolicySetter(savePolicyUrl);
try {
@@ -100,7 +107,8 @@
}
}
});
- vp.add(saveButton);
+ saveButton.setStyleName("gwt-wyona-SaveButton");
+ buttonHP.add(saveButton);
// Cancel Button
final String cancelUrl = cancelURL;
@@ -113,7 +121,8 @@
$wnd.location.href=url;
}-*/;
});
- vp.add(cancelButton);
+ saveButton.setStyleName("gwt-wyona-CancelButton");
+ buttonHP.add(cancelButton);
identitiesLBW = new IdentitiesListBoxWidget(visibleItemCount, users, groups);
Modified: public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/public/TestAccessPolicyEditor.html
===================================================================
--- public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/public/TestAccessPolicyEditor.html 2008-03-05 20:30:25 UTC (rev 32964)
+++ public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/public/TestAccessPolicyEditor.html 2008-03-05 22:04:47 UTC (rev 32965)
@@ -3,6 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Test Access Policy Editor</title>
+ <link rel="stylesheet" href="style.css" type="text/css"/>
</head>
<body bgcolor="white">
<h1>Test Access Policy Editor</h1>
Added: public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/public/style.css
===================================================================
--- public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/public/style.css (rev 0)
+++ public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/public/style.css 2008-03-05 22:04:47 UTC (rev 32965)
@@ -0,0 +1,26 @@
+/* Generic style */
+
+/* */
+/*
+.gwt-Button {
+ font-size: 150%;
+}
+*/
+
+/* Custom style */
+
+/* */
+/*
+.gwt-wyona-SaveButton {
+ font-size: 300%;
+ width: 200px;
+}
+*/
+
+/* */
+/*
+.gwt-wyona-CanelButton {
+ font-size: 300%;
+ width: 200px;
+}
+*/
More information about the Yanel-commits
mailing list