/** * Initializes the fields of this mixin and then calls the overriden method. * * @param ic information about the component to which this controller object * belongs. * @throws InstantiationException if the initialization fails. */ public void initFcController (final InitializationContext ic) throws InstantiationException { fcContent = ic.content; Component owner = (Component)ic.getOptionalInterface("component"); if (owner != null) { try { owner = (Component)owner.getFcInterface("component"); if (fcContent == this) { // case of merge...AndContent options if (this instanceof ContentBindingController) { ((ContentBindingController)this).bindFcContent("component", owner); } } else if (fcContent instanceof BindingController) { ((BindingController)fcContent).bindFc("component", owner); } } catch (Exception ignored) { } } _super_initFcController(ic); }
/** * Initializes the fields of this mixin and then calls the overriden method. * * @param ic information about the component to which this controller object * belongs. * @throws InstantiationException if the initialization fails. */ public void initFcController (final InitializationContext ic) throws InstantiationException { fcContent = ic.content; Component owner = (Component)ic.getOptionalInterface("component"); if (owner != null) { try { owner = (Component)owner.getFcInterface("component"); if (fcContent == this) { // case of merge...AndContent options if (this instanceof ContentBindingController) { ((ContentBindingController)this).bindFcContent("component", owner); } } else if (fcContent instanceof BindingController) { ((BindingController)fcContent).bindFc("component", owner); } } catch (Exception ignored) { } } _super_initFcController(ic); }