How to convert flextable cell into editable text cell in GWT?

I did something like this in my app. Sorry if the syntax is a bit off but the main idea is to use a clickevent and then get this events position and exchange the widget in that position.

I did something like this in my app. Sorry if the syntax is a bit off but the main idea is to use a clickevent and then get this events position and exchange the widget in that position. Final FlexTable flexTable = new FlexTable(); flexTable.

AddClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { Cell cell = table. GetCellForClickEvent(event); final int row = cell.getRow(); final int column = cell.getIndex(); final TextBox textBox = new TextBox(); // Get the text from the cell in some way. Maybe use flextTable.

GetHTML(row, column) or what ever you prefer // textBox. SetText("Something other than this"); textBox. AddKeyDownHandler(new KeyDownHandler() { public void onKeyDownEvent(KeyDownEvent event) { int code = event.

GetNativeKeyCode(); if (KeyCodes. KEY_ENTER == code) { flexTable. SetWidget(row, column, new Label(textBox.getText())); } } }); flexTable.

SetWidget(row, column, textBox); // You may also need something like this textBox. SetFocus(true); } }).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions