public class ActionComponentUtils extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
ActionComponentUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
formatNodeElement(ActionComponent nodeElement,
ActionbarContext context,
ActionDefinition definition)
Initialises component representation of action - sets its labels, images, etc.
|
static <D extends ActionDefinition> |
getDefinition(org.zkoss.zk.ui.HtmlBasedComponent nodeComponent)
Gets a definition bound to provided component representation
|
static String |
getLabel(ActionbarContext context,
String locKey,
String fallback)
Returns label for provided localized key
|
static void |
initComponent(ActionComponent nodeElement,
ActionbarContext context,
ActionDefinition definition)
Initialises component representation of action - stores all needed meta data, sets test ids, etc.
|
public static String getLabel(ActionbarContext context, String locKey, String fallback)
context - bar contextlocKey - key to be foundfallback - fallback label to be returned if no label for key foundpublic static void formatNodeElement(ActionComponent nodeElement, ActionbarContext context, ActionDefinition definition)
nodeElement - component representationcontext - bar contextdefinition - action definitionpublic static void initComponent(ActionComponent nodeElement, ActionbarContext context, ActionDefinition definition)
nodeElement - component representationcontext - bar contextdefinition - action definitionpublic static <D extends ActionDefinition> D getDefinition(org.zkoss.zk.ui.HtmlBasedComponent nodeComponent)
D - type of definition expectednodeComponent - component representationnull if a component does not represent any actionCopyright © 2018. All rights reserved.