aboutsummaryrefslogtreecommitdiff
path: root/node_modules/montage/ui/bluemoon/textfield.reel/textfield.js
diff options
context:
space:
mode:
authorValerio Virgillito2012-02-03 12:20:10 -0800
committerValerio Virgillito2012-02-03 12:20:10 -0800
commite6e539f345f5e1ac36a595db5d1a1c3700715e88 (patch)
tree39846bf1570f9b5a4057b726c54905de9e9e1c02 /node_modules/montage/ui/bluemoon/textfield.reel/textfield.js
parent7950424cf704bb221971f4645406b01e6979db18 (diff)
parentc630ead20487c3948fa36448d3e7d5f7b5cba782 (diff)
downloadninja-e6e539f345f5e1ac36a595db5d1a1c3700715e88.tar.gz
Merge branch 'master' into components
Conflicts: node_modules/montage/ui/bluemoon/progress.reel/progress.html node_modules/montage/ui/image2.reel/image2.html node_modules/ninja-components/effect/desaturate-effect.js node_modules/ninja-components/effect/effect.js node_modules/ninja-components/effect/invert-effect.js node_modules/ninja-components/effect/kaliedoscope-effect.js node_modules/ninja-components/effect/multiply-effect.js node_modules/ninja-components/effect/sepia-effect.js node_modules/ninja-components/flow-controller.reel/flow-controller.html node_modules/ninja-components/flow-controller.reel/flow-controller.js node_modules/ninja-components/flow-offset.js node_modules/ninja-components/hottext.reel/hottext.css node_modules/ninja-components/hottext.reel/hottext.html node_modules/ninja-components/hottext.reel/hottext.js node_modules/ninja-components/hottextunit.reel/hottextunit.css node_modules/ninja-components/hottextunit.reel/hottextunit.html node_modules/ninja-components/hottextunit.reel/hottextunit.js node_modules/ninja-components/image2.reel/image2.html node_modules/ninja-components/image2.reel/image2.js node_modules/ninja-components/image3d.reel/image3d.html node_modules/ninja-components/image3d.reel/image3d.js node_modules/ninja-components/photo-editor.reel/photo-editor.css node_modules/ninja-components/photo-editor.reel/photo-editor.html node_modules/ninja-components/photo-editor.reel/photo-editor.js node_modules/ninja-components/slider-base.js user-document-templates/montage-application-cloud/appdelegate.js Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'node_modules/montage/ui/bluemoon/textfield.reel/textfield.js')
-rw-r--r--node_modules/montage/ui/bluemoon/textfield.reel/textfield.js56
1 files changed, 56 insertions, 0 deletions
diff --git a/node_modules/montage/ui/bluemoon/textfield.reel/textfield.js b/node_modules/montage/ui/bluemoon/textfield.reel/textfield.js
new file mode 100644
index 00000000..6de3d636
--- /dev/null
+++ b/node_modules/montage/ui/bluemoon/textfield.reel/textfield.js
@@ -0,0 +1,56 @@
1/* <copyright>
2 This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
3 No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/>
4 (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
5 </copyright> */
6/**
7 @module "montage/ui/bluemoon/textfield.reel"
8 @requires montage/core/core
9 @requires montage/ui/editable-text
10*/
11var Montage = require("montage").Montage,
12 EditableText = require("ui/editable-text").EditableText;
13/**
14 @class module:"montage/ui/bluemoon/textfield.reel".Textfield
15 @extends module:montage/ui/editable-text.EditableText
16*/
17var Textfield = exports.Textfield = Montage.create(EditableText,/** @lends module:"montage/ui/bluemoon/textfield.reel".Textfield# */ {
18/**
19 Description TODO
20 @type {Property}
21 @default null
22 */
23 delegate: {
24 enumerable: true,
25 value: null
26 },
27
28 _placeholder: {
29 value: null
30 },
31
32 placeholder: {
33 get: function() {
34 return this._placeholder;
35 },
36 set: function(value) {
37 if(this._placeholder !== value) {
38 this._placeholder = value;
39 this.needsDraw = true;
40 }
41 }
42 },
43/**
44 Description TODO
45 @private
46*/
47 _drawSpecific: {
48 enumerable: false,
49 value: function() {
50 this.element.classList.add('montage-textfield');
51
52 this.element.placeholder = this._placeholder;
53 }
54 }
55});
56