Hi everybody !
I just want to ask a question about tonegodgui and it’s implementation.
So I’m using the Table list which is in development. I just don’t understand why the TableCell value isn’t reachable since you add it to be read over the label.
Here is what I found really strange
public static class TableCell extends Element implements Comparable<TableCell> {
private Object value; //This value can't be accessed
}
My case :
actionList = new Table(screen, new Vector2f(border, border + this.dragBar.getHeight() + 50), new Vector2f(w / 4, h - border * 2 - 50*2 - this.dragBar.getHeight())) {
@Override
public void onChange() {
for(Spatial s : actionList.getSelectedRows().get(0).getChildren()){
if(s instanceof TableCell){
TableCell cell = (TableCell) s;
//What I want to do
MyObject o = (MyObject) cell.getValue();
}
}
}
};
Do I have misconception of what the value is mean to be ?