Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-widget-common-event@90895 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-02-05 09:16:53 +00:00
parent 1f07f2665c
commit 55785b98be
2 changed files with 13 additions and 25 deletions

View File

@ -8,33 +8,27 @@ package org.gcube.portlets.user.td.widgetcommonevent.shared;
* Operations that can be launched from the grid menu
*/
public enum GridHeaderOperationId {
RemoveColumn("1004"),
ChangeLabel("1005"),
AddLabel("1006"),
RemoveLabel("1007"),
ChangeToType("2000"),
ModifyColumnValueOnCondition("3001"),
NewAnnotationColumn("3002"),
Filter("3003"),
ColumnDuplicateValidation("5004");
COLUMNLABEL("4"),
COLUMNADD("5"),
COLUMNDELETE("6"),
COLUMNTYPE("7"),
COLUMNFILTER("8"),
COLUMNEDIT("9"),
ANNOTATIONADD("10"),
DUPLICATEDETECTION("11");
/**
* Create OperationId
* @param text
*/
private GridHeaderOperationId (final String id) {
private GridHeaderOperationId(final String id) {
this.id = id;
}
private final String id;
/**
* Return operation number
*/
@Override
public String toString() {
return id;
}
}

View File

@ -1,28 +1,22 @@
package org.gcube.portlets.user.td.widgetcommonevent.shared;
public enum GridOperationId {
EditRow("1"),
DeleteRow("2"),
AddRow("3");
ROWADD("1"),
ROWEDIT("2"),
ROWDELETE("3");
/**
* Create OperationId
* @param text
*/
private GridOperationId (final String id) {
private GridOperationId(final String id) {
this.id = id;
}
private final String id;
/**
* Return operation number
*/
@Override
public String toString() {
return id;
}
}