Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-widgetx@93390 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-03-20 16:04:18 +00:00 committed by Giancarlo Panichi
parent e387c20b03
commit 62c5c74dd8
3 changed files with 10 additions and 6 deletions

View File

@ -59,11 +59,8 @@ import com.sencha.gxt.widget.core.client.event.HeaderContextMenuEvent.HeaderCont
import com.sencha.gxt.widget.core.client.grid.ColumnConfig;
import com.sencha.gxt.widget.core.client.grid.ColumnModel;
import com.sencha.gxt.widget.core.client.grid.Grid;
import com.sencha.gxt.widget.core.client.grid.Grid.GridCell;
import com.sencha.gxt.widget.core.client.grid.LiveGridView;
import com.sencha.gxt.widget.core.client.grid.LiveToolItem;
import com.sencha.gxt.widget.core.client.grid.editing.ClicksToEdit;
import com.sencha.gxt.widget.core.client.grid.editing.GridInlineEditing;
import com.sencha.gxt.widget.core.client.menu.Item;
import com.sencha.gxt.widget.core.client.menu.Menu;
import com.sencha.gxt.widget.core.client.menu.MenuItem;

View File

@ -11,6 +11,8 @@ import org.gcube.portlets.user.tdwx.shared.model.ColumnType;
import org.gcube.portlets.user.tdwx.shared.model.DataRow;
import com.google.gwt.cell.client.AbstractCell;
import com.google.gwt.safecss.shared.SafeStyles;
import com.google.gwt.safecss.shared.SafeStylesBuilder;
import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
import com.sencha.gxt.widget.core.client.form.CheckBox;
import com.sencha.gxt.widget.core.client.form.DateField;
@ -18,9 +20,7 @@ import com.sencha.gxt.widget.core.client.form.NumberField;
import com.sencha.gxt.widget.core.client.form.NumberPropertyEditor;
import com.sencha.gxt.widget.core.client.form.TextField;
import com.sencha.gxt.widget.core.client.grid.ColumnConfig;
import com.sencha.gxt.widget.core.client.grid.editing.AbstractGridEditing;
import com.sencha.gxt.widget.core.client.grid.editing.GridInlineEditing;
import com.sencha.gxt.widget.core.client.grid.editing.GridRowEditing;
/**
*
@ -91,7 +91,13 @@ public class ColumnConfigGenerator {
return null;
}
if (columnDefinition.getType() == ColumnType.VIEWCOLUMN) {
SafeStyles safeStyle=columnConfig.getColumnStyle();
SafeStylesBuilder ssb=new SafeStylesBuilder();
ssb.append(safeStyle);
ssb.trustedBackgroundColor("#c3e1fc");
columnConfig.setColumnStyle(ssb.toSafeStyles());
}
columnConfig.setHidden(!columnDefinition.isVisible());
SafeHtmlBuilder tooltipMessage = new SafeHtmlBuilder();

View File

@ -16,5 +16,6 @@ public enum ColumnType {
COLUMNID,
DIMENSION,
TIMEDIMENSION,
VIEWCOLUMN,
SYSTEM;
}