Skip to main content



      Home
Home » Archived » Sapphire » @Derived service that is editable
@Derived service that is editable [message #1131168] Thu, 10 October 2013 04:56 Go to next message
Eclipse UserFriend
Is there a way to make a Derived text field editable?

i.e.
@InitialValue(text = "Sample")
ValueProperty PROP_APP_NAME = new ValueProperty(TYPE, "AppName");

@Derived ( text = "${AppName}Bundle")
ValueProperty PROP_BUNDLE_NAME = new ValueProperty(TYPE, "BundleName");
Re: @Derived service that is editable [message #1131532 is a reply to message #1131168] Thu, 10 October 2013 12:12 Go to previous messageGo to next message
Eclipse UserFriend
It sounds like you want a regular value property with either @DefaultValue or @InitialValue.
Re: @Derived service that is editable [message #1133013 is a reply to message #1131532] Fri, 11 October 2013 10:50 Go to previous messageGo to next message
Eclipse UserFriend
Yes sort of, if AppName is changed i would like BundleName to reflect the changes. If BundleName is changed i would expect the dependency to be broken.

I could use @InitialValue if i could override the default behavior to allow the value to change dynamically after instantiation.

Re: @Derived service that is editable [message #1133188 is a reply to message #1133013] Fri, 11 October 2013 13:24 Go to previous message
Eclipse UserFriend
@InitialValue is applied only once when element is created. @DefaultValue on the other hand is constantly updating.
Previous Topic:Respond to carriage return in text box
Next Topic:Confirmation on Sapphire.Delete
Goto Forum:
  


Current Time: Thu Mar 27 00:29:07 EDT 2025

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

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

Back to the top