Skip to main content



      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 06:12 Go to next message
Eclipse UserFriend
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 07:40 Go to previous messageGo to next message
Eclipse UserFriend
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 03:53] by Moderator

Re: AbstractColorField [message #1705035 is a reply to message #1705004] Tue, 11 August 2015 10:42 Go to previous messageGo to next message
Eclipse UserFriend
I can't choose the "ColorField" in that list.

[Updated on: Tue, 11 August 2015 16:19] by Moderator

Re: AbstractColorField [message #1705110 is a reply to message #1705035] Wed, 12 August 2015 03:55 Go to previous messageGo to next message
Eclipse UserFriend
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 09:04 Go to previous messageGo to next message
Eclipse UserFriend
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 10:00 Go to previous messageGo to next message
Eclipse UserFriend
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 03:13 Go to previous message
Eclipse UserFriend
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: Sat May 24 13:08:32 EDT 2025

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

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

Back to the top