Login
Emiliano Heyns <[email protected]> Sun, 13 Apr 2003 17:19:21 +0200
| Newsgroups | gmane.comp.java.xwt.general |
|---|---|
| Message-ID | <[email protected]> |
Hi all,
I'm trying to do a pretty simplistic approach to login enforcement --
cover the entire UI with a login pane and only hide it when the user
successfully logs in. What I'm doing is this:
<template id="main" orient="vertical">
<tabpane id="tabs">
<nl.irisadvies.iris.accounts id="tab_accounts"
tabtext="[Accounts]"/>
<nl.irisadvies.iris.preferences tabtext="[Preferences]"/>
</tabpane>
<login absolute="true" color="lightGray"/>
</template>
Where login.xwt holds:
<xwt>
<template>
__KeyPress = function() {}
__KeyRelease = function() {}
__Click1 = function() {}
__Click2 = function() {}
__Click3 = function() {}
<box>
<box id="lblUsername" text="[Username:]" shrink="true"/>
<bevel form="down" thickness="2" shrink="true">
<edit id="username" width="100" text="" color="white"/>
</bevel>
</box>
<box>
<box id="lblPassword" text="[Password:]" shrink="true"/>
<bevel form="down" thickness="2" shrink="true">
<edit id="password" width="100" text="" color="white"/>
</bevel>
</box>
<box visible="false">
<box id="lblPasswordConfirm" text="[Password:]" shrink="true"/>
<bevel form="down" thickness="2" shrink="true">
<edit id="password" width="100" text="" color="white"/>
</bevel>
</box>
<button id="login"/>
<template/>
</xwt>
If I set 'absolute="true"' in the template in login.xwt, it doesn't do
anything. I must declare these properties in the 'call' to login in my
main template.
Additionally, when I don't set the color, it doesn't actually do
anthing, and the widgets below the login surface remain functional. I'd
have expected them to go dead, since there's a covering pane which
captures all the events. If I do set the color (I chose lightGray above)
the underlying widgets disappear, but I don't see the widgets in the
login pane either.
Emile
_______________________________________________
http://lists.xwt.org/listinfo/dev