" RootPanel rootPanel = RootPanel.get();",
" PushButton button = new PushButton('My text');",
" rootPanel.add(button);",
" }",
"}");
frame.refresh();
CustomButtonInfo button = (CustomButtonInfo) frame.getChildrenWidgets().get(0);
// check for properties for faces
hasFace(button, "UpFace");
hasFace(button, "UpDisabledFace");
hasFace(button, "UpHoveringFace");