public class AdminModeToolbarComposer extends ViewAnnotationAwareComposer
| Constructor and Description |
|---|
AdminModeToolbarComposer() |
| Modifier and Type | Method and Description |
|---|---|
void |
changeRole(org.zkoss.zk.ui.event.InputEvent inputEvent)
Changes the active (impersonated) authority group according to the selected value in role selector combobox.
|
void |
clear()
Clears value of the role selector combobox.
|
void |
doAfterCompose(org.zkoss.zk.ui.Component comp) |
protected AuthorityGroup |
getCurrentImpersonationRole()
Returns current impersonation role
|
List<Resettable> |
getGroupChangeListeners() |
void |
onChangeOfRoleSelector() |
void |
onCreateWidgetClipboard() |
protected void |
populateRoleSelector()
Populates the role selector combo with all available authority groups defined.
|
void |
renderWidgetClipboard(org.zkoss.zk.ui.Component clipboardComponent,
org.zkoss.zul.Caption caption)
Renders content of clipboard.
|
void |
setGroupChangeListeners(List<Resettable> groupChangeListeners) |
void |
showSlotIds(Widgetslot slot) |
protected void |
sortAuthorityGroups(List<AuthorityGroup> allAuthorityGroups)
Performs simple alphanumeric sorting (by code) of authority groups.
|
void |
toggleRolePreviewEnabled(org.zkoss.zk.ui.event.CheckEvent inputEvent)
Sets the impersonated preview flag value according to the rolePreviewCheckbox value.
|
void |
updateRoleSelector()
Updates the role selector combo value according to current active authority group.
|
invokeListenerMethod, scanEventListenersalert, didActivate, getPage, willClone, willPassivatedoBeforeCompose, doBeforeComposeChildren, doCatch, doFinallypublic void doAfterCompose(org.zkoss.zk.ui.Component comp)
throws Exception
doAfterCompose in interface org.zkoss.zk.ui.util.Composer<org.zkoss.zk.ui.Component>doAfterCompose in class ViewAnnotationAwareComposerExceptionpublic void renderWidgetClipboard(org.zkoss.zk.ui.Component clipboardComponent,
org.zkoss.zul.Caption caption)
clipboardComponent - clipborad componentcaption - clipboard captionprotected void populateRoleSelector()
public void showSlotIds(Widgetslot slot)
protected void sortAuthorityGroups(List<AuthorityGroup> allAuthorityGroups)
allAuthorityGroups - IllegalStateException - if authority group with code equal null will exist in the list.public void changeRole(org.zkoss.zk.ui.event.InputEvent inputEvent)
inputEvent - public void updateRoleSelector()
protected AuthorityGroup getCurrentImpersonationRole()
public void clear()
public void toggleRolePreviewEnabled(org.zkoss.zk.ui.event.CheckEvent inputEvent)
inputEvent - public void onChangeOfRoleSelector()
public void onCreateWidgetClipboard()
public List<Resettable> getGroupChangeListeners()
public void setGroupChangeListeners(List<Resettable> groupChangeListeners)
groupChangeListeners - the groupChangeListeners to setCopyright © 2018. All rights reserved.