{
super.setProperties(component);
HtmlSchedule schedule = (HtmlSchedule) component;
FacesContext context = FacesContext.getCurrentInstance();
Application app = context.getApplication();
if (rendered != null)
{
if (isValueReference(rendered))
{
schedule.setValueBinding("rendered", app
.createValueBinding(rendered));
}
else
{
schedule.setRendered(Boolean.valueOf(rendered).booleanValue());
}
}
if (visibleStartHour != null)
{
if (isValueReference(visibleStartHour))
{
schedule.setValueBinding("visibleStartHour", app
.createValueBinding(visibleStartHour));
}
else
{
schedule.setVisibleStartHour(new Integer(visibleStartHour)
.intValue());
}
}
if (visibleEndHour != null)
{
if (isValueReference(visibleEndHour))
{
schedule.setValueBinding("visibleEndHour", app
.createValueBinding(visibleEndHour));
}
else
{
schedule.setVisibleEndHour(new Integer(visibleEndHour)
.intValue());
}
}
if (workingStartHour != null)
{
if (isValueReference(workingStartHour))
{
schedule.setValueBinding("workingStartHour", app
.createValueBinding(workingStartHour));
}
else
{
schedule.setWorkingStartHour(new Integer(workingStartHour)
.intValue());
}
}
if (workingEndHour != null)
{
if (isValueReference(workingEndHour))
{
schedule.setValueBinding("workingEndHour", app
.createValueBinding(workingEndHour));
}
else
{
schedule.setWorkingEndHour(new Integer(workingEndHour)
.intValue());
}
}
if (immediate != null)
{
if (isValueReference(immediate))
{
schedule.setValueBinding("immediate", app
.createValueBinding(immediate));
}
else
{
schedule
.setImmediate(Boolean.valueOf(immediate).booleanValue());
}
}
if (readonly != null)
{
if (isValueReference(readonly))
{
schedule.setValueBinding("readonly", app
.createValueBinding(readonly));
}
else
{
schedule.setReadonly(Boolean.valueOf(readonly).booleanValue());
}
}
if (actionListener != null)
{
if (isValueReference(actionListener))
{
MethodBinding actionListenerBinding = app.createMethodBinding(
actionListener, new Class[] { ActionEvent.class });
schedule.setActionListener(actionListenerBinding);
}
else
{
throw new IllegalArgumentException(
"actionListener property must be a method-binding expression.");
}
}
if (action != null)
{
if (isValueReference(action))
{
MethodBinding actionBinding = app.createMethodBinding(action,
new Class[] { ActionEvent.class });
schedule.setAction(actionBinding);
}
else
{
throw new IllegalArgumentException(
"action property must be a method-binding expression.");
}
}
if ((value != null) && isValueReference(value))
{
schedule.setValueBinding("value", app.createValueBinding(value));
}
else
{
throw new IllegalArgumentException(
"The value property must be a value binding expression that points to a SimpleScheduleModel object.");