colorVC = new VelocityContainer("calEdit", VELOCITY_ROOT + "/calColor.html", translator, this);
cancelButton = LinkFactory.createButton("cancel", colorVC, this);
colorLinks = new HashMap();
Link greenLink = LinkFactory.createCustomLink("greenLink", "selc", "", Link.NONTRANSLATED, colorVC, this);
if (currentCssSelection.equals("o_cal_green")){
greenLink.setCustomEnabledLinkCSS(SELECTED_COLOR_CSS);
greenLink.setCustomDisabledLinkCSS(SELECTED_COLOR_CSS);
}
Link blueLink = LinkFactory.createCustomLink("blueLink", "selc", "", Link.NONTRANSLATED, colorVC, this);
if (currentCssSelection.equals("o_cal_blue")){
blueLink.setCustomEnabledLinkCSS(SELECTED_COLOR_CSS);
blueLink.setCustomDisabledLinkCSS(SELECTED_COLOR_CSS);
}
Link orangeLink = LinkFactory.createCustomLink("orangeLink", "selc", "", Link.NONTRANSLATED, colorVC, this);
if (currentCssSelection.equals("o_cal_orange")){
orangeLink.setCustomEnabledLinkCSS(SELECTED_COLOR_CSS);
orangeLink.setCustomDisabledLinkCSS(SELECTED_COLOR_CSS);
}
Link yellowLink = LinkFactory.createCustomLink("yellowLink", "selc", "", Link.NONTRANSLATED, colorVC, this);
if (currentCssSelection.equals("o_cal_yellow")){
yellowLink.setCustomEnabledLinkCSS(SELECTED_COLOR_CSS);
yellowLink.setCustomDisabledLinkCSS(SELECTED_COLOR_CSS);
}
Link redLink = LinkFactory.createCustomLink("redLink", "selc", "", Link.NONTRANSLATED, colorVC, this);
if (currentCssSelection.equals("o_cal_red")){
redLink.setCustomEnabledLinkCSS(SELECTED_COLOR_CSS);
redLink.setCustomDisabledLinkCSS(SELECTED_COLOR_CSS);
}
Link greyLink = LinkFactory.createCustomLink("greyLink", "selc", "", Link.NONTRANSLATED, colorVC, this);
if (currentCssSelection.equals("o_cal_grey")){
greyLink.setCustomEnabledLinkCSS(SELECTED_COLOR_CSS);
greyLink.setCustomDisabledLinkCSS(SELECTED_COLOR_CSS);
}
colorLinks.put(greenLink, "o_cal_green");
colorLinks.put(blueLink, "o_cal_blue");
colorLinks.put(orangeLink,"o_cal_orange");