Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » AbstractColorField(I want to use the AbstractColorField, like on the new demo app)
AbstractColorField [message #1704996] Tue, 11 August 2015 10:12 Go to next message
Maarten Hoste is currently offline Maarten HosteFriend
Messages: 2
Registered: August 2015
Junior Member
Can somebody give me a step by step 'tutorial' on how to implement a AbstractColorField. Like the one they used in this tutorial:

scout.bsiag.com/demoapp/web#org.eclipsescout.demo.widgets.client.ui.desktop.outlines.SimpleWidgetsOutline-Icons-%26-Font-Icons

Thanks
Re: AbstractColorField [message #1705004 is a reply to message #1704996] Tue, 11 August 2015 11:40 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1252
Registered: October 2011
Senior Member
Just Add it like any other field.

You can follow the Scout HelloWorld Tutorial, and instead of selecting "StringField" (Figure 8), you select "ColorField":
index.php/fa/22859/0/

In the page you have linked, there is a ColorField (with the label "Color"). When you click on the magnifier icon of this field you can select a color that will be assigned as value of this field.

index.php/fa/22865/0/

I hope this helps. Otherwise do not hesitate to continue the discussion.

[Updated on: Wed, 12 August 2015 07:53]

Report message to a moderator

Re: AbstractColorField [message #1705035 is a reply to message #1705004] Tue, 11 August 2015 14:42 Go to previous messageGo to next message
Maarten Hoste is currently offline Maarten HosteFriend
Messages: 2
Registered: August 2015
Junior Member
I can't choose the "ColorField" in that list.

[Updated on: Tue, 11 August 2015 20:19]

Report message to a moderator

Re: AbstractColorField [message #1705110 is a reply to message #1705035] Wed, 12 August 2015 07:55 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1252
Registered: October 2011
Senior Member
What version of Scout are you using?

I have tested it with Mars (Scout 5.0.0). I guess it was introduced with Luna but I did not checked.
Re: AbstractColorField [message #1801916 is a reply to message #1705110] Tue, 29 January 2019 14:04 Go to previous messageGo to next message
The Maddes is currently offline The MaddesFriend
Messages: 44
Registered: October 2018
Member
Hey guys,

im using Scout 8 and i was wondering if the field is still available.
So i tried to just test it like

    public class MyGroupBox extends AbstractGroupBox {
      @Override
      protected String getConfiguredLabel() {
        return TEXTS.get("Color");
      }
      
      public class MyColorField extends AbstractColorField {
        
      }
    }


And the result is a field showing the Text "not implemented yet".

Did i mess something up or is it "under construction"? Because i didnt see anything deprecated in the source.

Thank you in advance
Re: AbstractColorField [message #1801928 is a reply to message #1801916] Tue, 29 January 2019 15:00 Go to previous messageGo to next message
Matthias Villiger is currently offline Matthias VilligerFriend
Messages: 232
Registered: September 2011
Senior Member
Hi

It is not deprecated because currently we have no plans to remove it.

But you are right: It is not implemented in the HTML UI yet.

Kind regards
Mat
Re: AbstractColorField [message #1801975 is a reply to message #1801928] Wed, 30 January 2019 08:13 Go to previous message
The Maddes is currently offline The MaddesFriend
Messages: 44
Registered: October 2018
Member
Hey Matthias,

thank you for making this clear. So i think the option would be a HTML Field like
 setValue(HTML.input().type("color").value("#ff0000").toHtml());

Or something like that.
Is there a way to get the value straight from that Colorpicker then?
Cause afaik the value of the Field is then the String <input type="color" value="#ff0000">.

Thank you in advance
Previous Topic:scout photon planner
Next Topic:Adding rows to table after importPageData fails
Goto Forum:
  


Current Time: Thu Apr 25 05:22:07 GMT 2024

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

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

Back to the top