private void addReadOnlyExamples ( ) { add ( new WHeading ( HeadingLevel . H3 , "Read-only WRadioButtonSelect examples" ) ) ; add ( new ExplanatoryText ( "These examples all use the same list of options: the states and territories list from the editable examples above. " + "When the readOnly state is specified only that option which is selected is output.\n" + "Since no more than one option is able to be selected the layout and frame settings are ignored in the read only state." ) ) ; WFieldLayout layout = new WFieldLayout ( ) ; add ( layout ) ; WRadioButtonSelect select = new WRadioButtonSelect ( "australian_state" ) ; select . setReadOnly ( true ) ; layout . addField ( "Read only with no selection" , select ) ; select = new SelectWithSelection ( "australian_state" ) ; select . setReadOnly ( true ) ; layout . addField ( "Read only with selection" , select ) ; }
Examples of readonly states . When in a read only state only the selected option is output . Since a WRadioButtonSeelct can only have 0 or 1 selected option the LAYOUT and FRAME are ignored .