}
private GwtCreditOptions getCreditOptions(UIDL uidl) {
VConsole.log("Enter [getCreditOptions]");
VConsole.log("Tag name -> " + uidl.getTag());
GwtCreditOptions creditOptions = GwtCreditOptions.create();
if (uidl.hasAttribute("enabled")) {
creditOptions.setEnabled(uidl.getBooleanAttribute("enabled"));
}
if (uidl.hasAttribute("href")) {
creditOptions.setHref(uidl.getStringAttribute("href"));
}
if (uidl.hasAttribute("style")) {
creditOptions.setStyle(uidl.getStringAttribute("style"));
}
if (uidl.hasAttribute("text")) {
creditOptions.setText(uidl.getStringAttribute("text"));
}
UIDL positionUIDL = uidl.getChildUIDL(0);
GwtPosition position = GwtPosition.create();
if (positionUIDL.hasAttribute("align")) {
position.setAlign(positionUIDL.getStringAttribute("align"));
}
if (positionUIDL.hasAttribute("verticalAlign")) {
position.setVerticalAlign(positionUIDL
.getStringAttribute("verticalAlign"));
}
if (positionUIDL.hasAttribute("x")) {
position.setX(positionUIDL.getIntAttribute("x"));
}
if (positionUIDL.hasAttribute("y")) {
position.setY(positionUIDL.getIntAttribute("y"));
}
creditOptions.setPosition(position);
VConsole.log("Exit [getCreditOptions]");
return creditOptions;
}