Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » Radiobutton group vertical aligned
Radiobutton group vertical aligned [message #990810] Fri, 14 December 2012 10:43 Go to next message
Bertin Kiekebosch is currently offline Bertin KiekeboschFriend
Messages: 330
Registered: August 2011
Senior Member
Hi,

I have a radiobuttonGroup with three radiobuttons in it. The labels are rather long so I want the buttons to appear below each other in stead of next to each other.

Is it possible and if yes how to configure this.

Regards Bertin
Re: Radiobutton group vertical aligned [message #990834 is a reply to message #990810] Fri, 14 December 2012 11:40 Go to previous message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1252
Registered: October 2011
Senior Member
RadioButtonGroup<T> is a value Field and a composite Field.

This means you can configure your Grid in the RadioGroup as you would do for a GroupBox field.

Here a small example:
      @Order(30.0)
      public class RadioGroupBox extends AbstractRadioButtonGroup<Long> {

        protected int getConfiguredGridColumnCount() {
          return 1;
        }

        @Override
        protected int getConfiguredGridH() {
          return 3;
        }

        @Override
        protected String getConfiguredLabel() {
          return "Radio group label"; //XXX: use TEXTS.get(..)
        }

        @Order(10.0)
        public class Value1Field extends AbstractRadioButton {

          @Override
          protected String getConfiguredLabel() {
            return "Value1"; //XXX: use TEXTS.get(..)
          }

          @Override
          protected Object getConfiguredRadioValue() {
            return 1L;
          }

          @Override
          protected int getConfiguredGridW() {
            return 1;
          }
        }

        @Order(20.0)
        public class Value2Field extends AbstractRadioButton {
          @Override
          protected int getConfiguredGridW() {
            return 1;
          }

          @Override
          protected String getConfiguredLabel() {
            return "Value2"; //XXX: use TEXTS.get(..)
          }

          @Override
          protected Object getConfiguredRadioValue() {
            return 2L;
          }
        }

        @Order(30.0)
        public class Value3Field extends AbstractRadioButton {
          @Override
          protected int getConfiguredGridW() {
            return 1;
          }

          @Override
          protected String getConfiguredLabel() {
            return "Value3"; //XXX: use TEXTS.get(..)
          }

          @Override
          protected Object getConfiguredRadioValue() {
            return 3L;
          }
        }
      }


index.php/fa/12711/0/

[Updated on: Fri, 14 December 2012 11:41]

Report message to a moderator

Previous Topic:Unable to locate secure storage module
Next Topic:AbstractSqlService.getSequenceNextval() specific to Oracle
Goto Forum:
  


Current Time: Sat Apr 20 00:25:56 GMT 2024

Powered by FUDForum. Page generated in 0.03375 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top