/** * {@inheritDoc} */ @Override protected void handleUnhandledEvent( @Nonnull final Object event ) { DomGlobal.console.log( event ); } }
/** * {@inheritDoc} */ @Override protected void handleUnhandledEvent( @Nonnull final Object event ) { DomGlobal.console.log( event ); } }
/** * Log specified message with parameters * * @param message the message. * @param styling the styling parameter. It is assumed that the message has a %c somewhere in it to identify the start of the styling. */ protected void log( @Nonnull final String message, @CssRules @Nonnull final String styling ) { DomGlobal.console.log( message, styling ); }
/** * Log specified message with parameters * * @param delta the nesting delta. * @param message the message. * @param styling the styling parameter. It is assumed that the message has a %c somewhere in it to identify the start of the styling. */ protected void log( @Nonnull final SpyUtil.NestingDelta delta, @Nonnull final String message, @CssRules @Nonnull final String styling ) { if ( SpyUtil.NestingDelta.INCREASE == delta ) { DomGlobal.console.groupCollapsed( message, styling ); } else if ( SpyUtil.NestingDelta.DECREASE == delta ) { DomGlobal.console.log( message, styling ); DomGlobal.console.groupEnd(); } else { DomGlobal.console.log( message, styling ); } }
/** * Handle the ObservableChangedEvent. * * @param d the change in nesting level. * @param e the event. */ protected void onObservableChanged( @Nonnull final SpyUtil.NestingDelta d, @Nonnull final ObservableChangedEvent e ) { DomGlobal.console.log( "%cObservable Changed " + e.getObservable().getName() + ( Arez.arePropertyIntrospectorsEnabled() ? " Value: %o " : null ), OBSERVABLE_COLOR, ( Arez.arePropertyIntrospectorsEnabled() ? e.getValue() : null ) ); }