Class UnitPlugin
- java.lang.Object
-
- org.hippoecm.frontend.plugin.Plugin
-
- org.hippoecm.frontend.plugins.yui.layout.UnitPlugin
-
- All Implemented Interfaces:
Serializable
,org.apache.wicket.util.io.IClusterable
,IPlugin
,IBehaviorService
public class UnitPlugin extends Plugin implements IBehaviorService
Special purposePlugin
that allows us to add the behavior through configuration instead of adding it in code to our component. SeeIBehaviorService
andIPlugin
for more info.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.hippoecm.frontend.service.IBehaviorService
ID, PATH
-
-
Constructor Summary
Constructors Constructor Description UnitPlugin(IPluginContext context, IPluginConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.wicket.behavior.Behavior
getBehavior()
The behavior that should be added to the component at relative pathIBehaviorService.getComponentPath()
.String
getComponentPath()
-
Methods inherited from class org.hippoecm.frontend.plugin.Plugin
getPluginConfig, getPluginContext, start, stop
-
-
-
-
Constructor Detail
-
UnitPlugin
public UnitPlugin(IPluginContext context, IPluginConfig config)
-
-
Method Detail
-
getComponentPath
public String getComponentPath()
- Specified by:
getComponentPath
in interfaceIBehaviorService
-
getBehavior
public org.apache.wicket.behavior.Behavior getBehavior()
Description copied from interface:IBehaviorService
The behavior that should be added to the component at relative pathIBehaviorService.getComponentPath()
. Returned behaviors should implement#equals(Object)
and#hashCode()
such that multiple requests yield equivalent results.- Specified by:
getBehavior
in interfaceIBehaviorService
- Returns:
- the
Behavior
to be attached to the component.
-
-