Package org.apache.hop.ui.hopgui.context
Class BaseGuiContextHandler<T extends IGuiContextHandler>
- java.lang.Object
-
- org.apache.hop.ui.hopgui.context.BaseGuiContextHandler<T>
-
- Direct Known Subclasses:
HopGuiPipelineContext,HopGuiPipelineHopContext,HopGuiPipelineNoteContext,HopGuiPipelineTransformContext,HopGuiWorkflowActionContext,HopGuiWorkflowContext,HopGuiWorkflowHopContext,HopGuiWorkflowNoteContext
public abstract class BaseGuiContextHandler<T extends IGuiContextHandler> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONTEXT_ID
-
Constructor Summary
Constructors Constructor Description BaseGuiContextHandler()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanevaluateActionFilter(GuiAction action, GuiActionFilter actionFilter)ClassLoaderfindClassLoader(GuiActionFilter actionFilter)abstract StringgetContextId()MethodgetFilterMethod(Class<?> filterClass, GuiActionFilter actionFilter)ObjectgetFilterObject(GuiActionFilter actionFilter)protected List<GuiAction>getPluginActions(boolean sortActionsById)Create a list of supported actions from the plugin GUI registry.
-
-
-
Field Detail
-
CONTEXT_ID
public static final String CONTEXT_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getContextId
public abstract String getContextId()
-
getPluginActions
protected List<GuiAction> getPluginActions(boolean sortActionsById)
Create a list of supported actions from the plugin GUI registry. If this is indicated as such the actions will be sorted by ID to deliver a consistent user experience. The actions are picked up from GuiContextAction annotations in the GuiPlugin classes.- Parameters:
sortActionsById- true if the actions need to be sorted by ID- Returns:
- The list of supported actions
-
findClassLoader
public ClassLoader findClassLoader(GuiActionFilter actionFilter)
-
getFilterObject
public Object getFilterObject(GuiActionFilter actionFilter) throws HopException
- Throws:
HopException
-
getFilterMethod
public Method getFilterMethod(Class<?> filterClass, GuiActionFilter actionFilter) throws HopException
- Throws:
HopException
-
evaluateActionFilter
public boolean evaluateActionFilter(GuiAction action, GuiActionFilter actionFilter) throws HopException
- Throws:
HopException
-
-