just some fix GUI-side

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/widgets/ws-task-executor-widget@167509 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2018-05-16 10:44:49 +00:00
parent 3463669a4e
commit e2bdfdc458
2 changed files with 11 additions and 4 deletions

View File

@ -23,8 +23,8 @@
<b:ControlGroup ui:field="cg_input_task_id">
<b:ControlLabel for="cl_input_task_id">The Algorithm Id</b:ControlLabel>
<b:Controls>
<b:TextBox placeholder="Type the Algorithm Identifier..."
title="This is the Algorithm Identifier..." b:id="field_task_id"
<b:TextBox placeholder="The Operator ID indexed in the DataMiner service provided by e-Infrastructure"
title="This is the Operator ID that will be executed" b:id="field_task_id"
ui:field="field_task_id" addStyleNames="my-external-input-width"></b:TextBox>
</b:Controls>
</b:ControlGroup>
@ -32,7 +32,7 @@
<b:ControlLabel for="cl_input_task_descritption">Description</b:ControlLabel>
<b:Controls>
<b:TextArea placeholder="Type the Task Description..."
title="This is the Task Description..." b:id="field_task_description"
title="Type the Task Description..." b:id="field_task_description"
ui:field="field_task_description" addStyleNames="my-external-input-width"></b:TextArea>
</b:Controls>
</b:ControlGroup>

View File

@ -64,6 +64,9 @@ public abstract class ShowTaskConfigurationsView extends Composite {
public abstract void setConfirm(boolean visible, String msg);
public static int MAX_LENGHT_TEXT = 28;
/**
* Because this class has a default constructor, it can
* be used as a binder template. In other words, it can be used in other
@ -111,7 +114,11 @@ public abstract class ShowTaskConfigurationsView extends Composite {
final TaskConfiguration taskConfiguration = listTaskConfigurations.get(i);
GWT.log("Showing: "+taskConfiguration);
//flex_table_configurations.setWidget(i+1, 0, new HTML(taskConfiguration.getConfigurationKey()));
HTML aId=new HTML(taskConfiguration.getTaskId());
String operatorID = taskConfiguration.getTaskId();
if(operatorID.length()>MAX_LENGHT_TEXT){
operatorID = "..."+operatorID.substring(operatorID.length()-MAX_LENGHT_TEXT, operatorID.length());
}
HTML aId=new HTML(operatorID);
aId.setTitle(taskConfiguration.getTaskId());
flex_table_configurations.setWidget(i+1, 0,aId);
String countParameters = taskConfiguration.getListParameters()!=null?taskConfiguration.getListParameters().size()+"":"0";