From da1d529d7500536745f7285dd95287562bd9ccc6 Mon Sep 17 00:00:00 2001 From: Kurt Zenker Date: Thu, 6 Jul 2006 13:32:44 +0000 Subject: INTEGRATION: CWS dbwizardpp4 (1.7.28); FILE MERGED 2006/06/22 08:20:32 bc 1.7.28.1: #i45673# Fieldcolumns now differentiate between Fieldname and DisplayfieldName --- wizards/com/sun/star/wizards/ui/TitlesComponent.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'wizards/com/sun') diff --git a/wizards/com/sun/star/wizards/ui/TitlesComponent.java b/wizards/com/sun/star/wizards/ui/TitlesComponent.java index 454ccc0d5e51..4ccf0cffa052 100644 --- a/wizards/com/sun/star/wizards/ui/TitlesComponent.java +++ b/wizards/com/sun/star/wizards/ui/TitlesComponent.java @@ -4,9 +4,9 @@ * * $RCSfile: TitlesComponent.java,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: vg $ $Date: 2006-04-07 13:25:55 $ + * last change: $Author: kz $ $Date: 2006-07-06 14:32:44 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -162,20 +162,21 @@ public class TitlesComponent extends ControlScroller{ else fieldtitles[i] = fieldnames[i]; } + else{ + fieldtitles[i] = fieldnames[i]; + } } } public String getFieldNameByTitleControl(Object _fieldtitlemodel){ - Map locfieldtitles = getFieldTitles(); String sTitleModelName = (String) Helper.getUnoPropertyValue(_fieldtitlemodel, "Name"); String sindex = JavaTools.getSuffixNumber(sTitleModelName); return (String) CurUnoDialog.getControlProperty(this.SOLABELPREFIX + sindex, "Label"); } - - public Map getFieldTitles() { + public String[] getFieldTitles(){ PropertyValue[][] titlelist = this.getScrollFieldValues(); PropertyValue[] currowproperties; PropertyValue curtitleproperty; @@ -185,7 +186,7 @@ public class TitlesComponent extends ControlScroller{ fieldtitles[i] = (String) curtitleproperty.Value; } refreshtitleset(); - return fieldtitleset; + return fieldtitles; } -- cgit