Minor update
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-table-widget@101184 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
4425c6e384
commit
cb6d24d01a
|
@ -30,6 +30,7 @@ import com.google.gwt.core.client.GWT;
|
||||||
import com.google.gwt.core.client.Scheduler;
|
import com.google.gwt.core.client.Scheduler;
|
||||||
import com.google.gwt.core.client.Scheduler.ScheduledCommand;
|
import com.google.gwt.core.client.Scheduler.ScheduledCommand;
|
||||||
import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
|
import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
|
||||||
|
import com.google.gwt.safehtml.shared.SafeHtmlUtils;
|
||||||
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.core.client.IdentityValueProvider;
|
import com.sencha.gxt.core.client.IdentityValueProvider;
|
||||||
|
@ -115,10 +116,11 @@ public class HistoryPanel extends FramedPanel implements MonitorDialogListener {
|
||||||
@Override
|
@Override
|
||||||
public void render(Context context, OpHistory value,
|
public void render(Context context, OpHistory value,
|
||||||
SafeHtmlBuilder sb) {
|
SafeHtmlBuilder sb) {
|
||||||
sb.appendHtmlConstant("<p style='margin: 5px 5px 10px'><b>Date:</b>").appendEscaped(
|
sb.appendHtmlConstant("<p style='margin: 5px 5px 10px'><b>Date:</b>"
|
||||||
value.getDate()).appendHtmlConstant("</p>");
|
+ value.getDate() + "</p>");
|
||||||
sb.appendHtmlConstant("<p style='margin: 5px 5px 10px'><b>Description:</b>")
|
sb.appendHtmlConstant("<p style='margin: 5px 5px 10px'><b>Description:</b>"
|
||||||
.appendEscaped(value.getDescription()).appendHtmlConstant("</p>");
|
+ SafeHtmlUtils.htmlEscape(value
|
||||||
|
.getDescription()) + "</p>");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -129,8 +131,9 @@ public class HistoryPanel extends FramedPanel implements MonitorDialogListener {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void render(Context context, String value, SafeHtmlBuilder sb) {
|
public void render(Context context, String value, SafeHtmlBuilder sb) {
|
||||||
sb.appendHtmlConstant("<span title='").appendEscaped(value).appendHtmlConstant("'>").appendEscaped(value).
|
sb.appendHtmlConstant("<span title='"
|
||||||
appendHtmlConstant("</span>");
|
+ SafeHtmlUtils.htmlEscape(value) + "'>"
|
||||||
|
+ SafeHtmlUtils.htmlEscape(value) + "</span>");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -666,70 +666,6 @@ public class ValidationsTasksPanel extends FramedPanel implements
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// @SuppressWarnings("rawtypes")
|
|
||||||
// protected AbstractCell actionButton = new AbstractCell<Boolean>() {
|
|
||||||
//
|
|
||||||
// @Override
|
|
||||||
// public void render(Context context, Boolean value, SafeHtmlBuilder sb) {
|
|
||||||
//
|
|
||||||
// if (value == null) {
|
|
||||||
// sb.appendHtmlConstant("");
|
|
||||||
// } else {
|
|
||||||
// Log.debug("Context: pos=" + context.getIndex() + ", key="
|
|
||||||
// + context.getKey() + ", column=" + context.getColumn());
|
|
||||||
// String key = (String) context.getKey();
|
|
||||||
// BaseDto d = store.findModelWithKey(key);
|
|
||||||
//
|
|
||||||
// /*
|
|
||||||
// * List<BaseDto> list = ;
|
|
||||||
// * Log.debug("List: ["+list.toString()+"]"); int i = 0; BaseDto
|
|
||||||
// * d=null; for (; i < list.size(); i++) { BaseDto dt =
|
|
||||||
// * list.get(i); if (dt.getId().compareTo((String)
|
|
||||||
// * context.getKey()) == 0) { d=dt;
|
|
||||||
// * Log.debug("Retrieved: "+d+" at pos:"+i); break; } }
|
|
||||||
// */
|
|
||||||
//
|
|
||||||
// String title = "";
|
|
||||||
// if (d != null) {
|
|
||||||
// Log.debug(d.toString());
|
|
||||||
// if (d instanceof ValidationDto) {
|
|
||||||
// ValidationDto v = (ValidationDto) d;
|
|
||||||
// Log.debug("ValidationDto: [" + v.getId() + ", "
|
|
||||||
// + v.getDescription() + ", " + v.getValid()
|
|
||||||
// + ", " + v.getInvocation() + "]");
|
|
||||||
// if (v.getInvocation() != null) {
|
|
||||||
// title = v.getInvocation().toString();
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// if (value) {
|
|
||||||
//
|
|
||||||
// sb.appendHtmlConstant("<img src='"
|
|
||||||
// + ResourceBundle.INSTANCE.ok().getSafeUri()
|
|
||||||
// .asString() + "' alt='true' title='"
|
|
||||||
// + title + "'>");
|
|
||||||
//
|
|
||||||
// } else {
|
|
||||||
// sb.appendHtmlConstant("<img src='"
|
|
||||||
// + ResourceBundle.INSTANCE.exit().getSafeUri()
|
|
||||||
// .asString() + "' alt='false' title='"
|
|
||||||
// + title + "'>");
|
|
||||||
//
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// }
|
|
||||||
// };
|
|
||||||
|
|
||||||
/*
|
|
||||||
* validationButton.addSelectHandler(new SelectHandler() {
|
|
||||||
*
|
|
||||||
* @Override public void onSelect(SelectEvent event) {
|
|
||||||
* Log.debug("Button ValidationCell Pressed"); Context context =
|
|
||||||
* event.getContext(); requestSolution(context);
|
|
||||||
*
|
|
||||||
* } });
|
|
||||||
*/
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue