partially updated styles again

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/reports@69309 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2013-02-14 22:55:40 +00:00
parent 9e5b78ff67
commit 98fb9756dc
6 changed files with 22 additions and 21 deletions

View File

@ -400,7 +400,8 @@ public class TemplateComponent {
ArrayList<SerializableAttribute> values = new ArrayList<SerializableAttribute>(); ArrayList<SerializableAttribute> values = new ArrayList<SerializableAttribute>();
for (CheckBox box : att.getBoxes()) { for (CheckBox box : att.getBoxes()) {
values.add(new SerializableAttribute(box.getText().trim(), box.getValue())); values.add(new SerializableAttribute(box.getText().trim(), box.getValue()));
} }
GWT.log("Attr: " + att.getAttrName());
SerializableAttributeArea sat= new SerializableAttributeArea(att.getAttrName().trim(), values); SerializableAttributeArea sat= new SerializableAttributeArea(att.getAttrName().trim(), values);
content = sat; content = sat;
break; break;

View File

@ -276,7 +276,7 @@ public class TemplateModel {
this.templateName = toLoad.getTemplateName(); this.templateName = toLoad.getTemplateName();
this.pageWidth = toLoad.getPageWidth(); this.pageWidth = toLoad.getPageWidth();
this.pageHeight = toLoad.getPageHeight(); this.pageHeight = toLoad.getPageHeight();
this.currentPage = toLoad.getCurrPage(); this.currentPage = 1;
this.totalPages = toLoad.getTotalPages(); this.totalPages = toLoad.getTotalPages();
this.marginLeft = toLoad.getMarginLeft(); this.marginLeft = toLoad.getMarginLeft();
this.marginRight = toLoad.getMarginRight(); this.marginRight = toLoad.getMarginRight();

View File

@ -8,6 +8,7 @@ import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.Style.Unit; import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.user.client.ui.CheckBox; import com.google.gwt.user.client.ui.CheckBox;
import com.google.gwt.user.client.ui.Composite; import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.HTML; import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HasHorizontalAlignment; import com.google.gwt.user.client.ui.HasHorizontalAlignment;
import com.google.gwt.user.client.ui.HasVerticalAlignment; import com.google.gwt.user.client.ui.HasVerticalAlignment;
@ -21,7 +22,7 @@ import com.google.gwt.user.client.ui.HorizontalPanel;
public class AttributeArea extends Composite { public class AttributeArea extends Composite {
private HorizontalPanel myPanel; private HorizontalPanel myPanel;
private HTML attrName; private String attrName;
private CheckBox[] boxes; private CheckBox[] boxes;
/** /**
@ -34,10 +35,11 @@ public class AttributeArea extends Composite {
myPanel.setPixelSize(width, 20); myPanel.setPixelSize(width, 20);
myPanel.addStyleName("attributeArea"); myPanel.addStyleName("attributeArea");
attrName = new HTML(getAttributeName(textToDisplay)); attrName = getAttributeName(textToDisplay);
attrName.getElement().getStyle().setMarginRight(5, Unit.PX); HTML attrNameLabel = new HTML(attrName+":");
HorizontalPanel boxesPanel = new HorizontalPanel(); attrNameLabel.getElement().getStyle().setMarginRight(5, Unit.PX);
boxesPanel.add(attrName); FlowPanel boxesPanel = new FlowPanel();
boxesPanel.add(attrNameLabel);
myPanel.add(boxesPanel); myPanel.add(boxesPanel);
myPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT); myPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
boxes = getCheckboxes(textToDisplay); boxes = getCheckboxes(textToDisplay);
@ -56,10 +58,11 @@ public class AttributeArea extends Composite {
myPanel.setPixelSize(width, 20); myPanel.setPixelSize(width, 20);
myPanel.addStyleName("attributeArea"); myPanel.addStyleName("attributeArea");
attrName = new HTML(sata.getAttrName(), true); attrName = sata.getAttrName();
attrName.getElement().getStyle().setMarginRight(5, Unit.PX); HTML attrNameLabel = new HTML(attrName+":");
HorizontalPanel boxesPanel = new HorizontalPanel(); attrNameLabel.getElement().getStyle().setMarginRight(5, Unit.PX);
boxesPanel.add(attrName); FlowPanel boxesPanel = new FlowPanel();
boxesPanel.add(attrNameLabel);
myPanel.add(boxesPanel); myPanel.add(boxesPanel);
myPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT); myPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
int values = sata.getValues().size(); int values = sata.getValues().size();
@ -132,7 +135,7 @@ public class AttributeArea extends Composite {
* @return * @return
*/ */
public String getAttrName() { public String getAttrName() {
return attrName.getText(); return attrName;
} }

View File

@ -10,7 +10,7 @@
<inherits name='org.gcube.portlets.user.guidedtour.GuidedTour' /> <inherits name='org.gcube.portlets.user.guidedtour.GuidedTour' />
<!-- To Comment out --> <!-- To Comment out -->
<set-property name="user.agent" value="gecko1_8" /> <!-- <set-property name="user.agent" value="gecko1_8" /> -->
<inherits name='org.gcube.portlets.user.workspace.lighttree.WorkspacePortletLightTree' /> <inherits name='org.gcube.portlets.user.workspace.lighttree.WorkspacePortletLightTree' />

View File

@ -197,7 +197,7 @@ tableBorder td {
border: none; border: none;
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 12px; font-size: 12px;
color: Blue; color: #336699;
} }
.attributeValue { .attributeValue {
@ -212,7 +212,7 @@ tableBorder td {
font-family: "Courier New", Courier, monospace; font-family: "Courier New", Courier, monospace;
font-size: 11px; font-size: 11px;
color: #666; color: #666;
padding: 3px 0px; padding: 3px 25px 0px 0px;
} }
.gridAttribute { .gridAttribute {
@ -274,7 +274,7 @@ tableBorder td {
.heading2-label { .heading2-label {
font-size: 11pt; font-size: 11pt;
padding-left: 4px; padding-left: 0px;
} }
.heading3 { .heading3 {
@ -284,7 +284,7 @@ tableBorder td {
.heading3-label{ .heading3-label{
font-size: 10pt; font-size: 10pt;
padding-left: 4px; padding-left: 2px;
} }
.heading4 { .heading4 {
@ -506,10 +506,7 @@ gwt-MenuBar {
} }
.hasRichTextToolbar { .hasRichTextToolbar {
background-color: #FFFFFF;
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 12px;
border: 1px inset #3366CC;
} }
.gwt-RichTextToolbar { .gwt-RichTextToolbar {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB