标签: eclipse eclipse-plugin nattable
更改位置和大小后如何保存列顺序和宽度?
问题1。如何通过拖动/双击事件更改宽度后如何获得nattable的列宽度? -即使列不在原始顺序中,我也希望具有原始列位置。 第二季度。使用拖放重新排序后,如何获得列顺序?
答案 0 :(得分:0)
回答第一季度: 询问图层,它们有getWidth()和getColumnWidthByPosition(int)方法
getWidth()
getColumnWidthByPosition(int)
回答第二季度: 通常,您将需要直接检查ColumnReorderLayer。
ColumnReorderLayer
但是,如果要存储和加载NatTable状态,则应查看NatTable提供的持久性机制。我为此写了article,甚至记录在NatTable website中。