import com.vaadin.client.ui.PostLayoutListener;
import com.vaadin.client.ui.table.VScrollTable.ContextMenuDetails;
import com.vaadin.client.ui.table.VScrollTable.VScrollTableBody.VScrollTableRow;
-import com.vaadin.shared.AbstractFieldState;
import com.vaadin.shared.ui.Connect;
import com.vaadin.shared.ui.table.TableConstants;
+import com.vaadin.shared.ui.table.TableState;
@Connect(com.vaadin.ui.Table.class)
public class TableConnector extends AbstractComponentContainerConnector
}
@Override
- public AbstractFieldState getState() {
- return (AbstractFieldState) super.getState();
+ public TableState getState() {
+ return (TableState) super.getState();
}
/**
ScrollHandler, VHasDropHandler, FocusHandler, BlurHandler, Focusable,
ActionOwner {
+ public static final String STYLENAME = "v-table";
+
public enum SelectMode {
NONE(0), SINGLE(1), MULTI(2);
private int id;
}
}, ContextMenuEvent.getType());
- setStyleName("v-table");
+ setStyleName(STYLENAME);
add(tHead);
add(scrollBodyPanel);
--- /dev/null
+package com.vaadin.shared.ui.table;
+
+import com.vaadin.client.ui.table.VScrollTable;
+import com.vaadin.shared.AbstractFieldState;
+
+public class TableState extends AbstractFieldState {
+ {
+ primaryStyleName = VScrollTable.STYLENAME;
+ }
+}