java wizard FilterComponent: TODO annotations

Change-Id: I43ce0793306815988e39ba0735abd68f2022eaea
This commit is contained in:
Lionel Elie Mamane 2013-05-19 13:21:27 +02:00
parent 48b29cd42b
commit 7bcebc31ed

View File

@ -270,6 +270,7 @@ public class FilterComponent
case DataType.DATE:
value = ((Double) value) - oQueryMetaData.getNullDateCorrection();
break;
// TODO: TIME case?
}
column.removeProperty("Value");
final short operator = currentControlRow.getSelectedOperator();
@ -777,10 +778,12 @@ public class FilterComponent
String sValue = AnyConverter.toString(_filtercondition.Value);
if (sValue.indexOf("{D '") > -1)
{
// TODO: this seems to never happen?
sValue = JavaTools.replaceSubString(sValue, PropertyNames.EMPTY_STRING, "{D '");
sValue = JavaTools.replaceSubString(sValue, PropertyNames.EMPTY_STRING, "' }");
try
{
//Helper.setUnoPropertyValue(UnoDialog.getModel(ControlElements[SOTXTVALUE]), "EffectiveValue", );
oQueryMetaData.getNumberFormatter().convertStringToNumber(iDateFormat, sValue);
}
catch (java.lang.Exception ex)
@ -790,10 +793,12 @@ public class FilterComponent
}
else if (sValue.indexOf("{T '") > -1)
{
// TODO: this seems to never happen?
sValue = JavaTools.replaceSubString(sValue, PropertyNames.EMPTY_STRING, "{T '");
sValue = JavaTools.replaceSubString(sValue, PropertyNames.EMPTY_STRING, "' }");
try
{
//Helper.setUnoPropertyValue(UnoDialog.getModel(ControlElements[SOTXTVALUE]), "EffectiveValue", );
oQueryMetaData.getNumberFormatter().convertStringToNumber(iTimeFormat, sValue);
}
catch (java.lang.Exception ex)
@ -801,6 +806,12 @@ public class FilterComponent
Logger.getLogger(FilterComponent.class.getName()).log(Level.SEVERE, null, ex);
}
}
// TODO: TS case?
//TODO: other datetime formats?
else
{
//Helper.setUnoPropertyValue(UnoDialog.getModel(ControlElements[SOTXTVALUE]), "EffectiveValue", sValue);
}
}
else if (AnyConverter.isBoolean(_filtercondition.Value))
{