Monday, February 21, 2011

Using Inline Custom CSS

 
import oracle.cabo.style.CSSStyle;
CSSStyle customUnCss = new CSSStyle();
customUnCss.setProperty("text-transform","uppercase");
customUnCss.setProperty("color", "#F6358A");//# -purple
OAStaticStyledTextBean staticbean = (OAStaticStyledTextBean) webBean.findChildRecursive("approvedIJPText");
if(staticbean!=null)
{
staticbean.setInlineStyle(customCss); //set custom css style
}

1 comment:

  1. Hi Gyan,
    thats for ur great blog.
    ihave used the same code for MessagestyledText item but that is not reflecting to my OA page.
    i changed background color, text color but those sre not reflecting to OA page.
    plz help me in this.

    ReplyDelete