{
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(PropertyNames.PROPERTY_LABEL, PropertyNames.EMPTY_STRING);
}
}
}
DatabaseControl aDBControl = DBControlList[i];
m_dbControlHeight = aDBControl.getControlHeight();
m_dbControlWidth = aDBControl.getControlWidth();
if (nFieldType != DataType.TIMESTAMP)
{
aDBControl.setSize(new Size(m_dbControlWidth, m_dbControlHeight));
}
if (aDBControl.getControlType() == FormHandler.SOCHECKBOX)
{
m_currentControlPosY = m_currentControlPosY + /*(int)*/ ((oFormHandler.getControlReferenceHeight() - m_dbControlHeight) / 2);
aPoint = new Point(m_currentControlPosX, m_currentControlPosY);
aDBControl.setPosition(aPoint);
}
if (nFieldType == DataType.LONGVARCHAR) /* memo */
{
Helper.setUnoPropertyValue(LabelControlList[i], PropertyNames.PROPERTY_MULTILINE, Boolean.TRUE);
}
checkOuterPoints(m_currentControlPosX, m_dbControlWidth, m_currentControlPosY, m_dbControlHeight, true);
aDBControl.setPropertyValue(PropertyNames.PROPERTY_BORDER, NBorderType);
}
catch (Exception e)
{
e.printStackTrace(System.out);
}