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
This commit is contained in:
Carlos Ruiz 2011-03-25 23:09:53 -05:00
parent 00244fe0b4
commit 3c267f1daa
1 changed files with 12 additions and 12 deletions

View File

@ -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())
{