java wizard FilterComponent: TODO annotations
Change-Id: I43ce0793306815988e39ba0735abd68f2022eaea
This commit is contained in:
parent
48b29cd42b
commit
7bcebc31ed
@ -270,6 +270,7 @@ public class FilterComponent
|
|||||||
case DataType.DATE:
|
case DataType.DATE:
|
||||||
value = ((Double) value) - oQueryMetaData.getNullDateCorrection();
|
value = ((Double) value) - oQueryMetaData.getNullDateCorrection();
|
||||||
break;
|
break;
|
||||||
|
// TODO: TIME case?
|
||||||
}
|
}
|
||||||
column.removeProperty("Value");
|
column.removeProperty("Value");
|
||||||
final short operator = currentControlRow.getSelectedOperator();
|
final short operator = currentControlRow.getSelectedOperator();
|
||||||
@ -777,10 +778,12 @@ public class FilterComponent
|
|||||||
String sValue = AnyConverter.toString(_filtercondition.Value);
|
String sValue = AnyConverter.toString(_filtercondition.Value);
|
||||||
if (sValue.indexOf("{D '") > -1)
|
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, "{D '");
|
||||||
sValue = JavaTools.replaceSubString(sValue, PropertyNames.EMPTY_STRING, "' }");
|
sValue = JavaTools.replaceSubString(sValue, PropertyNames.EMPTY_STRING, "' }");
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
//Helper.setUnoPropertyValue(UnoDialog.getModel(ControlElements[SOTXTVALUE]), "EffectiveValue", );
|
||||||
oQueryMetaData.getNumberFormatter().convertStringToNumber(iDateFormat, sValue);
|
oQueryMetaData.getNumberFormatter().convertStringToNumber(iDateFormat, sValue);
|
||||||
}
|
}
|
||||||
catch (java.lang.Exception ex)
|
catch (java.lang.Exception ex)
|
||||||
@ -790,10 +793,12 @@ public class FilterComponent
|
|||||||
}
|
}
|
||||||
else if (sValue.indexOf("{T '") > -1)
|
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, "{T '");
|
||||||
sValue = JavaTools.replaceSubString(sValue, PropertyNames.EMPTY_STRING, "' }");
|
sValue = JavaTools.replaceSubString(sValue, PropertyNames.EMPTY_STRING, "' }");
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
//Helper.setUnoPropertyValue(UnoDialog.getModel(ControlElements[SOTXTVALUE]), "EffectiveValue", );
|
||||||
oQueryMetaData.getNumberFormatter().convertStringToNumber(iTimeFormat, sValue);
|
oQueryMetaData.getNumberFormatter().convertStringToNumber(iTimeFormat, sValue);
|
||||||
}
|
}
|
||||||
catch (java.lang.Exception ex)
|
catch (java.lang.Exception ex)
|
||||||
@ -801,6 +806,12 @@ public class FilterComponent
|
|||||||
Logger.getLogger(FilterComponent.class.getName()).log(Level.SEVERE, null, ex);
|
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))
|
else if (AnyConverter.isBoolean(_filtercondition.Value))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user