Hi,
CheckboxItem has title on the right by default. I'd like to display the title on the left.
I first tried setTitleOrientation(TitleOrientation.LEFT). It does not work.
Finally I worked out a solution with StaticTextItem
This is definitely a hack. Is there an easy way to do this?
thanks
-jason
CheckboxItem has title on the right by default. I'd like to display the title on the left.
I first tried setTitleOrientation(TitleOrientation.LEFT). It does not work.
Finally I worked out a solution with StaticTextItem
Code:
StaticTextItem sti=new StaticTextItem("temp"); sti.setTitle("statictext"); CheckboxItem cb=new CheckboxItem("cb"); //cb.setTitleOrientation(TitleOrientation.LEFT); sti.setDefaultValue("staticText:"); sti.setShowTitle(false); sti.setColSpan(1); sti.setClipValue(true); sti.setEndRow(false); sti.setTextAlign(Alignment.RIGHT); cb.setStartRow(false); cb.setColSpan(1); cb.setShowTitle(false); cb.setShowLabel(false);
thanks
-jason
Comment