{
DBControlList[i] = new TimeStampControl(new Resource(xMSF, "FormWizard", "dbw"), oFormHandler, xFormName, sFieldName, aPoint);
}
else
{
DBControlList[i] = new DatabaseControl(oFormHandler, xFormName, sFieldName, nFieldType, aPoint);
if (DBControlList[i].getControlType() == FormHandler.SOCHECKBOX)
{
// Checkboxes have no Label near by
DBControlList[i].setPropertyValue("Label", "");
}
}
}
DatabaseControl aDBControl = DBControlList[i];
nDBHeight = aDBControl.getControlHeight();
nDBWidth = aDBControl.getControlWidth();
if (nFieldType != DataType.TIMESTAMP)
{
aDBControl.setSize(new Size(nDBWidth, nDBHeight));
}
if (aDBControl.getControlType() == FormHandler.SOCHECKBOX)
{
nYDBPos = nYDBPos + /*(int)*/ ((oFormHandler.getControlReferenceHeight() - nDBHeight) / 2);
aPoint = new Point(nXDBPos, nYDBPos);
aDBControl.setPosition(aPoint);
}
if (nFieldType == DataType.LONGVARCHAR) /* memo */
{
Helper.setUnoPropertyValue(LabelControlList[i], "MultiLine", Boolean.TRUE);
}
checkOuterPoints(nXDBPos, nDBWidth, nYDBPos, nDBHeight, true);
aDBControl.setPropertyValue("Border", NBorderType);
}
catch (Exception e)
{
e.printStackTrace(System.out);
}