From e4840279abe33bf7c4c97db0c1de87e13f946f2c Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Wed, 20 Jan 2016 16:35:33 +0000 Subject: [PATCH] 1452: Implement a GUI for StatMan Algorithms Importer Task-Url: https://support.d4science.org/issues/1452 Updated algorithm info description field git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/statistical-algorithms-importer@122383 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../client/tools/input/ProjectInfoPanel.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/client/tools/input/ProjectInfoPanel.java b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/client/tools/input/ProjectInfoPanel.java index 6be9c63..240c508 100644 --- a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/client/tools/input/ProjectInfoPanel.java +++ b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/client/tools/input/ProjectInfoPanel.java @@ -5,8 +5,8 @@ import java.util.List; import org.gcube.portlets.user.statisticalalgorithmsimporter.client.properties.RequestedVREProperties; import org.gcube.portlets.user.statisticalalgorithmsimporter.client.resource.StatAlgoImporterResources; -import org.gcube.portlets.user.statisticalalgorithmsimporter.shared.input.RequestedVRE; import org.gcube.portlets.user.statisticalalgorithmsimporter.shared.input.ProjectInfo; +import org.gcube.portlets.user.statisticalalgorithmsimporter.shared.input.RequestedVRE; import org.gcube.portlets.user.statisticalalgorithmsimporter.shared.project.Project; import com.allen_sauer.gwt.log.client.Log; @@ -36,7 +36,6 @@ import com.sencha.gxt.widget.core.client.event.CompleteEditEvent.CompleteEditHan import com.sencha.gxt.widget.core.client.event.SelectEvent; import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler; import com.sencha.gxt.widget.core.client.form.FieldLabel; -import com.sencha.gxt.widget.core.client.form.TextArea; import com.sencha.gxt.widget.core.client.form.TextField; import com.sencha.gxt.widget.core.client.form.validator.RegExValidator; import com.sencha.gxt.widget.core.client.grid.ColumnConfig; @@ -56,11 +55,10 @@ import com.sencha.gxt.widget.core.client.toolbar.ToolBar; public class ProjectInfoPanel extends ContentPanel { private static final int LABAEL_WIDTH = 120; - private static final String DESCRIPTION_FIELD_HEIGHT = "40px"; @SuppressWarnings("unused") private EventBus eventBus; private TextField algorithmName; - private TextArea algorithmDescription; + private TextField algorithmDescription; private ListStore storeRequestedVRE; private Grid gridRequestedVRE; private GridRowEditing gridRequestedVREEditing; @@ -109,8 +107,7 @@ public class ProjectInfoPanel extends ContentPanel { FieldLabel nameLabel = new FieldLabel(algorithmName, "Name"); nameLabel.setLabelWidth(LABAEL_WIDTH); - algorithmDescription = new TextArea(); - algorithmDescription.setHeight(DESCRIPTION_FIELD_HEIGHT); + algorithmDescription = new TextField(); algorithmDescription.setAllowBlank(false); algorithmDescription.setEmptyText("Enter description..."); FieldLabel descriptionLabel = new FieldLabel(