src/main/java/org/efaps/ui/wicket/components/menu/SlideIn.java
protected AjaxEventBehavior getBehavior(final Class<? extends Behavior> _class)
    {
        final SlideInPanel panel = (SlideInPanel) getParent();
        return panel.visitChildren(AjaxMenuItem.class, (_item,
         _visit) -> {
            final List<? extends Behavior> behaviors = _item.getBehaviors(_class);
            if (CollectionUtils.isNotEmpty(behaviors)) {
                _visit.stop((AjaxEventBehavior) behaviors.get(0));
            } else {
                _visit.stop();
            }
        });
    }
protected AjaxEventBehavior getBehavior(final Class<? extends Behavior> _class)
    {
        final SlideInPanel panel = (SlideInPanel) getParent();
        return panel.visitChildren(AjaxMenuItem.class, (_item,
         _visit) -> {
            final List<? extends Behavior> behaviors = _item.getBehaviors(_class);
            if (CollectionUtils.isNotEmpty(behaviors)) {
                _visit.stop((AjaxEventBehavior) behaviors.get(0));
            } else {
                _visit.stop();
            }
        });
    }
protected AjaxEventBehavior getBehavior ( final Class < ? extends Behavior > _class ) { final SlideInPanel panel = ( SlideInPanel ) getParent ( ) ; return panel . visitChildren ( AjaxMenuItem . class , ( _item , _visit ) -> { final List < ? extends Behavior > behaviors = _item . getBehaviors ( _class ) ; if ( CollectionUtils . isNotEmpty ( behaviors ) ) { _visit . stop ( ( AjaxEventBehavior ) behaviors . get ( 0 ) ) ; } else { _visit . stop ( ) ; } } ) ; }
Gets the behavior.

@param _class the class
@return the behavior
Gets the behavior .