Iterator it = controls.iterator();
JSmoothApplication app = page.getApplication();
Control ctrl = null;
String value = null;
SkeletonProperty prop = null;
while (it.hasNext()) {
ctrl = (Control) it.next();
prop = (SkeletonProperty) ctrl.getData();
if (prop.getType().equals(SkeletonProperty.TYPE_STRING)) {
value = ((Text) ctrl).getText();
prop.setValue(value);
}
else if (prop.getType().equals(SkeletonProperty.TYPE_TEXTAREA)) {
value = ((Text) ctrl).getText();
prop.setValue(value);
}
else if (prop.getType().equals(SkeletonProperty.TYPE_BOOLEAN)) {
boolean b = ((Button) ctrl).getSelection();
value = (b == true) ? "1" : "0";
prop.setValue(value);
}
app.setSkeletonProperty(prop);
}
super.okPressed();