FR [ 1783955 ] Add Information To Window Title

http://sourceforge.net/tracker/index.php?func=detail&aid=1783955&group_id=176962&atid=879335
This commit is contained in:
kthiemann 2007-09-25 11:41:30 +00:00
parent c62d9e709a
commit 37a8e961de
2 changed files with 15 additions and 1 deletions

View File

@ -1045,8 +1045,21 @@ public final class Env
public static String getHeader(Properties ctx, int WindowNo) public static String getHeader(Properties ctx, int WindowNo)
{ {
StringBuffer sb = new StringBuffer(); StringBuffer sb = new StringBuffer();
if (WindowNo > 0) if (WindowNo > 0){
sb.append(getContext(ctx, WindowNo, "WindowName", false)).append(" "); sb.append(getContext(ctx, WindowNo, "WindowName", false)).append(" ");
final String documentNo = getContext(ctx, WindowNo, "DocumentNo", false);
final String value = getContext(ctx, WindowNo, "Value", false);
final String name = getContext(ctx, WindowNo, "Name", false);
if(!"".equals(documentNo)) {
sb.append(documentNo).append(" ");
}
if(!"".equals(value)) {
sb.append(value).append(" ");
}
if(!"".equals(name)) {
sb.append(name).append(" ");
}
}
sb.append(getContext(ctx, "#AD_User_Name")).append("@") sb.append(getContext(ctx, "#AD_User_Name")).append("@")
.append(getContext(ctx, "#AD_Client_Name")).append(".") .append(getContext(ctx, "#AD_Client_Name")).append(".")
.append(getContext(ctx, "#AD_Org_Name")) .append(getContext(ctx, "#AD_Org_Name"))

View File

@ -818,6 +818,7 @@ public final class APanel extends CPanel
if (m_curTab != null && m_curTab.isQueryActive()) if (m_curTab != null && m_curTab.isQueryActive())
dbInfo = "[ " + dbInfo + " ]"; dbInfo = "[ " + dbInfo + " ]";
statusBar.setStatusDB(dbInfo, e); statusBar.setStatusDB(dbInfo, e);
m_window.setTitle(getTitle());
// Set Message / Info // Set Message / Info
if (e.getAD_Message() != null || e.getInfo() != null) if (e.getAD_Message() != null || e.getInfo() != null)