You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@juddi.apache.org by ks...@apache.org on 2009/09/27 19:18:04 UTC
svn commit: r819350 - in /webservices/juddi/trunk/juddi-console:
juddi-portal/pluto/
uddi-portlets/src/main/java/org/apache/juddi/portlets/client/
uddi-portlets/src/main/java/org/apache/juddi/portlets/public/
Author: kstam
Date: Sun Sep 27 17:18:04 2009
New Revision: 819350
URL: http://svn.apache.org/viewvc?rev=819350&view=rev
Log:
JUDDI-262 Fixing up layout
Modified:
webservices/juddi/trunk/juddi-console/juddi-portal/pluto/portlet-spec-1.0.css
webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/DetailPanel.java
webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/JUDDIPublisher.java
webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/PublisherListPanel.java
webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/PublisherPanel.java
webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/SubscriptionPanel.java
webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/public/uddiportlets.css
Modified: webservices/juddi/trunk/juddi-console/juddi-portal/pluto/portlet-spec-1.0.css
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-console/juddi-portal/pluto/portlet-spec-1.0.css?rev=819350&r1=819349&r2=819350&view=diff
==============================================================================
--- webservices/juddi/trunk/juddi-console/juddi-portal/pluto/portlet-spec-1.0.css (original)
+++ webservices/juddi/trunk/juddi-console/juddi-portal/pluto/portlet-spec-1.0.css Sun Sep 27 17:18:04 2009
@@ -187,8 +187,6 @@
font-family: Arial,Helvetica,sans-serif;
font-style: normal;
font-weight: normal;
- background-color:#FF9;
- border:1px solid #ababab;
font-size: 10pt;
color: 333;
}
@@ -221,6 +219,18 @@
color: black;
}
+.portlet-form-field-label-right {
+ font-family: Arial,Helvetica,sans-serif;
+ font-style: normal;
+ font-weight: bold;
+ font-size: 10pt;
+ color: black;
+ float:right;
+ padding-left:25px;
+ white-space:nowrap;
+
+}
+
/* Text for a field (not input field, e.g. checkboxes, etc) */
.portlet-form-field {
Modified: webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/DetailPanel.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/DetailPanel.java?rev=819350&r1=819349&r2=819350&view=diff
==============================================================================
--- webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/DetailPanel.java (original)
+++ webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/DetailPanel.java Sun Sep 27 17:18:04 2009
@@ -77,8 +77,8 @@
//table.setBorderWidth(1);
//table.setStyleName("portlet-form-field-label");
int row = 0;
- table.setTitle("business");
table.getFlexCellFormatter().setColSpan(row, 0, 2);
+ table.setTitle("business");
table.setText(row++, 0, "business");
table.setHTML(row, 0, UDDIBrowser.images.business().getHTML());
table.setText(row++, 1, business.getName());
@@ -109,13 +109,16 @@
Service service = response.getService();
if (table!=null) detailPanel.remove(table);
table = new FlexTable();
+ table.setWidth("100%");
+ table.setCellSpacing(0);
+ table.setBorderWidth(0);
detailPanel.add(table);
table.addTableListener(detailPanel);
//table.setBorderWidth(1);
- table.setStyleName("portlet-form-field-label");
+ //table.setStyleName("portlet-form-field-label");
int row = 0;
- table.setTitle("service");
table.getFlexCellFormatter().setColSpan(row, 0, 2);
+ table.setTitle("service");
table.setHTML(row++, 0, UDDIBrowser.images.service().getHTML() + " service - " + service.getName());
table.setHTML(row, 0, UDDIBrowser.images.key().getHTML());
table.setText(row++, 1, service.getKey());
Modified: webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/JUDDIPublisher.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/JUDDIPublisher.java?rev=819350&r1=819349&r2=819350&view=diff
==============================================================================
--- webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/JUDDIPublisher.java (original)
+++ webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/JUDDIPublisher.java Sun Sep 27 17:18:04 2009
@@ -46,6 +46,7 @@
public void onModuleLoad() {
singleton = this;
+ dockPanel.setWidth("100%");
dockPanel.setSpacing(8);
menuBar.setVisible(false);
menuBar.setHeight("20px");
@@ -55,6 +56,7 @@
dockPanel.add(loginPanel,DockPanel.WEST);
publisherListPanel.setVisible(false);
+ publisherListPanel.setWidth("100%");
dockPanel.add(publisherListPanel,DockPanel.CENTER);
RootPanel.get("publisher").add(dockPanel);
@@ -78,6 +80,8 @@
public void displayPublisher(Publisher publisher) {
if (publisherPanel!=null ) dockPanel.remove(publisherPanel);
publisherPanel = new PublisherPanel(publisher);
+ publisherPanel.setWidth("100%");
+ publisherPanel.setStyleName("detail-panel");
dockPanel.add(publisherPanel,DockPanel.EAST);
String token = loginPanel.getToken();
String publisherId = loginPanel.getPublisherId();
@@ -111,6 +115,8 @@
public void newPublisher() {
if (publisherPanel!=null ) dockPanel.remove(publisherPanel);
publisherPanel = new PublisherPanel(null);
+ publisherPanel.setWidth("100%");
+ publisherPanel.setStyleName("detail-panel");
dockPanel.add(publisherPanel,DockPanel.EAST);
publisherListPanel.selectRow(0);
}
Modified: webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/PublisherListPanel.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/PublisherListPanel.java?rev=819350&r1=819349&r2=819350&view=diff
==============================================================================
--- webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/PublisherListPanel.java (original)
+++ webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/PublisherListPanel.java Sun Sep 27 17:18:04 2009
@@ -42,10 +42,15 @@
}
private void initTable() {
+
+ for (int row=0; row<table.getRowCount(); row++) {
+ table.removeRow(row);
+ }
// Create the header row.
table.setText(0, 0, "Publisher Id");
table.setText(0, 1, "Publisher Name");
table.getRowFormatter().setStyleName(0, "ListHeader");
+
// Initialize the rest of the rows.
for (int i = 0; i < VISIBLE_PUBLISHER_COUNT; ++i) {
Modified: webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/PublisherPanel.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/PublisherPanel.java?rev=819350&r1=819349&r2=819350&view=diff
==============================================================================
--- webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/PublisherPanel.java (original)
+++ webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/PublisherPanel.java Sun Sep 27 17:18:04 2009
@@ -41,63 +41,63 @@
add(flexTable);
Label id = new Label ("Id:");
- id.setStyleName("portlet-form-field-label");
+ id.setStyleName("portlet-form-field-label-right");
flexTable.setWidget(0, 0, id);
idBox.setText(this.publisher.getAuthorizedName());
idBox.setStyleName("portlet-form-input-field");
flexTable.setWidget(0, 1, idBox);
Label name = new Label ("Name:");
- name.setStyleName("portlet-form-field-label");
+ name.setStyleName("portlet-form-field-label-right");
flexTable.setWidget(1, 0, name);
nameBox.setText(this.publisher.getPublisherName());
nameBox.setStyleName("portlet-form-input-field");
flexTable.setWidget(1, 1,nameBox);
Label email = new Label ("Email:");
- email.setStyleName("portlet-form-field-label");
+ email.setStyleName("portlet-form-field-label-right");
flexTable.setWidget(2, 0,email);
emailAddressBox.setText(this.publisher.getEmailAddress());
emailAddressBox.setStyleName("portlet-form-input-field");
flexTable.setWidget(2, 1,emailAddressBox);
Label isAdmin = new Label ("Is Admin:");
- isAdmin.setStyleName("portlet-form-field-label");
+ isAdmin.setStyleName("portlet-form-field-label-right");
flexTable.setWidget(3, 0,isAdmin);
isAdminBox.setChecked("true".equalsIgnoreCase(this.publisher.getIsAdmin()));
isAdminBox.setStyleName("portlet-form-input-field");
flexTable.setWidget(3, 1,isAdminBox);
Label isEnabled = new Label ("Is Enabled:");
- isEnabled.setStyleName("portlet-form-field-label");
+ isEnabled.setStyleName("portlet-form-field-label-right");
flexTable.setWidget(4, 0,isEnabled);
isEnabledBox.setChecked("true".equalsIgnoreCase(this.publisher.getIsEnabled()));
isEnabledBox.setStyleName("portlet-form-input-field");
flexTable.setWidget(4, 1,isEnabledBox);
Label maxBusinesses = new Label ("MaxBusinesses:");
- maxBusinesses.setStyleName("portlet-form-field-label");
+ maxBusinesses.setStyleName("portlet-form-field-label-right");
flexTable.setWidget(5, 0,maxBusinesses);
maxBusinessesBox.setText(String.valueOf(this.publisher.getMaxBusinesses()));
maxBusinessesBox.setStyleName("portlet-form-input-field");
flexTable.setWidget(5, 1,maxBusinessesBox);
Label maxServicesPerBusiness = new Label ("MaxServicePerBusiness:");
- maxServicesPerBusiness.setStyleName("portlet-form-field-label");
+ maxServicesPerBusiness.setStyleName("portlet-form-field-label-right");
flexTable.setWidget(6, 0,maxServicesPerBusiness);
maxServicesPerBusinessBox.setText(String.valueOf(this.publisher.getMaxServicePerBusiness()));
maxServicesPerBusinessBox.setStyleName("portlet-form-input-field");
flexTable.setWidget(6, 1,maxServicesPerBusinessBox);
Label maxBindingsPerService = new Label ("MaxBindingsPerService:");
- maxBindingsPerService.setStyleName("portlet-form-field-label");
+ maxBindingsPerService.setStyleName("portlet-form-field-label-right");
flexTable.setWidget(7, 0,maxBindingsPerService);
maxBindingsPerServiceBox.setText(String.valueOf(this.publisher.getMaxBindingsPerService()));
maxBindingsPerServiceBox.setStyleName("portlet-form-input-field");
flexTable.setWidget(7, 1,maxBindingsPerServiceBox);
Label maxTModels = new Label ("MaxTModels:");
- maxTModels.setStyleName("portlet-form-field-label");
+ maxTModels.setStyleName("portlet-form-field-label-right");
flexTable.setWidget(8, 0,maxTModels);
maxTModelBox.setText(String.valueOf(this.publisher.getMaxTModels()));
maxTModelBox.setStyleName("portlet-form-input-field");
Modified: webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/SubscriptionPanel.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/SubscriptionPanel.java?rev=819350&r1=819349&r2=819350&view=diff
==============================================================================
--- webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/SubscriptionPanel.java (original)
+++ webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/SubscriptionPanel.java Sun Sep 27 17:18:04 2009
@@ -39,49 +39,49 @@
add(flexTable);
Label id = new Label ("Binding Key:");
- id.setStyleName("portlet-form-field-label");
+ id.setStyleName("portlet-form-field-label-right");
flexTable.setWidget(0, 0, id);
bindingKeyBox.setText(this.subscription.getBindingKey());
bindingKeyBox.setStyleName("portlet-form-input-field");
flexTable.setWidget(0, 1, bindingKeyBox);
Label isBrief = new Label ("Is Brief:");
- isBrief.setStyleName("portlet-form-field-label");
+ isBrief.setStyleName("portlet-form-field-label-right");
flexTable.setWidget(1, 0,isBrief);
isBriefBox.setChecked(this.subscription.getBrief());
isBriefBox.setStyleName("portlet-form-input-field");
flexTable.setWidget(1, 1,isBriefBox);
Label expiresAfter = new Label ("Expires After:");
- expiresAfter.setStyleName("portlet-form-field-label");
+ expiresAfter.setStyleName("portlet-form-field-label-right");
flexTable.setWidget(2, 0, expiresAfter);
expiresAfterBox.setText(this.subscription.getExpiresAfter());
expiresAfterBox.setStyleName("portlet-form-input-field");
flexTable.setWidget(2, 1,expiresAfterBox);
Label maxEntities = new Label ("Max Entities:");
- maxEntities.setStyleName("portlet-form-field-label");
+ maxEntities.setStyleName("portlet-form-field-label-right");
flexTable.setWidget(3, 0, maxEntities);
maxEntitiesBox.setText(String.valueOf(this.subscription.getMaxEntities()));
maxEntitiesBox.setStyleName("portlet-form-input-field");
flexTable.setWidget(3, 1,maxEntitiesBox);
Label notificationInterval = new Label ("Notification Interval:");
- notificationInterval.setStyleName("portlet-form-field-label");
+ notificationInterval.setStyleName("portlet-form-field-label-right");
flexTable.setWidget(4, 0, notificationInterval);
notificationIntervalBox.setText(String.valueOf(this.subscription.getNotificationInterval()));
notificationIntervalBox.setStyleName("portlet-form-input-field");
flexTable.setWidget(4, 1,notificationIntervalBox);
Label subscriptionKey = new Label ("Subscription Key:");
- subscriptionKey.setStyleName("portlet-form-field-label");
+ subscriptionKey.setStyleName("portlet-form-field-label-right");
flexTable.setWidget(5, 0, subscriptionKey);
subscriptionKeyBox.setText(String.valueOf(this.subscription.getSubscriptionKey()));
subscriptionKeyBox.setStyleName("portlet-form-input-field");
flexTable.setWidget(5, 1,subscriptionKeyBox);
Label subscriptionFilter = new Label ("Search Filter:");
- subscriptionFilter.setStyleName("portlet-form-field-label");
+ subscriptionFilter.setStyleName("portlet-form-field-label-right");
flexTable.setWidget(6, 0, subscriptionFilter);
subscriptionFilterBox.setText(String.valueOf(this.subscription.getSubscriptionFilter()));
subscriptionFilterBox.setStyleName("portlet-form-input-field");
Modified: webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/public/uddiportlets.css
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/public/uddiportlets.css?rev=819350&r1=819349&r2=819350&view=diff
==============================================================================
--- webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/public/uddiportlets.css (original)
+++ webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/public/uddiportlets.css Sun Sep 27 17:18:04 2009
@@ -51,16 +51,14 @@
border-top: 1px solid #666;
border-bottom: 1px solid #666;
border-left: 1px solid #666;
- border-right: 1px solid #666;
border-bottom: 1px solid #666;
- font-size: 80%;
cursor: pointer;
cursor: hand;
}
.List td {
border-top: 1px solid #fff;
- border-bottom: 1px solid #fff;
+ border-bottom: 1px solid #000;
padding: 2px 0 2px 10px;
}
@@ -81,4 +79,11 @@
.SelectedRow {
background: #eee;
+}
+
+.detail-panel {
+ background: #eee;
+ border:1px solid #000000; padding:5px
+ margin-right:10px;
+ padding-top:10px;
}
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: juddi-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: juddi-cvs-help@ws.apache.org