Skip to content

Instantly share code, notes, and snippets.

@dennischen
Last active December 5, 2019 02:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dennischen/b350137389829e0058d32f1fcf96834b to your computer and use it in GitHub Desktop.
Save dennischen/b350137389829e0058d32f1fcf96834b to your computer and use it in GitHub Desktop.
Yingzhun, UserCenter Entry Point Hint
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);
}
}
<?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>
<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