Skip to main content
Jump to: navigation, search

Difference between revisions of "Scout/Concepts/GetConfigured Methods"

(New page: {{ScoutPage|cat=Concepts}} == Description == Properties can be configured on a lot of elements (Page, Form, Fields, Table, Columns ...). {{ScoutLink|SDK|name=Scout SDK}} with the {{ScoutL...)
 
(Description)
Line 11: Line 11:
 
   }
 
   }
  
The Scout framework read the configured properties during the initialization, and adapt the behavior of the object depending to its configuration.
+
The Scout framework reads the configured properties during the initialization, and adapts the behavior of the object depending to its configuration. The <code>getXxxxxxx()</code> function should only return a constant. It is not expected to find an <code>if</code>-statement or call to another private or public method.
  
 
Often the properties can also be set dynamically with the corresponding setter [<code>setXxxxxxx()</code>]. To access the properties you can use the getter [<code>getXxxxxxx()</code>]. There should be no need to call <code>getConfiguredXxxxxxx()</code> function directly.
 
Often the properties can also be set dynamically with the corresponding setter [<code>setXxxxxxx()</code>]. To access the properties you can use the getter [<code>getXxxxxxx()</code>]. There should be no need to call <code>getConfiguredXxxxxxx()</code> function directly.
 
  
 
== See Also ==
 
== See Also ==

Revision as of 11:17, 20 October 2010


Scout
Wiki Home
Website
DownloadGit
Community
ForumsBlogTwitterG+
Bugzilla
Bugzilla


Description

Properties can be configured on a lot of elements (Page, Form, Fields, Table, Columns ...). Scout SDK with the Object Properties View offers a manner to configure theses properties very quickly.

In the code, a property is defined with special getter functions:

 @Override
 protected ... getConfiguredXxxxxxx() {
   return /*the value of the property*/
 }

The Scout framework reads the configured properties during the initialization, and adapts the behavior of the object depending to its configuration. The getXxxxxxx() function should only return a constant. It is not expected to find an if-statement or call to another private or public method.

Often the properties can also be set dynamically with the corresponding setter [setXxxxxxx()]. To access the properties you can use the getter [getXxxxxxx()]. There should be no need to call getConfiguredXxxxxxx() function directly.

See Also

Copyright © Eclipse Foundation, Inc. All Rights Reserved.