|| (stateUIDL.getChildCount() > 0 && stateUIDL.getChildUIDL(0)
.getAttributeNames().size() == 0)) {
return null;
}
GwtStates state = GwtStates.create();
GwtHover hover = GwtHover.create();
state.setHover(hover);
UIDL hoverUIDL = stateUIDL.getChildUIDL(0);
if (hoverUIDL.hasAttribute("enabled")) {
hover.setEnabled(hoverUIDL.getBooleanAttribute("enabled"));
}
if (hoverUIDL.hasAttribute("lineWidth")) {
hover.setLineWidth(hoverUIDL.getIntAttribute("lineWidth"));
}
if (hoverUIDL.hasAttribute("brightness")) {
hover.setBrightness(hoverUIDL.getDoubleAttribute("brightness"));
}
return state;
}