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@122382 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
7293907826
commit
f7b80e548a
|
@ -36,6 +36,7 @@ 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;
|
||||||
import com.sencha.gxt.widget.core.client.event.SelectEvent.SelectHandler;
|
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.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.TextField;
|
||||||
import com.sencha.gxt.widget.core.client.form.validator.RegExValidator;
|
import com.sencha.gxt.widget.core.client.form.validator.RegExValidator;
|
||||||
import com.sencha.gxt.widget.core.client.grid.ColumnConfig;
|
import com.sencha.gxt.widget.core.client.grid.ColumnConfig;
|
||||||
|
@ -54,10 +55,12 @@ import com.sencha.gxt.widget.core.client.toolbar.ToolBar;
|
||||||
*/
|
*/
|
||||||
public class ProjectInfoPanel extends ContentPanel {
|
public class ProjectInfoPanel extends ContentPanel {
|
||||||
|
|
||||||
|
private static final int LABAEL_WIDTH = 120;
|
||||||
|
private static final String DESCRIPTION_FIELD_HEIGHT = "40px";
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
private EventBus eventBus;
|
private EventBus eventBus;
|
||||||
private TextField algorithmName;
|
private TextField algorithmName;
|
||||||
private TextField algorithmDescription;
|
private TextArea algorithmDescription;
|
||||||
private ListStore<RequestedVRE> storeRequestedVRE;
|
private ListStore<RequestedVRE> storeRequestedVRE;
|
||||||
private Grid<RequestedVRE> gridRequestedVRE;
|
private Grid<RequestedVRE> gridRequestedVRE;
|
||||||
private GridRowEditing<RequestedVRE> gridRequestedVREEditing;
|
private GridRowEditing<RequestedVRE> gridRequestedVREEditing;
|
||||||
|
@ -103,13 +106,16 @@ public class ProjectInfoPanel extends ContentPanel {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
FieldLabel packageNameLabel = new FieldLabel(algorithmName, "Name");
|
FieldLabel nameLabel = new FieldLabel(algorithmName, "Name");
|
||||||
|
nameLabel.setLabelWidth(LABAEL_WIDTH);
|
||||||
|
|
||||||
algorithmDescription = new TextField();
|
algorithmDescription = new TextArea();
|
||||||
|
algorithmDescription.setHeight(DESCRIPTION_FIELD_HEIGHT);
|
||||||
algorithmDescription.setAllowBlank(false);
|
algorithmDescription.setAllowBlank(false);
|
||||||
algorithmDescription.setEmptyText("Enter description...");
|
algorithmDescription.setEmptyText("Enter description...");
|
||||||
FieldLabel projectDescriptionLabel = new FieldLabel(
|
FieldLabel descriptionLabel = new FieldLabel(
|
||||||
algorithmDescription, "Description");
|
algorithmDescription, "Description");
|
||||||
|
descriptionLabel.setLabelWidth(LABAEL_WIDTH);
|
||||||
|
|
||||||
// Grid
|
// Grid
|
||||||
RequestedVREProperties props = GWT
|
RequestedVREProperties props = GWT
|
||||||
|
@ -271,6 +277,7 @@ public class ProjectInfoPanel extends ContentPanel {
|
||||||
|
|
||||||
// /
|
// /
|
||||||
FieldLabel requestedVRELabel = new FieldLabel(null, "Requested VREs");
|
FieldLabel requestedVRELabel = new FieldLabel(null, "Requested VREs");
|
||||||
|
requestedVRELabel.setLabelWidth(LABAEL_WIDTH);
|
||||||
|
|
||||||
ToolBar toolBar = new ToolBar();
|
ToolBar toolBar = new ToolBar();
|
||||||
toolBar.add(btnAdd, new BoxLayoutData(new Margins(0)));
|
toolBar.add(btnAdd, new BoxLayoutData(new Margins(0)));
|
||||||
|
@ -279,8 +286,8 @@ public class ProjectInfoPanel extends ContentPanel {
|
||||||
vlc.setAdjustForScroll(false);
|
vlc.setAdjustForScroll(false);
|
||||||
vlc.setScrollMode(ScrollMode.NONE);
|
vlc.setScrollMode(ScrollMode.NONE);
|
||||||
|
|
||||||
vlc.add(packageNameLabel, new VerticalLayoutData(1, -1, new Margins(0)));
|
vlc.add(nameLabel, new VerticalLayoutData(1, -1, new Margins(0)));
|
||||||
vlc.add(projectDescriptionLabel, new VerticalLayoutData(1, -1,
|
vlc.add(descriptionLabel, new VerticalLayoutData(1, -1,
|
||||||
new Margins(0)));
|
new Margins(0)));
|
||||||
vlc.add(requestedVRELabel, new VerticalLayoutData(1, -1,
|
vlc.add(requestedVRELabel, new VerticalLayoutData(1, -1,
|
||||||
new Margins(0)));
|
new Margins(0)));
|
||||||
|
|
Loading…
Reference in New Issue