]>
Commit | Line | Data |
---|---|---|
a13899c5 | 1 | /** @file\r |
2 | \r | |
3 | The file is used to create, update SourceFile of MSA/MBD file\r | |
4 | \r | |
5 | Copyright (c) 2006, Intel Corporation\r | |
6 | All rights reserved. This program and the accompanying materials\r | |
7 | are licensed and made available under the terms and conditions of the BSD License\r | |
8 | which accompanies this distribution. The full text of the license may be found at\r | |
9 | http://opensource.org/licenses/bsd-license.php\r | |
10 | \r | |
11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
12 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
13 | \r | |
14 | **/\r | |
15 | package org.tianocore.frameworkwizard.module.ui;\r | |
16 | \r | |
06a19cee | 17 | import java.awt.Dimension;\r |
a13899c5 | 18 | import java.awt.event.ActionEvent;\r |
19 | import java.awt.event.ComponentEvent;\r | |
06a19cee | 20 | import java.awt.event.MouseEvent;\r |
a13899c5 | 21 | import java.util.Vector;\r |
22 | \r | |
23 | import javax.swing.JButton;\r | |
24 | import javax.swing.JCheckBox;\r | |
a13899c5 | 25 | import javax.swing.JPanel;\r |
26 | import javax.swing.JScrollPane;\r | |
06a19cee | 27 | import javax.swing.JTable;\r |
28 | import javax.swing.ListSelectionModel;\r | |
29 | import javax.swing.event.ListSelectionEvent;\r | |
a13899c5 | 30 | \r |
31 | import org.tianocore.SourceFilesDocument;\r | |
32 | import org.tianocore.FilenameDocument.Filename;\r | |
33 | import org.tianocore.ModuleSurfaceAreaDocument.ModuleSurfaceArea;\r | |
34 | import org.tianocore.SourceFilesDocument.SourceFiles;\r | |
35 | import org.tianocore.frameworkwizard.common.DataType;\r | |
06a19cee | 36 | import org.tianocore.frameworkwizard.common.IDefaultTableModel;\r |
a13899c5 | 37 | import org.tianocore.frameworkwizard.common.Log;\r |
a13899c5 | 38 | import org.tianocore.frameworkwizard.common.Tools;\r |
79cb6fdb | 39 | import org.tianocore.frameworkwizard.common.Identifications.OpeningModuleType;\r |
06a19cee | 40 | import org.tianocore.frameworkwizard.common.ui.IFrame;\r |
a13899c5 | 41 | import org.tianocore.frameworkwizard.common.ui.IInternalFrame;\r |
79cb6fdb | 42 | import org.tianocore.frameworkwizard.module.Identifications.SourceFiles.SourceFilesIdentification;\r |
43 | import org.tianocore.frameworkwizard.module.Identifications.SourceFiles.SourceFilesVector;\r | |
06a19cee | 44 | import org.tianocore.frameworkwizard.module.ui.dialog.SourceFilesDlg;\r |
a13899c5 | 45 | \r |
46 | /**\r | |
47 | The class is used to create, update SourceFile of MSA/MBD file\r | |
48 | It extends IInternalFrame\r | |
49 | \r | |
a13899c5 | 50 | **/\r |
51 | public class ModuleSourceFiles extends IInternalFrame {\r | |
52 | \r | |
53 | ///\r | |
54 | /// Define class Serial Version UID\r | |
55 | ///\r | |
56 | private static final long serialVersionUID = -6765742852142775378L;\r | |
57 | \r | |
58 | //\r | |
59 | // Define class members\r | |
60 | //\r | |
61 | private SourceFilesDocument.SourceFiles sourceFiles = null;\r | |
62 | \r | |
a13899c5 | 63 | private JPanel jContentPane = null;\r |
64 | \r | |
a13899c5 | 65 | private JButton jButtonAdd = null;\r |
66 | \r | |
67 | private JButton jButtonRemove = null;\r | |
68 | \r | |
69 | private JButton jButtonUpdate = null;\r | |
70 | \r | |
71 | private JCheckBox jCheckBoxArch = null;\r | |
72 | \r | |
a13899c5 | 73 | private JScrollPane jScrollPane = null;\r |
74 | \r | |
06a19cee | 75 | private JScrollPane jScrollPaneTable = null;\r |
a13899c5 | 76 | \r |
06a19cee | 77 | private JTable jTable = null;\r |
a13899c5 | 78 | \r |
79 | //\r | |
80 | // Not used by UI\r | |
81 | //\r | |
82 | private OpeningModuleType omt = null;\r | |
a13899c5 | 83 | \r |
06a19cee | 84 | private ModuleSurfaceArea msa = null;\r |
a13899c5 | 85 | \r |
86 | private SourceFilesVector vSourceFiles = new SourceFilesVector();\r | |
87 | \r | |
06a19cee | 88 | private IDefaultTableModel model = null;\r |
a13899c5 | 89 | \r |
06a19cee | 90 | private int selectedRow = -1;\r |
a9e882c9 | 91 | \r |
92 | private IFrame parentFrame = null;\r | |
a13899c5 | 93 | \r |
94 | /**\r | |
95 | This method initializes jButtonAdd \r | |
96 | \r | |
97 | @return javax.swing.JButton jButtonAdd\r | |
98 | \r | |
99 | **/\r | |
100 | private JButton getJButtonAdd() {\r | |
101 | if (jButtonAdd == null) {\r | |
102 | jButtonAdd = new JButton();\r | |
3767c118 | 103 | jButtonAdd.setBounds(new java.awt.Rectangle(230, 220, 90, 20));\r |
a13899c5 | 104 | jButtonAdd.setText("Add");\r |
105 | jButtonAdd.addActionListener(this);\r | |
3767c118 | 106 | jButtonAdd.setPreferredSize(new java.awt.Dimension(90, 20));\r |
a13899c5 | 107 | }\r |
108 | return jButtonAdd;\r | |
109 | }\r | |
110 | \r | |
111 | /**\r | |
112 | This method initializes jButtonRemove \r | |
113 | \r | |
114 | @return javax.swing.JButton jButtonRemove\r | |
115 | \r | |
116 | **/\r | |
117 | private JButton getJButtonRemove() {\r | |
118 | if (jButtonRemove == null) {\r | |
119 | jButtonRemove = new JButton();\r | |
3767c118 | 120 | jButtonRemove.setBounds(new java.awt.Rectangle(400, 220, 90, 20));\r |
a13899c5 | 121 | jButtonRemove.setText("Remove");\r |
122 | jButtonRemove.addActionListener(this);\r | |
3767c118 | 123 | jButtonRemove.setPreferredSize(new java.awt.Dimension(90, 20));\r |
a13899c5 | 124 | }\r |
125 | return jButtonRemove;\r | |
126 | }\r | |
127 | \r | |
128 | /**\r | |
129 | This method initializes jButtonUpdate \r | |
130 | \r | |
131 | @return javax.swing.JButton jButtonUpdate\r | |
132 | \r | |
133 | **/\r | |
134 | private JButton getJButtonUpdate() {\r | |
135 | if (jButtonUpdate == null) {\r | |
136 | jButtonUpdate = new JButton();\r | |
3767c118 | 137 | jButtonUpdate.setBounds(new java.awt.Rectangle(315, 220, 90, 20));\r |
138 | jButtonUpdate.setPreferredSize(new java.awt.Dimension(90, 20));\r | |
06a19cee | 139 | jButtonUpdate.setText("Edit");\r |
a13899c5 | 140 | jButtonUpdate.addActionListener(this);\r |
141 | }\r | |
142 | return jButtonUpdate;\r | |
143 | }\r | |
144 | \r | |
a13899c5 | 145 | /**\r |
146 | This method initializes jScrollPane \r | |
147 | \r | |
148 | @return javax.swing.JScrollPane \r | |
149 | */\r | |
150 | private JScrollPane getJScrollPane() {\r | |
151 | if (jScrollPane == null) {\r | |
152 | jScrollPane = new JScrollPane();\r | |
153 | jScrollPane.setViewportView(getJContentPane());\r | |
154 | }\r | |
155 | return jScrollPane;\r | |
156 | }\r | |
157 | \r | |
158 | /**\r | |
06a19cee | 159 | * This method initializes jScrollPaneTable \r |
160 | * \r | |
161 | * @return javax.swing.JScrollPane \r | |
a13899c5 | 162 | */\r |
06a19cee | 163 | private JScrollPane getJScrollPaneTable() {\r |
164 | if (jScrollPaneTable == null) {\r | |
165 | jScrollPaneTable = new JScrollPane();\r | |
166 | jScrollPaneTable.setBounds(new java.awt.Rectangle(15, 10, 470, 420));\r | |
167 | jScrollPaneTable.setPreferredSize(new Dimension(470, 420));\r | |
168 | jScrollPaneTable.setViewportView(getJTable());\r | |
a13899c5 | 169 | }\r |
06a19cee | 170 | return jScrollPaneTable;\r |
a13899c5 | 171 | }\r |
172 | \r | |
173 | /**\r | |
06a19cee | 174 | * This method initializes jTable \r |
175 | * \r | |
176 | * @return javax.swing.JTable \r | |
a13899c5 | 177 | */\r |
06a19cee | 178 | private JTable getJTable() {\r |
179 | if (jTable == null) {\r | |
180 | jTable = new JTable();\r | |
181 | model = new IDefaultTableModel();\r | |
182 | jTable = new JTable(model);\r | |
183 | jTable.setRowHeight(20);\r | |
a13899c5 | 184 | \r |
06a19cee | 185 | model.addColumn("File Name");\r |
f9d0ab92 | 186 | model.addColumn("Tag Name");\r |
187 | model.addColumn("Tool Code");\r | |
188 | model.addColumn("Tool Chain Family");\r | |
a13899c5 | 189 | \r |
ff7bc6c4 | 190 | jTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);\r |
06a19cee | 191 | jTable.getSelectionModel().addListSelectionListener(this);\r |
192 | jTable.getModel().addTableModelListener(this);\r | |
193 | jTable.addMouseListener(this);\r | |
a13899c5 | 194 | }\r |
06a19cee | 195 | return jTable;\r |
a13899c5 | 196 | }\r |
197 | \r | |
198 | public static void main(String[] args) {\r | |
199 | \r | |
200 | }\r | |
201 | \r | |
202 | /**\r | |
203 | This is the default constructor\r | |
204 | \r | |
205 | **/\r | |
206 | public ModuleSourceFiles() {\r | |
207 | super();\r | |
208 | init();\r | |
209 | this.setVisible(true);\r | |
210 | }\r | |
211 | \r | |
212 | /**\r | |
213 | This is the override edit constructor\r | |
214 | \r | |
215 | @param \r | |
216 | \r | |
217 | **/\r | |
a9e882c9 | 218 | public ModuleSourceFiles(OpeningModuleType inOmt, IFrame iFrame) {\r |
a13899c5 | 219 | super();\r |
220 | this.omt = inOmt;\r | |
06a19cee | 221 | this.msa = omt.getXmlMsa();\r |
a9e882c9 | 222 | this.parentFrame = iFrame;\r |
a13899c5 | 223 | init(msa.getSourceFiles());\r |
224 | this.setVisible(true);\r | |
225 | }\r | |
226 | \r | |
227 | /** \r | |
228 | This method initializes this\r | |
229 | Fill values to all fields if these values are not empty\r | |
230 | \r | |
231 | \r | |
232 | @param inSourceFiles The input data of SourceFilesDocument.SourceFiles\r | |
233 | \r | |
234 | **/\r | |
235 | private void init(SourceFilesDocument.SourceFiles inSourceFiles) {\r | |
236 | init();\r | |
237 | this.sourceFiles = inSourceFiles;\r | |
238 | \r | |
239 | if (this.sourceFiles != null) {\r | |
240 | if (this.sourceFiles.getFilenameList().size() > 0) {\r | |
241 | for (int index = 0; index < this.sourceFiles.getFilenameList().size(); index++) {\r | |
242 | String name = sourceFiles.getFilenameList().get(index).getStringValue();\r | |
243 | String tagName = sourceFiles.getFilenameList().get(index).getTagName();\r | |
244 | String toolCode = sourceFiles.getFilenameList().get(index).getToolCode();\r | |
245 | String tcf = sourceFiles.getFilenameList().get(index).getToolChainFamily();\r | |
246 | String featureFlag = sourceFiles.getFilenameList().get(index).getFeatureFlag();\r | |
247 | Vector<String> arch = Tools.convertListToVector(sourceFiles.getFilenameList().get(index)\r | |
248 | .getSupArchList());\r | |
249 | SourceFilesIdentification sfid = new SourceFilesIdentification(name, tagName, toolCode, tcf,\r | |
250 | featureFlag, arch);\r | |
251 | vSourceFiles.addSourceFiles(sfid);\r | |
252 | }\r | |
253 | }\r | |
254 | }\r | |
06a19cee | 255 | showTable();\r |
a13899c5 | 256 | }\r |
257 | \r | |
258 | /**\r | |
259 | This method initializes this\r | |
260 | \r | |
261 | **/\r | |
262 | private void init() {\r | |
263 | this.setSize(500, 515);\r | |
264 | this.setContentPane(getJScrollPane());\r | |
265 | this.setTitle("Source Files");\r | |
a13899c5 | 266 | this.setViewMode(false);\r |
267 | }\r | |
268 | \r | |
269 | /**\r | |
270 | Disable all components when the mode is view\r | |
271 | \r | |
272 | @param isView true - The view mode; false - The non-view mode\r | |
273 | \r | |
274 | **/\r | |
275 | public void setViewMode(boolean isView) {\r | |
276 | if (isView) {\r | |
a13899c5 | 277 | this.jButtonAdd.setEnabled(!isView);\r |
278 | this.jButtonRemove.setEnabled(!isView);\r | |
279 | this.jButtonUpdate.setEnabled(!isView);\r | |
280 | this.jCheckBoxArch.setEnabled(!isView);\r | |
281 | }\r | |
282 | }\r | |
283 | \r | |
284 | /**\r | |
285 | This method initializes jContentPane\r | |
286 | \r | |
287 | @return javax.swing.JPanel jContentPane\r | |
288 | \r | |
289 | **/\r | |
290 | private JPanel getJContentPane() {\r | |
291 | if (jContentPane == null) {\r | |
a13899c5 | 292 | jContentPane = new JPanel();\r |
293 | jContentPane.setLayout(null);\r | |
294 | jContentPane.setPreferredSize(new java.awt.Dimension(490, 490));\r | |
295 | \r | |
a13899c5 | 296 | jContentPane.add(getJButtonAdd(), null);\r |
297 | jContentPane.add(getJButtonRemove(), null);\r | |
298 | jContentPane.add(getJButtonUpdate(), null);\r | |
06a19cee | 299 | jContentPane.add(getJScrollPaneTable(), null);\r |
a13899c5 | 300 | }\r |
301 | return jContentPane;\r | |
302 | }\r | |
303 | \r | |
a13899c5 | 304 | /**\r |
305 | Save all components of SourceFiles\r | |
306 | if exists sourceFiles, set the value directly\r | |
307 | if not exists sourceFiles, new an instance first\r | |
308 | \r | |
309 | **/\r | |
310 | public void save() {\r | |
311 | try {\r | |
312 | //\r | |
313 | //Save as file name\r | |
314 | //\r | |
315 | int count = this.vSourceFiles.size();\r | |
316 | \r | |
317 | this.sourceFiles = SourceFiles.Factory.newInstance();\r | |
318 | if (count > 0) {\r | |
319 | for (int index = 0; index < count; index++) {\r | |
320 | Filename mFilename = Filename.Factory.newInstance();\r | |
321 | if (!isEmpty(vSourceFiles.getSourceFiles(index).getFilename())) {\r | |
322 | mFilename.setStringValue(vSourceFiles.getSourceFiles(index).getFilename());\r | |
323 | }\r | |
324 | if (!isEmpty(vSourceFiles.getSourceFiles(index).getTagName())) {\r | |
325 | mFilename.setTagName(vSourceFiles.getSourceFiles(index).getTagName());\r | |
326 | }\r | |
327 | if (!isEmpty(vSourceFiles.getSourceFiles(index).getToolCode())) {\r | |
328 | mFilename.setToolCode(vSourceFiles.getSourceFiles(index).getToolCode());\r | |
329 | }\r | |
330 | if (!isEmpty(vSourceFiles.getSourceFiles(index).getToolChainFamily())) {\r | |
331 | mFilename.setToolChainFamily(vSourceFiles.getSourceFiles(index).getToolChainFamily());\r | |
332 | }\r | |
333 | if (!isEmpty(vSourceFiles.getSourceFiles(index).getFeatureFlag())) {\r | |
334 | mFilename.setFeatureFlag(vSourceFiles.getSourceFiles(index).getFeatureFlag());\r | |
335 | }\r | |
336 | if (vSourceFiles.getSourceFiles(index).getSupArchList() != null\r | |
337 | && vSourceFiles.getSourceFiles(index).getSupArchList().size() > 0) {\r | |
338 | mFilename.setSupArchList(vSourceFiles.getSourceFiles(index).getSupArchList());\r | |
339 | }\r | |
340 | \r | |
341 | this.sourceFiles.addNewFilename();\r | |
342 | this.sourceFiles.setFilenameArray(index, mFilename);\r | |
343 | }\r | |
344 | }\r | |
345 | this.msa.setSourceFiles(sourceFiles);\r | |
346 | this.omt.setSaved(false);\r | |
347 | } catch (Exception e) {\r | |
ed1665f2 | 348 | Log.wrn("Update Source Files", e.getMessage());\r |
a13899c5 | 349 | Log.err("Update Source Files", e.getMessage());\r |
350 | }\r | |
351 | }\r | |
352 | \r | |
06a19cee | 353 | private void showEdit(int index) {\r |
a9e882c9 | 354 | SourceFilesDlg sfd = new SourceFilesDlg(this.vSourceFiles.getSourceFiles(index), this.parentFrame, omt.getId());\r |
06a19cee | 355 | int result = sfd.showDialog();\r |
356 | if (result == DataType.RETURN_TYPE_OK) {\r | |
357 | if (index == -1) {\r | |
2003a22e | 358 | for (int indexI = 0; indexI < sfd.getSfid().length; indexI++) {\r |
359 | this.vSourceFiles.addSourceFiles(sfd.getSfid()[indexI]);\r | |
360 | }\r | |
06a19cee | 361 | } else {\r |
2003a22e | 362 | this.vSourceFiles.setSourceFiles(sfd.getSfid()[0], index);\r |
06a19cee | 363 | }\r |
364 | this.showTable();\r | |
365 | this.save();\r | |
366 | sfd.dispose();\r | |
367 | }\r | |
368 | if (result == DataType.RETURN_TYPE_CANCEL) {\r | |
369 | sfd.dispose();\r | |
370 | }\r | |
371 | }\r | |
372 | \r | |
373 | /* (non-Javadoc)\r | |
374 | * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)\r | |
375 | *\r | |
376 | * Override actionPerformed to listen all actions\r | |
377 | * \r | |
378 | */\r | |
379 | public void actionPerformed(ActionEvent arg0) {\r | |
380 | if (arg0.getSource() == jButtonAdd) {\r | |
381 | showEdit(-1);\r | |
382 | }\r | |
383 | if (arg0.getSource() == jButtonUpdate) {\r | |
384 | if (this.selectedRow < 0) {\r | |
ed1665f2 | 385 | Log.wrn("Update Source Files", "Please select one record first.");\r |
06a19cee | 386 | return;\r |
387 | }\r | |
388 | showEdit(selectedRow);\r | |
389 | }\r | |
390 | \r | |
391 | if (arg0.getSource() == jButtonRemove) {\r | |
392 | if (jTable.isEditing()) {\r | |
393 | jTable.getCellEditor().stopCellEditing();\r | |
394 | }\r | |
ff7bc6c4 | 395 | \r |
396 | int selectedRows[] = this.jTable.getSelectedRows();\r | |
397 | \r | |
398 | if (selectedRows != null) {\r | |
399 | for (int index = selectedRows.length - 1; index > -1; index--) {\r | |
400 | this.model.removeRow(selectedRows[index]);\r | |
401 | this.vSourceFiles.removeSourceFiles(selectedRows[index]);\r | |
402 | }\r | |
06a19cee | 403 | selectedRow = -1;\r |
404 | this.save();\r | |
405 | }\r | |
406 | }\r | |
407 | }\r | |
408 | \r | |
a13899c5 | 409 | /**\r |
06a19cee | 410 | Clear all table rows\r |
a13899c5 | 411 | \r |
412 | **/\r | |
06a19cee | 413 | private void clearAll() {\r |
414 | if (model != null) {\r | |
415 | for (int index = model.getRowCount() - 1; index >= 0; index--) {\r | |
416 | model.removeRow(index);\r | |
417 | }\r | |
418 | }\r | |
419 | }\r | |
a13899c5 | 420 | \r |
06a19cee | 421 | /**\r |
422 | Read content of vector and put then into table\r | |
423 | \r | |
424 | **/\r | |
425 | private void showTable() {\r | |
426 | clearAll();\r | |
427 | \r | |
428 | if (vSourceFiles.size() > 0) {\r | |
429 | for (int index = 0; index < vSourceFiles.size(); index++) {\r | |
430 | model.addRow(vSourceFiles.toStringVector(index));\r | |
431 | }\r | |
432 | }\r | |
433 | this.jTable.repaint();\r | |
434 | this.jTable.updateUI();\r | |
435 | //this.jScrollPane.setViewportView(this.jTable);\r | |
436 | }\r | |
437 | \r | |
438 | /* (non-Javadoc)\r | |
439 | * @see javax.swing.event.ListSelectionListener#valueChanged(javax.swing.event.ListSelectionEvent)\r | |
440 | *\r | |
441 | */\r | |
442 | public void valueChanged(ListSelectionEvent arg0) {\r | |
443 | if (arg0.getValueIsAdjusting()) {\r | |
444 | return;\r | |
445 | }\r | |
446 | ListSelectionModel lsm = (ListSelectionModel) arg0.getSource();\r | |
447 | if (lsm.isSelectionEmpty()) {\r | |
448 | return;\r | |
449 | } else {\r | |
450 | selectedRow = lsm.getMinSelectionIndex();\r | |
451 | }\r | |
452 | }\r | |
453 | \r | |
454 | /* (non-Javadoc)\r | |
455 | * @see java.awt.event.MouseListener#mouseClicked(java.awt.event.MouseEvent)\r | |
456 | *\r | |
457 | */\r | |
458 | public void mouseClicked(MouseEvent arg0) {\r | |
459 | if (arg0.getClickCount() == 2) {\r | |
460 | if (this.selectedRow < 0) {\r | |
461 | return;\r | |
462 | } else {\r | |
463 | showEdit(selectedRow);\r | |
464 | }\r | |
a13899c5 | 465 | }\r |
466 | }\r | |
467 | \r | |
468 | /* (non-Javadoc)\r | |
469 | * @see java.awt.event.ComponentListener#componentResized(java.awt.event.ComponentEvent)\r | |
470 | * \r | |
471 | * Override componentResized to resize all components when frame's size is changed\r | |
472 | */\r | |
473 | public void componentResized(ComponentEvent arg0) {\r | |
474 | int intCurrentWidth = this.getJContentPane().getWidth();\r | |
475 | int intCurrentHeight = this.getJContentPane().getHeight();\r | |
476 | int intPreferredWidth = this.getJContentPane().getPreferredSize().width;\r | |
477 | int intPreferredHeight = this.getJContentPane().getPreferredSize().height;\r | |
478 | \r | |
8792f60f | 479 | Tools.resizeComponent(this.jScrollPaneTable, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r |
480 | intPreferredHeight);\r | |
481 | Tools.relocateComponent(this.jButtonAdd, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r | |
482 | intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_ADD_BUTTON,\r | |
483 | DataType.SPACE_TO_BOTTOM_FOR_ADD_BUTTON);\r | |
484 | Tools.relocateComponent(this.jButtonRemove, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r | |
485 | intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_REMOVE_BUTTON,\r | |
486 | DataType.SPACE_TO_BOTTOM_FOR_REMOVE_BUTTON);\r | |
487 | Tools.relocateComponent(this.jButtonUpdate, intCurrentWidth, intCurrentHeight, intPreferredWidth,\r | |
488 | intPreferredHeight, DataType.SPACE_TO_RIGHT_FOR_UPDATE_BUTTON,\r | |
489 | DataType.SPACE_TO_BOTTOM_FOR_UPDATE_BUTTON);\r | |
a13899c5 | 490 | }\r |
491 | }\r |