Last active
December 5, 2019 02:58
-
-
Save dennischen/b350137389829e0058d32f1fcf96834b to your computer and use it in GitHub Desktop.
Yingzhun, UserCenter Entry Point Hint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Functions { | |
public static final SecurityFunction PersonalProfile = new SecurityFunction("PersonalProfile", | |
(Set)Collections.asSet(new SimpleAction(Function.ACTION_EDIT)), | |
new SimpleUIInfo("~@/zechguard/PersonalProfile.zul","~./zechguard/imgs/function/PersonalProfile.png","l:zechguard.PersonalProfile")); | |
public static final SecurityFunction UserCenter = new SecurityFunction("UserCenter", | |
(Set)Collections.asSet(new SimpleAction(Function.ACTION_ADMIN)), | |
new SimpleUIInfo("~@/zechguard/UserCenter.zul","~./zechguard/imgs/function/FN_UserCenter.png","l:zechguard.UserCenter")); | |
static{ | |
FunctionTable.registerFunction(PersonalProfile); | |
FunctionTable.registerFunction(UserCenter); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<config> | |
<workspace> | |
<desktopActionBuilder> | |
<mainMenu> | |
<actions> | |
<action name="PersonalProfile" priority="100"> | |
<function width="400" height="450" multiple="false">PersonalProfile</function> | |
</action> | |
</actions> | |
</mainMenu> | |
<mainToolbar> | |
<actions> | |
<action name="UserCenter" priority="100"> | |
<function multiple="true">UserCenter</function> | |
</action> | |
</actions> | |
</mainToolbar> | |
</desktopActionBuilder> | |
</workspace> | |
</config> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<vlayout id="main" hflex="1" vflex="1" apply="com.zechster.zechguard.ui.ctrl.UserCenterCtrl"> | |
<singletabbox hflex="1" vflex="1" sclass="paddingless-tabbox icontabbox bottomline"> | |
... | |
</singletabbox> | |
</vlayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment