public boolean launchBeforeOpen()
{
try
{
XFixedText xLabelHead =
(XFixedText) UnoRuntime.queryInterface(XFixedText.class, xControlContainer.getControl(LBL_TABLEHEAD));
String headerValue = "*";
while (headerValue.length() < VNAME_LEN)
{
headerValue += " ";
}
headerValue += "Name";
while (headerValue.length() < NAME_LEN)
{
headerValue += " ";
}
headerValue += "Size";
while (headerValue.length() < SIZE_LEN)
{
headerValue += " ";
}
headerValue += "Mime-Type";
while (headerValue.length() < MIMETYPE_SIZE)
{
headerValue += " ";
}
headerValue += "Last Modified";
while (headerValue.length() < LASTMODIFIED_SIZE)
{
headerValue += " ";
}
headerValue += "Comments";
xLabelHead.setText(headerValue);
}
catch (Exception exc)
{
LOG.info("Unhandled exception: " + exc.getMessage(), exc);