/** * Exposes a document as a boolean, suitable for holding muted state. * * @param router router for the muted document * @return muted state. */ private static <E> ObservableBasicValue<Boolean> createMuted( DocumentEventRouter<? super E, E, ?> router) { return DocumentBasedBoolean.create(router, router.getDocument().getDocumentElement(), MUTED_TAG, MUTED_ATTR); }
/** * Exposes a document as a boolean, suitable for holding muted state. * * @param router router for the muted document * @return muted state. */ private static <E> ObservableBasicValue<Boolean> createCleared( DocumentEventRouter<? super E, E, ?> router) { return DocumentBasedBoolean.create(router, router.getDocument().getDocumentElement(), CLEARED_TAG, CLEARED_ATTR); }
/** * Exposes a document as a boolean, suitable for holding pending-notification state. * * @param router router for the notification document * @return pending notification state. */ private static <E> ObservableBasicValue<Boolean> createPendingNotification( DocumentEventRouter<? super E, E, ?> router) { return DocumentBasedBoolean.create( router, router.getDocument().getDocumentElement(), NOTIFICATION_TAG, PENDING_NOTIFICATION_ATTR); }
@Override public <N, E extends N, T extends N> void exec(ObservableMutableDocument<N, E, T> doc) { target = DocumentBasedBoolean.create(DefaultDocumentEventRouter.create(doc), doc.getDocumentElement(), ENTRY_TAG, VALUE_ATTR); } });
@Override public <N, E extends N, T extends N> void exec(ObservableMutableDocument<N, E, T> doc) { target = DocumentBasedBoolean.create(DefaultDocumentEventRouter.create(doc), doc.getDocumentElement(), ENTRY_TAG, VALUE_ATTR); } });