|
|
|
@ -12,6 +12,7 @@ import org.gcube.portlets.user.workspace.shared.accounting.GxtAccountingField;
|
|
|
|
|
|
|
|
|
|
import com.extjs.gxt.ui.client.Style.ButtonScale;
|
|
|
|
|
import com.extjs.gxt.ui.client.Style.HorizontalAlignment;
|
|
|
|
|
import com.extjs.gxt.ui.client.data.BaseModel;
|
|
|
|
|
import com.extjs.gxt.ui.client.data.BaseModelData;
|
|
|
|
|
import com.extjs.gxt.ui.client.data.ModelData;
|
|
|
|
|
import com.extjs.gxt.ui.client.event.ButtonEvent;
|
|
|
|
@ -128,7 +129,7 @@ public class AccoutingInfoContainer extends LayoutContainer {
|
|
|
|
|
|
|
|
|
|
List<ColumnConfig> columns = new ArrayList<ColumnConfig>();
|
|
|
|
|
|
|
|
|
|
ColumnConfig icon = createSortableColumnConfig("Type", "", 20);
|
|
|
|
|
ColumnConfig icon = createSortableColumnConfig("Type", "", 35);
|
|
|
|
|
columns.add(icon);
|
|
|
|
|
|
|
|
|
|
icon.setRenderer(new GridCellRenderer<ModelData>() {
|
|
|
|
@ -183,7 +184,7 @@ public class AccoutingInfoContainer extends LayoutContainer {
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
ColumnConfig descr = createSortableColumnConfig(DESCRIPTION, DESCRIPTION, 230);
|
|
|
|
|
ColumnConfig descr = createSortableColumnConfig(DESCRIPTION, DESCRIPTION, 220);
|
|
|
|
|
columns.add(descr);
|
|
|
|
|
|
|
|
|
|
descr.setRenderer(new GridCellRenderer<ModelData>() {
|
|
|
|
@ -191,14 +192,16 @@ public class AccoutingInfoContainer extends LayoutContainer {
|
|
|
|
|
public Object render(ModelData model, String property,
|
|
|
|
|
ColumnData config, int rowIndex, int colIndex,
|
|
|
|
|
ListStore<ModelData> store, Grid<ModelData> grid) {
|
|
|
|
|
// if(model.get(OPERATION).equals(GxtAccountingEntryType.READ))
|
|
|
|
|
// return "<b><p style=\"color: red;\">"
|
|
|
|
|
// + model.get(DESCRIPTION)+ "</p></b>";
|
|
|
|
|
return model.get(DESCRIPTION);
|
|
|
|
|
String thevalue = model.get(DESCRIPTION);
|
|
|
|
|
//I'm adding the tooltip
|
|
|
|
|
if(thevalue==null)
|
|
|
|
|
return "";
|
|
|
|
|
|
|
|
|
|
return "<span title='" + thevalue + "' style='white-space:pre-line;'>" + thevalue + "</span>";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ColumnConfig oper = createSortableColumnConfig(OPERATION_NAME, OPERATION, 70);
|
|
|
|
|
columns.add(oper);
|
|
|
|
|
|
|
|
|
@ -207,7 +210,7 @@ public class AccoutingInfoContainer extends LayoutContainer {
|
|
|
|
|
|
|
|
|
|
ColumnConfig date = createSortableColumnConfig(DATE, DATE, 140);
|
|
|
|
|
columns.add(date);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cm = new ColumnModel(columns);
|
|
|
|
|
|
|
|
|
|
final ColumnModel columnModel = cm;
|
|
|
|
|