ReplayData replayData = getReplayDBData();
if (null != replayData) {
makeReplayEditData(replayModifyDataList, replayData);
- // removeNotExistMouseUpTimeItem(replayModifyDataList);
- // setRemoveDBIndex(replayModifyDataList);
- // sortTableItem(replayModifyDataList);
}
-
- // removeWrongData(replayModifyDataList);
}
return replayModifyDataList;
}
- // private void removeWrongData(List<ReplayEditTableData> listData) {
- // List<ReplayEditTableData> removeList = new
- // ArrayList<ReplayEditTableData>();
- // for (int i = 0; i < listData.size(); i++) {
- // if (listData.get(i).getLongEventMouseDownTime() > listData.get(i)
- // .getLongEventMouseUpTime()) {
- // removeList.add(listData.get(i));
- // }
- // if (i > 0) {
- // if (listData.get(i - 1).getLongEventMouseDownTime() == listData
- // .get(i).getLongEventMouseDownTime()
- // && listData.get(i - 1).getLongEventMouseUpTime() == listData
- // .get(i).getLongEventMouseUpTime()) {
- // removeList.add(listData.get(i));
- // }
- // }
- // }
- // listData.removeAll(removeList);
- // }
-
- // private void removeNotExistMouseUpTimeItem(
- // List<ReplayEditTableData> listData) {
- // for (int i = 0; i < listData.size(); i++) {
- // if (listData.get(i).getStrEventMouseUpTime().length() < 1) {
- // listData.remove(i);
- // }
- // }
- // }
- //
- // private void sortTableItem(List<ReplayEditTableData> listData) {
- // Collections.sort(listData, new ReplayEditTableItemListSortComparator());
- // }
-
private ReplayEditTableData getLastReplayEditTableData() {
- if(getReplayModifyData().size() > 0 ){
+ if (getReplayModifyData().size() > 0) {
return getReplayModifyData().get(getReplayModifyData().size() - 1);
}
return null;
}
}
- // private void setRemoveDBIndex(List<ReplayEditTableData> listData) {
- // int nSize = listData.size();
- // for (int i = 0; i < nSize; i++) {
- // int rid = listData.get(i).getEventRid();
- // if (rid > -1) {
- // if (listData.get(i).getStrEventType()
- // .equals(ReplayEditLabels.CONTEXT_TOUCH)) {
- // for (int j = rid; j < rid + 7; j++) {
- // removeDBIndex.add(j);
- // }
- // } else if (listData.get(i).getStrEventType()
- // .equals(ReplayEditLabels.CONTEXT_KEY)) {
- // for (int j = rid; j < rid + 4; j++) {
- // removeDBIndex.add(j);
- // }
- // }
- //
- // }
- //
- // }
- // }
-
private boolean isEventMouseUpTime(RecordEventObject reo) {
boolean isEventMouseUpTime = false;
switch (reo.getEventType()) {
break;
}
default: {
-
+ break;
}
}
return isEventMouseUpTime;
}
private void updateEventMouseUpTime(long time) {
- if(null != getLastReplayEditTableData()){
+ if (null != getLastReplayEditTableData()) {
getLastReplayEditTableData().setEventMouseUpTime(time);
}
}
case TOUCH: {
if (reo.getEventCode() == TOUCH_EVENT_CODE_MOUSED_DOWN_START
&& reo.getEventValue() != -1) {
- // if (isDrawEvnet()) {
- // return null;
- // }
-
replayType = new ReplayEditTableData();
replayType.setEventMouseDownTime(reo.getTime());
replayType.setStrEventType(setEventType(reo.getEventType()));
replayType.setEventRid(reo.getId());
} else if (reo.getEventCode() == TOUCH_EVENT_CODE_X) {
if (getReplayModifyData().size() > 0) {
- getReplayModifyData()
- .get(getReplayModifyData().size() - 1)
- .setStrEventValue1(
- ReplayEditLabels.CONTEXT_VALUE_X
- + Integer.toString(reo.getEventValue()));
+ getReplayModifyData().get(getReplayModifyData().size() - 1)
+ .setStrEventValue1(
+ ReplayEditLabels.CONTEXT_VALUE_X
+ + Integer.toString(reo
+ .getEventValue()));
}
} else if (reo.getEventCode() == TOUCH_EVENT_CODE_Y) {
if (getReplayModifyData().size() > 0) {
return strType;
}
- // private boolean isDrawEvnet() {
- // if (getReplayModifyData().size() < 1) {
- // return false;
- // }
- // boolean isDrawEvnet = false;
- // if (getLastReplayEditTableData().getStrEventMouseUpTime().equals(
- // CommonConstants.EMPTY)) {
- // getLastReplayEditTableData().setStrEventType(
- // ReplayEditLabels.CONTEXT_DRAG);
- // getLastReplayEditTableData().setModifiabilityEvent(false);
- // getLastReplayEditTableData().setEventRid(-1);
- // isDrawEvnet = true;
- // }
- // return isDrawEvnet;
- // }
-
public void saveDialog() {
SqlManager.getInstance().closeConnection();
Shell shell = AnalyzerUtil.getWorkbenchWindow().getShell();
import java.util.List;
import org.eclipse.nebula.widgets.grid.GridColumn;
+import org.eclipse.nebula.widgets.grid.GridEditor;
import org.eclipse.nebula.widgets.grid.GridItem;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Point;
import org.tizen.dynamicanalyzer.nl.ReplayEditLabels;
import org.tizen.dynamicanalyzer.resources.FontResources;
import org.tizen.dynamicanalyzer.resources.ImageResources;
+import org.tizen.dynamicanalyzer.ui.widgets.DAText;
import org.tizen.dynamicanalyzer.ui.widgets.table.DATableComposite;
import org.tizen.dynamicanalyzer.ui.widgets.table.DATableHeaderRenderer;
import org.tizen.dynamicanalyzer.widgets.popupMenu.DAPopupMenu;
public class ReplayEditTable extends DATableComposite {
private String[] columnNames = null;
- // private final int tableTextOptionColumnIndex = 6;
protected DAPopupMenu eventTypePopupMenu = null;
protected DAPopupMenu eventKeyPopupMenu = null;
private int mouseSelectedColumnIndex = -1;
private int mouseSelectedPreColunmEndX = -1;
- private final int SEQ_TABLE_INDEX = 0;
- private final int DOWN_TIME_TABLE_INDEX = 1;
- private final int UP_TIME_TABLE_INDEX = 2;
- private final int OPTION_TIME_TABLE_INDEX = 6;
+ public static final int SEQ_TABLE_INDEX = 0;
+ public static final int DOWN_TIME_TABLE_INDEX = 1;
+ public static final int UP_TIME_TABLE_INDEX = 2;
+ public static final int OPTION_TABLE_INDEX = 6;
private String savedItemTextForReset = CommonConstants.EMPTY;
private List<String> selectedPreKeyContext = new ArrayList<String>();
DAPopupMenuItem pasteItem = null;
DAPopupMenuItem deleteItem = null;
+ private DAText inputValueText = null;
+
@Override
protected List<TableInput> makeTableInput() {
List<TableInput> input = new ArrayList<TableInput>();
case SWT.MouseMove:
upadteMouseOverTableItemsStatus(item, event);
updateMouseOverTableItemsText();
+ if (null != inputValueText) {
+ inputValueText.getControl().dispose();
+ inputValueText = null;
+ }
break;
case SWT.MouseDoubleClick:
break;
private String getMouseSelectedItemOptionText() {
return table.getItem(getMouseSelectedTableItemIndex()).getText(
- OPTION_TIME_TABLE_INDEX);
+ OPTION_TABLE_INDEX);
}
private void setMouseSelectedItemOptionText(String text) {
table.getItem(getMouseSelectedTableItemIndex()).setText(
- OPTION_TIME_TABLE_INDEX, text);
+ OPTION_TABLE_INDEX, text);
}
private void addMouseSelectedItemOptionText(String text) {
String optionText = table.getItem(getMouseSelectedTableItemIndex())
- .getText(OPTION_TIME_TABLE_INDEX);
+ .getText(OPTION_TABLE_INDEX);
if (!optionText.contains(text)) {
optionText += text;
table.getItem(getMouseSelectedTableItemIndex()).setText(
- OPTION_TIME_TABLE_INDEX, optionText);
+ OPTION_TABLE_INDEX, optionText);
}
}
private void removeMouseSelectedItemOptionText(String text) {
String optionText = table.getItem(getMouseSelectedTableItemIndex())
- .getText(OPTION_TIME_TABLE_INDEX);
+ .getText(OPTION_TABLE_INDEX);
if (optionText.contains(text)) {
optionText = optionText.replace(text, CommonConstants.EMPTY);
table.getItem(getMouseSelectedTableItemIndex()).setText(
- OPTION_TIME_TABLE_INDEX, optionText);
+ OPTION_TABLE_INDEX, optionText);
}
}
@Override
public void widgetSelected(DAPopupMenuItem menuItem) {
copyItemText = getSelectedItemText(getMouseSelectedTableItemIndex());
- if (copyItemText.get(OPTION_TIME_TABLE_INDEX).contains(
+ if (copyItemText.get(OPTION_TABLE_INDEX).contains(
ReplayEditDialogDataManager.SELECTED_ITEM_COPY)) {
- copyItemText.get(OPTION_TIME_TABLE_INDEX).replace(
+ copyItemText.get(OPTION_TABLE_INDEX).replace(
ReplayEditDialogDataManager.SELECTED_ITEM_COPY,
CommonConstants.EMPTY);
}
@Override
public void widgetSelected(DAPopupMenuItem menuItem) {
copyItemText = getSelectedItemText(getMouseSelectedTableItemIndex());
- if (copyItemText.get(OPTION_TIME_TABLE_INDEX).contains(
+ if (copyItemText.get(OPTION_TABLE_INDEX).contains(
ReplayEditDialogDataManager.SELECTED_ITEM_COPY)) {
- copyItemText.get(OPTION_TIME_TABLE_INDEX).replace(
+ copyItemText.get(OPTION_TABLE_INDEX).replace(
ReplayEditDialogDataManager.SELECTED_ITEM_COPY,
CommonConstants.EMPTY);
}
ReplayEditDialogDataManager.SELECTED_ITEM_COPY,
CommonConstants.EMPTY);
}
- table.getItem(index).setText(OPTION_TIME_TABLE_INDEX, itemOption);
+ table.getItem(index).setText(OPTION_TABLE_INDEX, itemOption);
}
private void setTyepMenu() {
}
if (!iskeyInput) {
+ removeInputValue();
return;
}
- String savedString = getMouseSelectedTableItemText();
- String removeSString = CommonConstants.EMPTY;
- if (savedString.contains(ReplayEditLabels.CONTEXT_VALUE_S)) {
- removeSString = savedString.replace(
- ReplayEditLabels.CONTEXT_VALUE_S,
- CommonConstants.EMPTY);
+ String savedString = inputValueText.getText();
+ if (!savedString.contains(ReplayEditLabels.CONTEXT_VALUE_S)) {
+ savedString += ReplayEditLabels.CONTEXT_VALUE_S;
}
- String inputString = removeSString + event.character;
- if (!inputString.contains(ReplayEditLabels.CONTEXT_VALUE_S)) {
- inputString += ReplayEditLabels.CONTEXT_VALUE_S;
+ if (savedString.length() > 10) {
+ removeInputValue();
+ return;
}
if (savedString.contains(CommonConstants.DOT)) {
- String lines[] = savedString.split(CommonConstants.CMD_SPLIT_DOT);
+ String lines[] = savedString
+ .split(CommonConstants.CMD_SPLIT_DOT);
if (lines.length > 0) {
- if (lines[1].length() > 1) {
+ if (lines[1].trim().length() > 2) {
+ removeInputValue();
return;
}
}
}
-
- setMouseSelectedTableItemText(inputString);
+ setMouseSelectedTableItemText(savedString);
tableRedraw();
} else if (getColumnName(getMouseSelectedTableColumnIndex())
.equals(ReplayEditLabels.TABLE_COLUMN_VALUE1)
}
if (!iskeyInput) {
+ removeInputValue();
return;
}
- String savedString = getMouseSelectedTableItemText();
+ String savedString = inputValueText.getText();
StringBuffer inputString = new StringBuffer(savedString);
if (getColumnName(getMouseSelectedTableColumnIndex()).equals(
ReplayEditLabels.TABLE_COLUMN_VALUE1)) {
if (!savedString.contains(ReplayEditLabels.CONTEXT_VALUE_X)) {
- inputString.append(ReplayEditLabels.CONTEXT_VALUE_X);
+ inputString.insert(0, ReplayEditLabels.CONTEXT_VALUE_X);
}
} else {
if (!savedString.contains(ReplayEditLabels.CONTEXT_VALUE_Y)) {
- inputString.append(ReplayEditLabels.CONTEXT_VALUE_Y);
+ inputString.insert(0, ReplayEditLabels.CONTEXT_VALUE_Y);
}
}
-
- inputString.append(event.character).toString();
setMouseSelectedTableItemText(inputString.toString());
tableRedraw();
}
}
}
+ private void addTextWidget(GridItem gridItem) {
+ GridEditor editor = new GridEditor(table);
+ editor.minimumWidth = 10;
+ editor.horizontalAlignment = SWT.CENTER;
+ editor.grabHorizontal = true;
+
+ inputValueText = new DAText(table, SWT.CENTER);
+ inputValueText.getControl().setText(getMouseSelectedTableItemText());
+ inputValueText.getControl().selectAll();
+ inputValueText.getControl().setFocus();
+ editor.setEditor(inputValueText.getControl(), gridItem,
+ getMouseSelectedTableColumnIndex());
+ }
+
+ private void removeInputValue() {
+ if (null != inputValueText && inputValueText.getText().length() > 0) {
+ StringBuffer textBuffer = new StringBuffer(inputValueText.getText());
+ textBuffer.deleteCharAt(textBuffer.length() - 1);
+ inputValueText.setText(textBuffer.toString());
+ inputValueText.getControl().setSelection(textBuffer.length());
+ }
+ }
+
private void updateSelectPopupMenu(String text) {
if (!getColumnName(getMouseSelectedTableColumnIndex()).equals(
ReplayEditLabels.TABLE_COLUMN_TYPE)) {
getMouseSelectedTableColumnIndex() + 2,
selectedPreTouchContext.get(3));
}
-
}
private void upadteMouseOverTableItemsStatus(GridItem item, Event event) {
if (!isMouseSelectedTableItem) {
return;
}
-
removeMouseSelectedItemOptionText(ReplayEditDialogDataManager.SELECTED_ITEM_KEY_INPUT);
-
updateRollbackText();
updateNextItemsSavedTime();
-
updateVaildState();
isMouseSelectedTableItem = false;
tableRedraw();
-
}
private boolean updateVaildItems() {
long mouseUptime = 0;
if (!upTime.equals(CommonConstants.EMPTY)) {
mouseUptime = getLongTableTime(upTime);
- }else{
+ } else {
mouseUptime = mouseDowntime;
}
-
+
if (mouseUptime < mouseDowntime) {
isVaild = false;
} else if (mouseDowntime < preEventTime) {
isVaild = false;
} else {
- String itemOption = table.getItem(i).getText(
- OPTION_TIME_TABLE_INDEX);
+ String itemOption = table.getItem(i)
+ .getText(OPTION_TABLE_INDEX);
if (itemOption
.contains(ReplayEditDialogDataManager.ITEM_TIME_VAILD_FALSE)) {
String removeItemOption = itemOption.replace(
ReplayEditDialogDataManager.ITEM_TIME_VAILD_FALSE,
CommonConstants.EMPTY);
- table.getItem(i).setText(OPTION_TIME_TABLE_INDEX,
+ table.getItem(i).setText(OPTION_TABLE_INDEX,
removeItemOption);
}
}
preEventTime = mouseUptime;
if (!isVaild) {
- String itemOption = table.getItem(i).getText(
- OPTION_TIME_TABLE_INDEX);
+ String itemOption = table.getItem(i)
+ .getText(OPTION_TABLE_INDEX);
if (!itemOption
.contains(ReplayEditDialogDataManager.ITEM_TIME_VAILD_FALSE)) {
table.getItem(i)
.setText(
- OPTION_TIME_TABLE_INDEX,
+ OPTION_TABLE_INDEX,
itemOption
+ ReplayEditDialogDataManager.ITEM_TIME_VAILD_FALSE);
}
int nSize = table.getItemCount();
int startItem = getMouseSelectedTableItemIndex();
for (int i = startItem; i < nSize; i++) {
- if (!table.getItem(i).getText(OPTION_TIME_TABLE_INDEX)
+ if (!table.getItem(i).getText(OPTION_TABLE_INDEX)
.contains(ReplayEditDialogDataManager.MODIFIABILITY_TRUE)) {
continue;
}
table.getItem(i).setText(UP_TIME_TABLE_INDEX,
getStrTableTime(mouseUptime));
}
-
}
}
}
boolean isResetText = false;
if (savedString.length() == 0) {
isResetText = true;
- } else {
-// if (getColumnName(getMouseSelectedTableColumnIndex()).equals(
-// ReplayEditLabels.TABLE_COLUMN_MOUSE_DOWN_TIME)) {
-// String preItemmouseUpTime = CommonConstants.ZERO
-// + CommonConstants.DOT + CommonConstants.ZERO
-// + ReplayEditLabels.CONTEXT_VALUE_S;
-// if (getMouseSelectedTableItemIndex() > 0) {
-// preItemmouseUpTime = table.getItem(
-// getMouseSelectedTableItemIndex() - 1).getText(
-// getMouseSelectedTableColumnIndex() + 1);
-// }
-// String mouseDownTime = updateDotChartAtTime();
-// int comparePreItemTime = compareTime(preItemmouseUpTime,
-// mouseDownTime);
-// if (comparePreItemTime >= 0) {
-// isResetText = true;
-// }
-//
-// } else if (getColumnName(getMouseSelectedTableColumnIndex())
-// .equals(ReplayEditLabels.TABLE_COLUMN_MOUSE_UP_TIME)) {
-// String mouseUpTime = updateDotChartAtTime();
-// if (table.getItemCount() <= getMouseSelectedTableItemIndex()) {
-// isResetText = false;
-// } else {
-// String sameItemMouseDownTime = table.getItem(
-// getMouseSelectedTableItemIndex()).getText(
-// getMouseSelectedTableColumnIndex() - 1);
-// int compareSameItemTime = compareTime(
-// sameItemMouseDownTime, mouseUpTime);
-// if (compareSameItemTime >= 0) {
-// isResetText = true;
-// }
-// }
-// } else if (getColumnName(getMouseSelectedTableColumnIndex())
-// .equals(ReplayEditLabels.TABLE_COLUMN_VALUE1)) {
-// if (savedString.length() > 7) {
-// isResetText = true;
-// }
-// } else if (getColumnName(getMouseSelectedTableColumnIndex())
-// .equals(ReplayEditLabels.TABLE_COLUMN_VALUE2)) {
-// if (savedString.length() > 7) {
-// isResetText = true;
-// }
-// }
}
if (isResetText) {
setMouseSelectedTableItemText(savedItemTextForReset);
return false;
}
-// private int compareTime(String firstTime, String secondTime) {
-// StringBuffer firstTimeBuffer = new StringBuffer(firstTime);
-// StringBuffer highTimeBuffer = new StringBuffer(secondTime);
-// firstTimeBuffer.deleteCharAt(firstTime.length() - 1);
-// firstTimeBuffer.deleteCharAt(firstTime.length() - 3);
-// highTimeBuffer.deleteCharAt(secondTime.length() - 1);
-// highTimeBuffer.deleteCharAt(secondTime.length() - 3);
-//
-// long lowTime = Long.parseLong(firstTimeBuffer.toString());
-// long highTime = Long.parseLong(highTimeBuffer.toString());
-//
-// if (lowTime > highTime) {
-// return 1;
-// } else if (lowTime < highTime) {
-// return -1;
-// } else {
-// return 0;
-// }
-// }
-
private String updateDotChartAtTime() {
String chagneString = CommonConstants.EMPTY;
String savedString = getMouseSelectedTableItemText();
}
private void updateKeyboardInputStatus(GridItem item, Event event) {
- if (!item.getText(OPTION_TIME_TABLE_INDEX).contains(
+ if (!item.getText(OPTION_TABLE_INDEX).contains(
ReplayEditDialogDataManager.MODIFIABILITY_TRUE)) {
deleteItem.setEnabled(false);
return;
|| selectedText.equals(CommonConstants.EMPTY)) {
isMouseSelectedTableItem = true;
savedItemTextForReset = getMouseSelectedTableItemText();
- setMouseSelectedTableItemText(CommonConstants.EMPTY);
-
+ addTextWidget(item);
addMouseSelectedItemOptionText(ReplayEditDialogDataManager.SELECTED_ITEM_KEY_INPUT);
}
}
private void openPoppupMenuMouseDownSequenceColumn(GridItem item,
Event event) {
- if (!item.getText(OPTION_TIME_TABLE_INDEX).contains(
+ if (!item.getText(OPTION_TABLE_INDEX).contains(
ReplayEditDialogDataManager.MODIFIABILITY_TRUE)) {
if (selectedCutItemIndex > 0 || selectedCopyItemIndex > 0) {
insertItem.setEnabled(true);
int nSize = table.getItemCount();
int index = -1;
for (int i = 0; i < nSize; i++) {
- if (table.getItem(i).getText(OPTION_TIME_TABLE_INDEX)
+ if (table.getItem(i).getText(OPTION_TABLE_INDEX)
.contains(ReplayEditDialogDataManager.SELECTED_ITEM_COPY)) {
index = i;
break;
paintTableBoardLine(gc, item);
paintMouseOverColumn(gc, item);
paintSelectedInputKey(gc, item);
- // paintSelectedCopy(gc, item);
+ // paintSelectedCopy(gc, item);
paintVaildTime(gc, item);
}
} else if (!optionColumn
.contains(ReplayEditDialogDataManager.MODIFIABILITY_TRUE)) {
gc.setBackground(ColorResources.YELLOW);
+ } else if (item.getText(ReplayEditTable.UP_TIME_TABLE_INDEX).equals("")) {
+ gc.setBackground(ColorResources.YELLOW);
} else {
if (item.getParent().isEnabled()) {
Color bg = item.getBackground();
if (menuImg != null && getColumn() != 0 && item.getChecked(getColumn())) {
int y = getBounds().y;
y += (getBounds().height - menuImg.getBounds().height) / 2;
-
+
gc.drawImage(menuImg, getBounds().x, y);
}
}
}
}
-// private void paintSelectedCopy(GC gc, GridItem item) {
-// String optionColumn = item.getText(6);
-// if (optionColumn
-// .contains(ReplayEditDialogDataManager.SELECTED_ITEM_COPY)) {
-// gc.setForeground(ColorResources.BLACK);
-// gc.setLineWidth(2);
-// gc.setLineStyle(SWT.LINE_DOT);
-// gc.drawLine(getBounds().x, getBounds().y, getBounds().x
-// + getBounds().width, getBounds().y);
-//
-// gc.drawLine(getBounds().x, getBounds().y + getBounds().height,
-// getBounds().x + getBounds().width, getBounds().y
-// + getBounds().height);
-// if (getColumn() == 0) {
-// gc.drawLine(getBounds().x, getBounds().y, getBounds().x,
-// getBounds().y + getBounds().height);
-// }
-//
-// if (getColumn() == 0) {
-// gc.drawLine(getBounds().x, getBounds().y, getBounds().x,
-// getBounds().y + getBounds().height);
-// }
-//
-// gc.setLineStyle(SWT.LINE_SOLID);
-// gc.setLineWidth(1);
-//
-// }
-// }
+ // private void paintSelectedCopy(GC gc, GridItem item) {
+ // String optionColumn = item.getText(6);
+ // if (optionColumn
+ // .contains(ReplayEditDialogDataManager.SELECTED_ITEM_COPY)) {
+ // gc.setForeground(ColorResources.BLACK);
+ // gc.setLineWidth(2);
+ // gc.setLineStyle(SWT.LINE_DOT);
+ // gc.drawLine(getBounds().x, getBounds().y, getBounds().x
+ // + getBounds().width, getBounds().y);
+ //
+ // gc.drawLine(getBounds().x, getBounds().y + getBounds().height,
+ // getBounds().x + getBounds().width, getBounds().y
+ // + getBounds().height);
+ // if (getColumn() == 0) {
+ // gc.drawLine(getBounds().x, getBounds().y, getBounds().x,
+ // getBounds().y + getBounds().height);
+ // }
+ //
+ // if (getColumn() == 0) {
+ // gc.drawLine(getBounds().x, getBounds().y, getBounds().x,
+ // getBounds().y + getBounds().height);
+ // }
+ //
+ // gc.setLineStyle(SWT.LINE_SOLID);
+ // gc.setLineWidth(1);
+ //
+ // }
+ // }
private void paintVaildTime(GC gc, GridItem item) {
String optionColumn = item.getText(6);