use of com.sun.web.ui.view.html.CCCheckBox in project OpenAM by OpenRock.
the class ActionTiledView method displayBooleanAction.
private boolean displayBooleanAction(ActionSchema actionSchema, String childName, int type, int syntax) {
boolean display = (type == AMDisplayType.TYPE_SINGLE) && (syntax == AMDisplayType.SYNTAX_BOOLEAN);
if (display) {
RuleOpViewBeanBase parentVB = (RuleOpViewBeanBase) getParentViewBean();
Set set = (!parentVB.isSubmitCycle()) ? parentVB.getCurrentActionValues(actionSchema) : parentVB.getDefaultActionValues(actionSchema);
String value = ((set != null) && !set.isEmpty()) ? (String) set.iterator().next() : "false";
CCCheckBox cb = (CCCheckBox) getChild(childName);
cb.setValue(value.equals("true") ? "true" : "false");
}
return display;
}
Aggregations