public class WidgetIdHelper
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
WidgetIdHelper.ContextContainer
Simple container that stores and returns a context-local instance of the global work area.
|
private static class |
WidgetIdHelper.WorkArea
Stores global data relating to the state of the current session context.
|
Modifier and Type | Field and Description |
---|---|
private static WidgetIdHelper.ContextContainer |
work
Stores session context-local state variables.
|
Constructor and Description |
---|
WidgetIdHelper() |
Modifier and Type | Method and Description |
---|---|
static int |
frameIdFromWidgetId(int widgetId)
Retrieve the ID of the frame containing the widget with a given ID.
|
static java.util.List<java.lang.Integer> |
getParentFrames(int widgetId)
Returns all parent frames up the root frame starting from the provided widget.
|
static void |
initWorker(WidgetIdWorker idWorkerInitial)
Initializes the proper widget ID worker on the client or server side.
|
private static WidgetIdHelper.ContextContainer work
public static void initWorker(WidgetIdWorker idWorkerInitial)
idWorkerInitial
- ID worker implementation for client side or server side.public static int frameIdFromWidgetId(int widgetId)
widgetId
- The widget ID.public static java.util.List<java.lang.Integer> getParentFrames(int widgetId)
widgetId
- A widget id.