\r
public void execute(Table c, Integer value, Object data) {\r
if (value == Table.ROW_HEADER_MODE_PROPERTY) {\r
- c.setItemCaptionPropertyId("Column 3");\r
+ c.setItemCaptionPropertyId("Property 3");\r
}\r
c.setRowHeaderMode(value);\r
}\r
createPageLengthSelect(CATEGORY_SIZE);\r
\r
createSelectionModeSelect(CATEGORY_SELECTION);\r
+ createValueSelection(CATEGORY_SELECTION);\r
\r
createItemClickListener(CATEGORY_LISTENERS);\r
createColumnResizeListenerCheckbox(CATEGORY_LISTENERS);\r
\r
}\r
\r
+ private void createValueSelection(String categorySelection) {\r
+ LinkedHashMap<String, Object> options = new LinkedHashMap<String, Object>();\r
+ options.put("null", null);\r
+ for (int i = 1; i <= 10; i++) {\r
+ options.put("Item " + i, "Item " + i);\r
+ }\r
+ createSelectAction("Value", categorySelection, options, null,\r
+ setValueCommand);\r
+ }\r
+\r
private void createContextMenuAction(String category) {\r
LinkedHashMap<String, ContextMenu> options = new LinkedHashMap<String, ContextMenu>();\r
options.put("None", null);\r
options.put("Id", Table.ROW_HEADER_MODE_ID);\r
options.put("Index", Table.ROW_HEADER_MODE_INDEX);\r
options.put("Item", Table.ROW_HEADER_MODE_ITEM);\r
- options.put("'Column 3' property", Table.ROW_HEADER_MODE_PROPERTY);\r
+ options.put("'Property 3' property", Table.ROW_HEADER_MODE_PROPERTY);\r
\r
createSelectAction("Row header mode", category, options, "Hidden",\r
rowHeaderModeCommand);\r