@Override public boolean setValue(Object value, int row, int column) { if (column == 0) { return false; } else { int v = 0; if (value != null) { v = ((Number) value).intValue(); } switch (row) { case 0: layout.setHgap(v); return true; case 1: layout.setVgap(v); return true; case 2: layout.setRows(v); return true; case 3: layout.setColumns(v); return true; default: return false; } } }
@Override public Object getValue(int row, int column) { if (column == 0) { switch (row) { case 0: return Inter.getLocText("Hgap"); case 1: return Inter.getLocText("Vgap"); case 2: return Inter.getLocText("Edit-Row_Count"); case 3: return Inter.getLocText("Edit-Column_Count"); default: return null; } } else { switch (row) { case 0: return layout.getHgap(); case 1: return layout.getVgap(); case 2: return layout.getRows(); case 3: return layout.getColumns(); default: return null; } } }