Hi,

another method to just "hide" a property from the developer/user is to tag it
'internal' for the API-viewer.

This however does not make them any more private, but at least the API-Viewer
declares them as kind-of-private: internal ;)

Example:
<code>
  // ...
  properties : {
    /**
     * The foo property.
     * @internal
     */
    foo : {
      init : false,
      check : "Boolean"
    }
  }
  // ...
</code>

Peter


On 7/6/2012 1:32 PM Christopher Zündorf wrote:
> Properties are always public and have no private accessibility.
> 
> If you want to define a private property, please add a member variable and 
> create the getter/setter method.
> 
> Greetz Christopher
> 
> 
> Am 06.07.2012 um 13:20 schrieb totty:
> 
>> I'm not able to define private properties like this
>>
>> __myProp
>>
>> then
>>
>> I try this.__getMyProp();
>>
>> and doesn't work. How to do it, if it's possible?
>>
>> thanks
>>
>> --
>> View this message in context: 
>> http://qooxdoo.678.n2.nabble.com/How-to-define-qooxdoo-private-properties-and-use-getters-and-setters-tp7580559.html
>> Sent from the qooxdoo mailing list archive at Nabble.com.
>>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to