* [ 2158633 ] CommitWarning in ad_tab is ignore
* AboutWindow layout not correct for 3.5.1
This commit is contained in:
parent
46c533d762
commit
c6d2cdea7c
|
@ -917,9 +917,9 @@ public class Desktop extends AbstractUIPart implements MenuListener, Serializabl
|
|||
public void showWindow(Window win, String pos)
|
||||
{
|
||||
win.setPage(page);
|
||||
Object objMode = win.getAttribute("mode");
|
||||
Object objMode = win.getAttribute(Window.MODE_KEY);
|
||||
|
||||
String mode = "modal";
|
||||
String mode = Window.MODE_MODAL;
|
||||
|
||||
if (objMode != null)
|
||||
{
|
||||
|
|
|
@ -224,13 +224,13 @@ public class Messagebox extends Window implements EventListener
|
|||
this.setWidth("500px");
|
||||
this.setPosition("center");
|
||||
this.setClosable(true);
|
||||
this.setAttribute("mode", "modal");
|
||||
this.setAttribute(Window.MODE_KEY, Window.MODE_MODAL);
|
||||
this.setSizable(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.setTitle(title);
|
||||
this.setAttribute("mode", "overlapped");
|
||||
this.setAttribute(Window.MODE_KEY, Window.MODE_OVERLAPPED);
|
||||
this.setWidth("500px");
|
||||
this.setClosable(true);
|
||||
this.setSizable(true);
|
||||
|
|
|
@ -548,7 +548,8 @@ public abstract class AbstractADWindowPanel extends AbstractUIPart implements To
|
|||
if (curTab.needSave(true, true))
|
||||
{
|
||||
// Automatic Save
|
||||
if (Env.isAutoCommit(ctx, curWindowNo))
|
||||
if (Env.isAutoCommit(ctx, curWindowNo)
|
||||
&& (curTab.getCommitWarning() == null || curTab.getCommitWarning().trim().length() == 0))
|
||||
{
|
||||
if (!curTab.dataSave(true))
|
||||
{
|
||||
|
@ -922,6 +923,13 @@ public abstract class AbstractADWindowPanel extends AbstractUIPart implements To
|
|||
}
|
||||
else
|
||||
{
|
||||
if (curTab.getCommitWarning() != null && curTab.getCommitWarning().trim().length() > 0)
|
||||
{
|
||||
if (!FDialog.ask(curWindowNo, this.getComponent(), "SaveChanges?", curTab.getCommitWarning()))
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
boolean retValue = curTab.dataSave(true);
|
||||
|
||||
if (!retValue)
|
||||
|
|
|
@ -84,14 +84,14 @@ public class AboutWindow extends Window implements EventListener {
|
|||
|
||||
tabbox = new Tabbox();
|
||||
tabbox.setParent(layout);
|
||||
tabbox.setWidth("490px");
|
||||
tabbox.setWidth("480px");
|
||||
tabbox.setHeight("380px");
|
||||
// tabbox.setSclass("lite");
|
||||
Tabs tabs = new Tabs();
|
||||
tabs.setParent(tabbox);
|
||||
tabPanels = new Tabpanels();
|
||||
tabPanels.setParent(tabbox);
|
||||
tabPanels.setWidth("490px");
|
||||
tabPanels.setWidth("480px");
|
||||
|
||||
//about
|
||||
Tab tab = new Tab();
|
||||
|
@ -363,13 +363,13 @@ public class AboutWindow extends Window implements EventListener {
|
|||
int width = Integer.parseInt(event.getWidth().substring(0, event.getWidth().length() - 2));
|
||||
int height = Integer.parseInt(event.getHeight().substring(0, event.getHeight().length() - 2));
|
||||
|
||||
tabbox.setWidth((width - 10) + "px");
|
||||
tabbox.setWidth((width - 20) + "px");
|
||||
tabbox.setHeight((height - 70) + "px");
|
||||
|
||||
tabPanels.setWidth((width - 10) + "px");
|
||||
tabPanels.setWidth((width - 20) + "px");
|
||||
|
||||
logTable.setHeight((height - 140) + "px");
|
||||
logTable.setWidth((width - 20) + "px");
|
||||
logTable.setWidth((width - 30) + "px");
|
||||
}
|
||||
|
||||
private void downloadLog() {
|
||||
|
|
Loading…
Reference in New Issue