Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Label Position for AbstractBooleanField
Label Position for AbstractBooleanField [message #900475] Tue, 07 August 2012 04:58 Go to next message
Thomas S. is currently offline Thomas S.
Messages: 1
Registered: July 2012
Location: Frankfurt
Junior Member
Hi,

is there any possibility to get the AbstractBooleanField Label on the left side of the checkbox?

Overwriting the mehtod "getConfiguredLabelPosition()" isn't working.

Greetings
Thomas
Re: Label Position for AbstractBooleanField [message #900985 is a reply to message #900475] Thu, 09 August 2012 06:07 Go to previous messageGo to next message
Claudio Guglielmo is currently offline Claudio Guglielmo
Messages: 126
Registered: March 2010
Senior Member
Hi Thomas

I think this is not supported so far. If you really need it you could create a custom implementation of SwingScoutCheckBox. Have a look at the following method, that's where the label is set:

@Override
protected void setLabelFromScout(String s) {
  getSwingCheckBox().setText(s);
}


This overrides the default of SwingScoutFieldComposite. To register your custom checkbox you can use the extension point org.eclipse.scout.rt.ui.swing.formfields.
Re: Label Position for AbstractBooleanField [message #1282511 is a reply to message #900475] Wed, 02 April 2014 08:06 Go to previous message
Jeremie Bresson is currently online Jeremie Bresson
Messages: 626
Registered: October 2011
Senior Member
I have the same question (SWT application):

Current label position:
index.php/fa/17878/0/

Wanted label position:
index.php/fa/17879/0/

We have tried a lot (combination of a LabelField and CheckBox in a GroupBox, in a SequenceBox)... Nothing seems to work.

Custom Implementation of the CheckBox field in SWT to get a StatusLabelEx seems to be an overkill...

What are the possible solutions?

.
  • Attachment: current.png
    (Size: 2.01KB, Downloaded 46 times)
  • Attachment: wanted.png
    (Size: 2.25KB, Downloaded 47 times)
Previous Topic:Colour picker
Next Topic:Different Cell types in the same column
Goto Forum:
  


Current Time: Thu Jul 24 11:33:43 EDT 2014

Powered by FUDForum. Page generated in 0.01522 seconds