From 3c267f1daa38d930b9de08c4c5db4fcadf6e9f9d Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Fri, 25 Mar 2011 23:09:53 -0500 Subject: [PATCH] Usability on zkwebui: * Increase usability on login window as the OK button is shown in the same place * Show always OK button at the top right, same as Swing client does --- .../webui/component/ConfirmPanel.java | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/ConfirmPanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/ConfirmPanel.java index 7bee3955f0..32b7fff2d5 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/ConfirmPanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/ConfirmPanel.java @@ -38,8 +38,8 @@ import org.zkoss.zul.Messagebox; **/ public final class ConfirmPanel extends Hbox { - /** - * + /** + * */ private static final long serialVersionUID = -6050634074454659578L; /** Action String OK. */ @@ -172,11 +172,11 @@ public final class ConfirmPanel extends Hbox init(); setVisible(A_CANCEL, withCancelButton); - addComponentsRight(createButton(A_OK)); - if (withCancelButton) addComponentsRight(createButton(A_CANCEL)); + addComponentsRight(createButton(A_OK)); + if (withRefreshButton) { addComponentsLeft(createButton(A_REFRESH)); @@ -400,10 +400,10 @@ public final class ConfirmPanel extends Hbox */ public void setEnabledAll(boolean enabled) { - List list1 = pnlBtnLeft.getChildren(); - List list2 = pnlBtnRight.getChildren(); - Iterator iter1 = list1.iterator(); - Iterator iter2 = list2.iterator(); + List list1 = pnlBtnLeft.getChildren(); + List list2 = pnlBtnRight.getChildren(); + Iterator iter1 = list1.iterator(); + Iterator iter2 = list2.iterator(); while (iter1.hasNext()) { @@ -423,10 +423,10 @@ public final class ConfirmPanel extends Hbox */ public void addActionListener(String event, EventListener listener) { - List list1 = pnlBtnLeft.getChildren(); - List list2 = pnlBtnRight.getChildren(); - Iterator iter1 = list1.iterator(); - Iterator iter2 = list2.iterator(); + List list1 = pnlBtnLeft.getChildren(); + List list2 = pnlBtnRight.getChildren(); + Iterator iter1 = list1.iterator(); + Iterator iter2 = list2.iterator(); while (iter1.hasNext()) {