return imagesUrls;
}
protected void encodeInitScript(FacesContext context, UIComponent component) throws IOException {
Slider slider = (Slider) component;
boolean isHorizontal = slider.getOrientation().equals(Orientation.HORIZONTAL);
String rolloverAEStyle = (String) slider.getAttributes().get("activeElementRolloverStyle");
String rolloverAEClass = (String) slider.getAttributes().get("activeElementRolloverClass");
String activeElementRolloverStyleClass = Styles.getCSSClass(context, slider, rolloverAEStyle, StyleGroup.rolloverStyleGroup(), rolloverAEClass, DEFAULT_ACTIVE_ELEMENT_ROLLOVER_CLASS);
String handleImageUrl = (String) slider.getAttributes().get("dragHandleImageUrl");
handleImageUrl = Resources.getURL(context, handleImageUrl, null, isHorizontal ? DEFAULT_HANDLE_URL : DEFAULT_VERTICAL_HANDLE_URL);
String handleImageUrl_rollover = (String) slider.getAttributes().get("dragHandleRolloverImageUrl");
handleImageUrl_rollover = Resources.getURL(context, handleImageUrl_rollover, null, isHorizontal ? DEFAULT_HANDLE_ROLLOVER_URL : DEFAULT_VERTICAL_HANDLE_ROLLOVER_URL);
String leftTopButtonImageUrl = (String) slider.getAttributes().get("leftTopButtonImageUrl");
leftTopButtonImageUrl = Resources.getURL(context, leftTopButtonImageUrl, null, isHorizontal ? DEFAULT_LT_BUTTON_URL : DEFAULT_VERTICAL_LT_BUTTON_URL);
String leftTopButtonImageUrl_rollover = (String) slider.getAttributes().get("leftTopButtonRolloverImageUrl");
leftTopButtonImageUrl_rollover = Resources.getURL(context, leftTopButtonImageUrl_rollover, null, isHorizontal ? DEFAULT_LT_BUTTON_ROLLOVER_URL : DEFAULT_VERTICAL_LT_BUTTON_ROLLOVER_URL);
String rightBottomImageUrl = (String) slider.getAttributes().get("rightBottomButtonImageUrl");
rightBottomImageUrl = Resources.getURL(context, rightBottomImageUrl, null, isHorizontal ? DEFAULT_RB_BUTTON_URL : DEFAULT_VERTICAL_RB_BUTTON_URL);
String rightBottomImageUrl_rollover = (String) slider.getAttributes().get("rightBottomButtonRolloverImageUrl");
rightBottomImageUrl_rollover = Resources.getURL(context, rightBottomImageUrl_rollover, null, isHorizontal ? DEFAULT_RB_BUTTON_ROLLOVER_URL : DEFAULT_VERTICAL_RB_BUTTON_ROLLOVER_URL);
JSONObject options;
try {
options = createFormatOptions(context, slider);
} catch (JSONException e) {
throw new FacesException(e);
}
Script initScript = new ScriptBuilder().initScript(context, slider, "O$.Slider._init",
slider.getValue(), slider.getMinValue(), slider.getMaxValue(),
slider.getMinorTickSpacing(), slider.getMajorTickSpacing(),
slider.getOrientation(), slider.getFillDirection(),
slider.isDisabled(), slider.isTooltipEnabled(),
slider.isBarCanChangeValue(), slider.isBarVisible(),
slider.getTextFieldState(), slider.isSnapToTicks(),
slider.getOnchange(), slider.getOnchanging(),
getTextFieldStyleClass(context, slider),
getTooltipStyleClass(context, slider),
isIntegerTooltipType(context, slider),
getSliderStyleClass(context, slider),
getSliderFocusedStyleClass(context, slider),
activeElementRolloverStyleClass,
slider.getBarAutoRepeatClickDelay(),
options,
slider.getTransitionPeriod(),
handleImageUrl, handleImageUrl_rollover,
leftTopButtonImageUrl, leftTopButtonImageUrl_rollover,
rightBottomImageUrl, rightBottomImageUrl_rollover
);