public class DefaultCockpitActionsRenderer extends Object implements CockpitComponentsRenderer
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
DefaultCockpitActionsRenderer.ExtendedActionGroupEventListener<E extends org.zkoss.zk.ui.event.Event>
Marker interface for events created by action renderer.
|
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ACTION_GROUP_QUALIFIER |
static String |
DEFAULT_QUALIFIER |
static String |
SCALSS_YA_EXTENDED_GROUP_CNT |
static String |
SCALSS_YA_SPLIT_GROUP_CNT |
static String |
SCALSS_YA_THREE_DOTS_GROUP_CNT |
static String |
SCLASS_ACTION_GROUP_POPUP |
static String |
SCLASS_YA_ACTION_SELECTOR_BUTTON |
static String |
SCLASS_YA_THREE_DOTS_GROUP_POPUP |
static String |
YA_CNG_EXTENDED_ACTION_CONTAINER_HOVER |
| Constructor and Description |
|---|
DefaultCockpitActionsRenderer() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
adjustUri(ActionContext context,
String uri) |
protected void |
cleanUpActionComponents(AbstractCockpitElementsContainer parent,
Set<org.zkoss.zk.ui.HtmlBasedComponent> groupContainers) |
protected void |
closeSubActionsPopups(org.zkoss.zk.ui.Component component) |
protected String |
computeGroupQualifier(ActionGroup groupConfig) |
protected org.zkoss.zul.Toolbarbutton |
createToolbarbuttonForActionGroupSplit(org.zkoss.zul.Popup popup) |
protected String |
extractIconDisabledUri(ActionContext context) |
protected String |
extractIconHoverUri(ActionContext context) |
protected String |
extractIconUri(ActionContext context) |
protected String |
extractParam(Action action,
String paramName) |
protected Optional<Action> |
findExtendedActionOnActionComponents(Action extendedAction,
Collection<Action> actionComponents) |
protected String |
generateActionUID(AbstractCockpitElementsContainer parent,
ActionGroup groupConfig,
Action actionConfig) |
protected Optional<Action> |
getFirstFromActionComponents(Set<Action> actionComponents) |
protected ActionGroup |
getGroupConfig(Actions configuration,
String groupId) |
KeyboardSupportService |
getKeyboardSupportService() |
LabelService |
getLabelService() |
protected Optional<Action> |
getLastFromActionComponents(Set<Action> actionComponents) |
protected Action |
getOrCreateActionComponent(AbstractCockpitElementsContainer elementsContainer,
org.zkoss.zk.ui.Component parent,
Action actionConfig,
Set<Action> actionComponents) |
protected org.zkoss.zk.ui.HtmlBasedComponent |
getOrCreateGroupContainer(AbstractCockpitElementsContainer parent,
ActionGroup groupConfig) |
protected org.zkoss.zul.Label |
getOrCreateGroupLabel(org.zkoss.zk.ui.Component container) |
protected boolean |
groupQualifierEquals(String quali1,
String quali2) |
protected boolean |
isOnlyOneGroup(Actions actions) |
protected void |
processGroupHeader(AbstractCockpitElementsContainer parent,
ActionGroup groupConfig,
org.zkoss.zk.ui.HtmlBasedComponent container,
boolean showGroupHeader) |
protected void |
registerHoverEventsOnContainer(org.zkoss.zk.ui.HtmlBasedComponent container,
org.zkoss.zul.Image icon,
String iconUri,
String iconHoverUri) |
protected void |
removeChildActionsNonExistingInActionComponents(Set<Action> actionComponents,
List<org.zkoss.zk.ui.Component> children) |
protected void |
removeEventListeners(org.zkoss.zk.ui.Component container,
String eventName) |
protected void |
removeEventListeners(org.zkoss.zk.ui.Component container,
String eventName,
Class type) |
protected void |
removeGroupLabel(org.zkoss.zk.ui.Component container) |
void |
render(AbstractCockpitElementsContainer parent,
Object configuration) |
protected Action |
renderAction(AbstractCockpitElementsContainer parent,
Action actionContainer,
Action actionConfig)
Renders single action with viewMode inherited from parent Actions tag.
|
protected Action |
renderAction(AbstractCockpitElementsContainer parent,
Action actionContainer,
Action actionConfig,
String viewMode)
Renders single action with given viewMode.
|
protected void |
renderAction(AbstractCockpitElementsContainer parent,
ActionGroup groupConfig,
org.zkoss.zk.ui.HtmlBasedComponent container,
Set<Action> actionComponents,
Action actionConfig) |
protected void |
renderAction(AbstractCockpitElementsContainer parent,
ActionGroup groupConfig,
org.zkoss.zk.ui.HtmlBasedComponent container,
Set<Action> actionComponents,
Action actionConfig,
String viewMode) |
protected void |
renderActionGroupExtended(AbstractCockpitElementsContainer parent,
ActionGroupExtended groupConfig,
org.zkoss.zk.ui.HtmlBasedComponent container,
Set<Action> actionComponents) |
protected void |
renderActionGroupExtendedClickableArea(org.zkoss.zk.ui.HtmlBasedComponent container,
org.zkoss.zul.Popup popup,
Action action) |
protected void |
renderActionGroupSplit(AbstractCockpitElementsContainer parent,
ActionGroupSplit groupConfig,
org.zkoss.zk.ui.HtmlBasedComponent container,
Set<Action> actionComponents) |
protected void |
renderActionGroupThreeDots(AbstractCockpitElementsContainer parent,
ActionGroupThreeDots groupConfig,
org.zkoss.zk.ui.HtmlBasedComponent container,
Set<Action> actionComponents) |
protected void |
renderActionsForPopupInActionGroupSplit(AbstractCockpitElementsContainer parent,
ActionGroupSplit groupConfig,
Set<Action> actionComponents,
org.zkoss.zul.Popup popup,
List<Action> actionsForPopup) |
protected void |
renderAllGroups(AbstractCockpitElementsContainer parent,
Set<org.zkoss.zk.ui.HtmlBasedComponent> groupContainers,
Actions actions) |
protected org.zkoss.zk.ui.HtmlBasedComponent |
renderGroup(AbstractCockpitElementsContainer parent,
ActionGroup groupConfig,
boolean showGroupHeader) |
protected void |
renderGroupHeader(AbstractCockpitElementsContainer parent,
ActionGroup groupConfig,
org.zkoss.zk.ui.HtmlBasedComponent container) |
protected void |
renderPrimaryAction(AbstractCockpitElementsContainer parent,
ActionGroupSplit groupConfig,
Set<Action> actionComponents,
org.zkoss.zul.Popup popup,
Action primaryAction) |
protected void |
renderSingleGroup(AbstractCockpitElementsContainer parent,
Set<org.zkoss.zk.ui.HtmlBasedComponent> groupContainers,
Actions actions) |
protected Action |
resolvePrimaryAction(ActionGroupSplit groupConfig) |
protected boolean |
resolveShowGroupHeaderWhenManyGroups(ActionGroup actionGroup) |
public static final String DEFAULT_QUALIFIER
public static final String SCLASS_YA_ACTION_SELECTOR_BUTTON
public static final String SCALSS_YA_EXTENDED_GROUP_CNT
public static final String SCALSS_YA_SPLIT_GROUP_CNT
public static final String SCALSS_YA_THREE_DOTS_GROUP_CNT
public static final String SCLASS_ACTION_GROUP_POPUP
public static final String SCLASS_YA_THREE_DOTS_GROUP_POPUP
public static final String YA_CNG_EXTENDED_ACTION_CONTAINER_HOVER
protected static final String ACTION_GROUP_QUALIFIER
public void render(AbstractCockpitElementsContainer parent, Object configuration)
render in interface CockpitComponentsRendererprotected boolean isOnlyOneGroup(Actions actions)
protected void renderSingleGroup(AbstractCockpitElementsContainer parent, Set<org.zkoss.zk.ui.HtmlBasedComponent> groupContainers, Actions actions)
protected ActionGroup getGroupConfig(Actions configuration, String groupId)
protected void renderAllGroups(AbstractCockpitElementsContainer parent, Set<org.zkoss.zk.ui.HtmlBasedComponent> groupContainers, Actions actions)
protected boolean resolveShowGroupHeaderWhenManyGroups(ActionGroup actionGroup)
protected org.zkoss.zk.ui.HtmlBasedComponent renderGroup(AbstractCockpitElementsContainer parent, ActionGroup groupConfig, boolean showGroupHeader)
protected void renderActionGroupThreeDots(AbstractCockpitElementsContainer parent, ActionGroupThreeDots groupConfig, org.zkoss.zk.ui.HtmlBasedComponent container, Set<Action> actionComponents)
protected void processGroupHeader(AbstractCockpitElementsContainer parent, ActionGroup groupConfig, org.zkoss.zk.ui.HtmlBasedComponent container, boolean showGroupHeader)
protected void renderGroupHeader(AbstractCockpitElementsContainer parent, ActionGroup groupConfig, org.zkoss.zk.ui.HtmlBasedComponent container)
protected void renderActionGroupExtended(AbstractCockpitElementsContainer parent, ActionGroupExtended groupConfig, org.zkoss.zk.ui.HtmlBasedComponent container, Set<Action> actionComponents)
protected Optional<Action> getLastFromActionComponents(Set<Action> actionComponents)
protected Optional<Action> getFirstFromActionComponents(Set<Action> actionComponents)
protected Optional<Action> findExtendedActionOnActionComponents(Action extendedAction, Collection<Action> actionComponents)
protected void renderActionGroupExtendedClickableArea(org.zkoss.zk.ui.HtmlBasedComponent container,
org.zkoss.zul.Popup popup,
Action action)
protected void closeSubActionsPopups(org.zkoss.zk.ui.Component component)
protected String extractIconUri(ActionContext context)
protected String extractIconDisabledUri(ActionContext context)
protected String extractIconHoverUri(ActionContext context)
protected String adjustUri(ActionContext context, String uri)
protected void registerHoverEventsOnContainer(org.zkoss.zk.ui.HtmlBasedComponent container,
org.zkoss.zul.Image icon,
String iconUri,
String iconHoverUri)
protected void removeEventListeners(org.zkoss.zk.ui.Component container,
String eventName)
protected void removeEventListeners(org.zkoss.zk.ui.Component container,
String eventName,
Class type)
protected void renderActionGroupSplit(AbstractCockpitElementsContainer parent, ActionGroupSplit groupConfig, org.zkoss.zk.ui.HtmlBasedComponent container, Set<Action> actionComponents)
protected Action resolvePrimaryAction(ActionGroupSplit groupConfig)
protected void renderActionsForPopupInActionGroupSplit(AbstractCockpitElementsContainer parent, ActionGroupSplit groupConfig, Set<Action> actionComponents, org.zkoss.zul.Popup popup, List<Action> actionsForPopup)
protected void renderPrimaryAction(AbstractCockpitElementsContainer parent, ActionGroupSplit groupConfig, Set<Action> actionComponents, org.zkoss.zul.Popup popup, Action primaryAction)
protected org.zkoss.zul.Toolbarbutton createToolbarbuttonForActionGroupSplit(org.zkoss.zul.Popup popup)
protected void cleanUpActionComponents(AbstractCockpitElementsContainer parent, Set<org.zkoss.zk.ui.HtmlBasedComponent> groupContainers)
protected void renderAction(AbstractCockpitElementsContainer parent, ActionGroup groupConfig, org.zkoss.zk.ui.HtmlBasedComponent container, Set<Action> actionComponents, Action actionConfig)
protected void renderAction(AbstractCockpitElementsContainer parent, ActionGroup groupConfig, org.zkoss.zk.ui.HtmlBasedComponent container, Set<Action> actionComponents, Action actionConfig, String viewMode)
protected String generateActionUID(AbstractCockpitElementsContainer parent, ActionGroup groupConfig, Action actionConfig)
protected void removeChildActionsNonExistingInActionComponents(Set<Action> actionComponents, List<org.zkoss.zk.ui.Component> children)
protected org.zkoss.zk.ui.HtmlBasedComponent getOrCreateGroupContainer(AbstractCockpitElementsContainer parent, ActionGroup groupConfig)
protected String computeGroupQualifier(ActionGroup groupConfig)
protected org.zkoss.zul.Label getOrCreateGroupLabel(org.zkoss.zk.ui.Component container)
protected void removeGroupLabel(org.zkoss.zk.ui.Component container)
protected Action getOrCreateActionComponent(AbstractCockpitElementsContainer elementsContainer, org.zkoss.zk.ui.Component parent, Action actionConfig, Set<Action> actionComponents)
protected Action renderAction(AbstractCockpitElementsContainer parent, Action actionContainer, Action actionConfig)
protected Action renderAction(AbstractCockpitElementsContainer parent, Action actionContainer, Action actionConfig, String viewMode)
public KeyboardSupportService getKeyboardSupportService()
public LabelService getLabelService()
Copyright © 2018. All rights reserved.