Minor Update
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-information-widget@99438 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
7069895801
commit
965987897a
|
@ -38,6 +38,7 @@ import com.google.gwt.i18n.client.DateTimeFormat;
|
||||||
import com.google.gwt.user.client.rpc.AsyncCallback;
|
import com.google.gwt.user.client.rpc.AsyncCallback;
|
||||||
import com.google.web.bindery.event.shared.EventBus;
|
import com.google.web.bindery.event.shared.EventBus;
|
||||||
import com.sencha.gxt.cell.core.client.ButtonCell.IconAlign;
|
import com.sencha.gxt.cell.core.client.ButtonCell.IconAlign;
|
||||||
|
import com.sencha.gxt.cell.core.client.form.ComboBoxCell.TriggerAction;
|
||||||
import com.sencha.gxt.core.client.dom.ScrollSupport.ScrollMode;
|
import com.sencha.gxt.core.client.dom.ScrollSupport.ScrollMode;
|
||||||
import com.sencha.gxt.core.client.util.Margins;
|
import com.sencha.gxt.core.client.util.Margins;
|
||||||
import com.sencha.gxt.data.client.loader.RpcProxy;
|
import com.sencha.gxt.data.client.loader.RpcProxy;
|
||||||
|
@ -65,7 +66,7 @@ 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;
|
||||||
|
|
||||||
public class TabularResourceProperties extends FramedPanel {
|
public class TabularResourceProperties extends FramedPanel {
|
||||||
private static final String LISTVIEWWIDTH="250px";
|
//private static final String LISTVIEWWIDTH="250px";
|
||||||
private DateTimeFormat sdf = DateTimeFormat.getFormat("yyyy-MM-dd");
|
private DateTimeFormat sdf = DateTimeFormat.getFormat("yyyy-MM-dd");
|
||||||
|
|
||||||
protected String headingTitle;
|
protected String headingTitle;
|
||||||
|
@ -216,7 +217,11 @@ public class TabularResourceProperties extends FramedPanel {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
comboLicences.getListView().setWidth(LISTVIEWWIDTH);
|
|
||||||
|
comboLicences.setEditable(false);
|
||||||
|
comboLicences.setTypeAhead(false);
|
||||||
|
comboLicences.setTriggerAction(TriggerAction.ALL);
|
||||||
|
|
||||||
Log.trace("Combo Licence created");
|
Log.trace("Combo Licence created");
|
||||||
|
|
||||||
// /
|
// /
|
||||||
|
@ -376,7 +381,7 @@ public class TabularResourceProperties extends FramedPanel {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
comboLicences.reset();
|
||||||
if (tabResource.getLicence() != null
|
if (tabResource.getLicence() != null
|
||||||
&& !tabResource.getLicence().isEmpty()) {
|
&& !tabResource.getLicence().isEmpty()) {
|
||||||
List<LicenceData> listLicence = storeCombo.getAll();
|
List<LicenceData> listLicence = storeCombo.getAll();
|
||||||
|
@ -388,6 +393,7 @@ public class TabularResourceProperties extends FramedPanel {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
comboLicences.getListView().clearSizeCache();
|
||||||
|
|
||||||
ownerField.setValue(tabResource.getOwner().getLogin());
|
ownerField.setValue(tabResource.getOwner().getLogin());
|
||||||
validField.setValue(tabResource.isValid());
|
validField.setValue(tabResource.isValid());
|
||||||
|
@ -583,7 +589,10 @@ public class TabularResourceProperties extends FramedPanel {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tabResource.setLicence(comboLicences.getCurrentValue().getLicence());
|
if(comboLicences.getCurrentValue()!=null&&
|
||||||
|
comboLicences.getCurrentValue().getLicence()!=null&& !comboLicences.getCurrentValue().getLicence().isEmpty()){
|
||||||
|
tabResource.setLicence(comboLicences.getCurrentValue().getLicence());
|
||||||
|
}
|
||||||
|
|
||||||
tabResource.setValid(validField.getValue());
|
tabResource.setValid(validField.getValue());
|
||||||
tabResource.setFinalized(finalizedField.getValue());
|
tabResource.setFinalized(finalizedField.getValue());
|
||||||
|
|
Loading…
Reference in New Issue