Class ToggleNotificationsCommand
java.lang.Object
com.levigo.jadice.web.client.util.command.InjectedCommand
com.levigo.jadice.web.client.commands.AbstractContextCommand
com.levigo.jadice.web.demo.common.client.notification.ToggleNotificationsCommand
- All Implemented Interfaces:
Command
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute()This method is called in order to execute the command.protected booleanReturns the selected state of this command.voidsetVisualNotificationSupport(VisualNotificationSupport visualNotificationSupport) Methods inherited from class com.levigo.jadice.web.client.commands.AbstractContextCommand
getContext, propagateContextChange, setContextMethods inherited from class com.levigo.jadice.web.client.util.command.InjectedCommand
canExecute, canExecute, clearInjections, execute, getKey, isSelected, setKeyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.levigo.jadice.web.client.util.command.Command
getID, isAvailable, isAvailable
-
Constructor Details
-
ToggleNotificationsCommand
public ToggleNotificationsCommand()
-
-
Method Details
-
getVisualNotificationSupport
-
setVisualNotificationSupport
-
execute
protected void execute()Description copied from class:InjectedCommandThis method is called in order to execute the command. It is only called, after the arguments have been validated and injected and only ifInjectedCommand.canExecute()has returnedtrue.- Specified by:
executein classInjectedCommand
-
isSelected
protected boolean isSelected()Description copied from class:InjectedCommandReturns the selected state of this command. This is typically used only for commands with a meaningful selection state.- Overrides:
isSelectedin classInjectedCommand- Returns:
- the selected state
-