@@ -42,6 +42,12 @@ qx.Class.define("osparc.user.UserProfile", {
4242 COUNTRY : 4 ,
4343 POSTAL_CODE : 5 ,
4444 } ,
45+
46+ createLabel : function ( ) {
47+ return new qx . ui . basic . Label ( ) . set ( {
48+ selectable : true ,
49+ } ) ;
50+ } ,
4551 } ,
4652
4753 properties : {
@@ -81,7 +87,7 @@ qx.Class.define("osparc.user.UserProfile", {
8187 row : this . self ( ) . TOP_GRID . USERNAME ,
8288 column : 0
8389 } ) ;
84- control = new qx . ui . basic . Label ( ) ;
90+ control = this . self ( ) . createLabel ( ) ;
8591 this . getChildControl ( "top-info" ) . add ( control , {
8692 row : this . self ( ) . TOP_GRID . USERNAME ,
8793 column : 1
@@ -93,7 +99,7 @@ qx.Class.define("osparc.user.UserProfile", {
9399 row : this . self ( ) . TOP_GRID . FULLNAME ,
94100 column : 0
95101 } ) ;
96- control = new qx . ui . basic . Label ( ) ;
102+ control = this . self ( ) . createLabel ( ) ;
97103 this . getChildControl ( "top-info" ) . add ( control , {
98104 row : this . self ( ) . TOP_GRID . FULLNAME ,
99105 column : 1
@@ -105,7 +111,7 @@ qx.Class.define("osparc.user.UserProfile", {
105111 row : this . self ( ) . TOP_GRID . EMAIL ,
106112 column : 0
107113 } ) ;
108- control = new qx . ui . basic . Label ( ) ;
114+ control = this . self ( ) . createLabel ( ) ;
109115 this . getChildControl ( "top-info" ) . add ( control , {
110116 row : this . self ( ) . TOP_GRID . EMAIL ,
111117 column : 1
@@ -117,7 +123,7 @@ qx.Class.define("osparc.user.UserProfile", {
117123 row : this . self ( ) . TOP_GRID . PHONE ,
118124 column : 0
119125 } ) ;
120- control = new qx . ui . basic . Label ( ) ;
126+ control = this . self ( ) . createLabel ( ) ;
121127 this . getChildControl ( "top-info" ) . add ( control , {
122128 row : this . self ( ) . TOP_GRID . PHONE ,
123129 column : 1
@@ -129,7 +135,7 @@ qx.Class.define("osparc.user.UserProfile", {
129135 row : this . self ( ) . TOP_GRID . USER_ID ,
130136 column : 0
131137 } ) ;
132- control = new qx . ui . basic . Label ( ) ;
138+ control = this . self ( ) . createLabel ( ) ;
133139 this . getChildControl ( "top-info" ) . add ( control , {
134140 row : this . self ( ) . TOP_GRID . USER_ID ,
135141 column : 1
@@ -141,7 +147,7 @@ qx.Class.define("osparc.user.UserProfile", {
141147 row : this . self ( ) . TOP_GRID . GROUP_ID ,
142148 column : 0
143149 } ) ;
144- control = new qx . ui . basic . Label ( ) ;
150+ control = this . self ( ) . createLabel ( ) ;
145151 this . getChildControl ( "top-info" ) . add ( control , {
146152 row : this . self ( ) . TOP_GRID . GROUP_ID ,
147153 column : 1
@@ -153,7 +159,7 @@ qx.Class.define("osparc.user.UserProfile", {
153159 row : this . self ( ) . MIDDLE_GRID . INSTITUTION ,
154160 column : 0
155161 } ) ;
156- control = new qx . ui . basic . Label ( ) ;
162+ control = this . self ( ) . createLabel ( ) ;
157163 this . getChildControl ( "middle-info" ) . add ( control , {
158164 row : this . self ( ) . MIDDLE_GRID . INSTITUTION ,
159165 column : 1
@@ -164,7 +170,7 @@ qx.Class.define("osparc.user.UserProfile", {
164170 row : this . self ( ) . MIDDLE_GRID . ADDRESS ,
165171 column : 0
166172 } ) ;
167- control = new qx . ui . basic . Label ( ) ;
173+ control = this . self ( ) . createLabel ( ) ;
168174 this . getChildControl ( "middle-info" ) . add ( control , {
169175 row : this . self ( ) . MIDDLE_GRID . ADDRESS ,
170176 column : 1
@@ -175,7 +181,7 @@ qx.Class.define("osparc.user.UserProfile", {
175181 row : this . self ( ) . MIDDLE_GRID . CITY ,
176182 column : 0
177183 } ) ;
178- control = new qx . ui . basic . Label ( ) ;
184+ control = this . self ( ) . createLabel ( ) ;
179185 this . getChildControl ( "middle-info" ) . add ( control , {
180186 row : this . self ( ) . MIDDLE_GRID . CITY ,
181187 column : 1
@@ -186,7 +192,7 @@ qx.Class.define("osparc.user.UserProfile", {
186192 row : this . self ( ) . MIDDLE_GRID . STATE ,
187193 column : 0
188194 } ) ;
189- control = new qx . ui . basic . Label ( ) ;
195+ control = this . self ( ) . createLabel ( ) ;
190196 this . getChildControl ( "middle-info" ) . add ( control , {
191197 row : this . self ( ) . MIDDLE_GRID . STATE ,
192198 column : 1
@@ -197,7 +203,7 @@ qx.Class.define("osparc.user.UserProfile", {
197203 row : this . self ( ) . MIDDLE_GRID . COUNTRY ,
198204 column : 0
199205 } ) ;
200- control = new qx . ui . basic . Label ( ) ;
206+ control = this . self ( ) . createLabel ( ) ;
201207 this . getChildControl ( "middle-info" ) . add ( control , {
202208 row : this . self ( ) . MIDDLE_GRID . COUNTRY ,
203209 column : 1
@@ -208,7 +214,7 @@ qx.Class.define("osparc.user.UserProfile", {
208214 row : this . self ( ) . MIDDLE_GRID . POSTAL_CODE ,
209215 column : 0
210216 } ) ;
211- control = new qx . ui . basic . Label ( ) ;
217+ control = this . self ( ) . createLabel ( ) ;
212218 this . getChildControl ( "middle-info" ) . add ( control , {
213219 row : this . self ( ) . MIDDLE_GRID . POSTAL_CODE ,
214220 column : 1
0 commit comments