return delegate.getState();
}
public void jsSet_state(Object stateObj) {
Object obj = unwrap(stateObj);
WidgetState state = null;
if (obj instanceof String) {
state = WidgetState.stateForName((String)obj);
} else if (obj instanceof WidgetState) {
state = (WidgetState)obj;