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:
parent
00244fe0b4
commit
3c267f1daa
|
@ -172,11 +172,11 @@ public final class ConfirmPanel extends Hbox
|
||||||
init();
|
init();
|
||||||
|
|
||||||
setVisible(A_CANCEL, withCancelButton);
|
setVisible(A_CANCEL, withCancelButton);
|
||||||
addComponentsRight(createButton(A_OK));
|
|
||||||
|
|
||||||
if (withCancelButton)
|
if (withCancelButton)
|
||||||
addComponentsRight(createButton(A_CANCEL));
|
addComponentsRight(createButton(A_CANCEL));
|
||||||
|
|
||||||
|
addComponentsRight(createButton(A_OK));
|
||||||
|
|
||||||
if (withRefreshButton)
|
if (withRefreshButton)
|
||||||
{
|
{
|
||||||
addComponentsLeft(createButton(A_REFRESH));
|
addComponentsLeft(createButton(A_REFRESH));
|
||||||
|
@ -400,10 +400,10 @@ public final class ConfirmPanel extends Hbox
|
||||||
*/
|
*/
|
||||||
public void setEnabledAll(boolean enabled)
|
public void setEnabledAll(boolean enabled)
|
||||||
{
|
{
|
||||||
List list1 = pnlBtnLeft.getChildren();
|
List<?> list1 = pnlBtnLeft.getChildren();
|
||||||
List list2 = pnlBtnRight.getChildren();
|
List<?> list2 = pnlBtnRight.getChildren();
|
||||||
Iterator iter1 = list1.iterator();
|
Iterator<?> iter1 = list1.iterator();
|
||||||
Iterator iter2 = list2.iterator();
|
Iterator<?> iter2 = list2.iterator();
|
||||||
|
|
||||||
while (iter1.hasNext())
|
while (iter1.hasNext())
|
||||||
{
|
{
|
||||||
|
@ -423,10 +423,10 @@ public final class ConfirmPanel extends Hbox
|
||||||
*/
|
*/
|
||||||
public void addActionListener(String event, EventListener listener)
|
public void addActionListener(String event, EventListener listener)
|
||||||
{
|
{
|
||||||
List list1 = pnlBtnLeft.getChildren();
|
List<?> list1 = pnlBtnLeft.getChildren();
|
||||||
List list2 = pnlBtnRight.getChildren();
|
List<?> list2 = pnlBtnRight.getChildren();
|
||||||
Iterator iter1 = list1.iterator();
|
Iterator<?> iter1 = list1.iterator();
|
||||||
Iterator iter2 = list2.iterator();
|
Iterator<?> iter2 = list2.iterator();
|
||||||
|
|
||||||
while (iter1.hasNext())
|
while (iter1.hasNext())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue