sventon subversion web client - http://www.sventon.org
[show recent changes]
 
  Help
HEAD
Rev: 43059 - http://anonsvn.icesoft.org/repo / icefaces4 / trunk / icefaces / ace / component / src / org / icefaces / ace / component / checkboxbutton / CheckboxButtonRenderer.java
Unified Diff View - CheckboxButtonRenderer.java
/icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/checkboxbutton/CheckboxButtonRenderer.java @ revision 43058
/icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/checkboxbutton/CheckboxButtonRenderer.java @ revision 43059
@@ -64,7 +64,7 @@         ResponseWriter writer = facesContext.getResponseWriter();         CheckboxButton checkbox = (CheckboxButton) uiComponent;         String clientId = uiComponent.getClientId(facesContext); -        String firstWrapperClass = "yui-button yui-checkboxbutton-button ui-button ui-widget ui-state-default"; +        String firstWrapperClass = "yui-button yui-checkboxbutton-button ui-button ui-widget";         String secondWrapperClass = "first-child";         boolean ariaEnabled = EnvUtils.isAriaEnabled(facesContext); @@ -245,14 +245,9 @@     private void encodeButtonStyle(ResponseWriter writer, CheckboxButton checkbox) throws IOException {         String buttonClasses = ""; -        String selectedClass = "ui-state-active";         String disabledClass = "ui-state-disabled";         Boolean val = (Boolean)checkbox.getValue(); -        if (val != null && val) { -            buttonClasses += selectedClass + " "; -        } -         if (checkbox.isDisabled()) {             buttonClasses += disabledClass + " ";         } @@ -266,12 +261,13 @@         String iconClass = "fa";         String selectedStyle = "fa-check-square-o";         String unselectedStyle = "fa-square-o"; +  String largeStyle = "fa-lg";         Boolean val = (Boolean)checkbox.getValue();         if (val != null && val) { -            iconClass += " " + selectedStyle; +            iconClass += " " + selectedStyle + " " + largeStyle;         } else { -            iconClass += " " + unselectedStyle; +            iconClass += " " + unselectedStyle + " " + largeStyle;         };         writer.writeAttribute(HTML.CLASS_ATTR, iconClass, null);


feed icon

sventon 2.5.1