Package io.guise.framework.platform.web
Class WebCommandDepictEvent<C extends java.lang.Enum<C> & WebPlatformCommand>
- java.lang.Object
-
- java.util.EventObject
-
- com.globalmentor.event.AbstractEvent
-
- io.guise.framework.event.AbstractGuiseEvent
-
- io.guise.framework.platform.AbstractPlatformEvent
-
- io.guise.framework.platform.AbstractDepictEvent
-
- io.guise.framework.platform.web.AbstractWebDepictEvent
-
- io.guise.framework.platform.web.WebCommandDepictEvent<C>
-
- Type Parameters:
C
- The type of command.
- All Implemented Interfaces:
com.globalmentor.event.Event
,GuiseEvent
,DepictEvent
,PlatformCommandMessage<C>
,PlatformEvent
,PlatformMessage
,WebDepictEvent
,WebPlatformCommandMessage<C>
,WebPlatformEvent
,WebPlatformMessage
,java.io.Serializable
public class WebCommandDepictEvent<C extends java.lang.Enum<C> & WebPlatformCommand> extends AbstractWebDepictEvent implements WebPlatformCommandMessage<C>
A command to or from a depicted object on the web platform.- Author:
- Garret Wilson Copyright (c) 2007 GlobalMentor, Inc.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WebCommandDepictEvent(DepictedObject depictedObject, C command, com.globalmentor.model.NameValuePair<java.lang.String,java.lang.Object>... parameters)
Depicted object, command, and parameters constructor.WebCommandDepictEvent(DepictedObject depictedObject, C command, java.util.Map<java.lang.String,java.lang.Object> parameters)
Depicted object, command, and parameters map constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description C
getCommand()
java.util.Map<java.lang.String,java.lang.Object>
getParameters()
-
Methods inherited from class io.guise.framework.platform.AbstractDepictEvent
getDepictedObject
-
Methods inherited from class io.guise.framework.event.AbstractGuiseEvent
getSession
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.guise.framework.platform.DepictEvent
getDepictedObject
-
-
-
-
Constructor Detail
-
WebCommandDepictEvent
public WebCommandDepictEvent(DepictedObject depictedObject, C command, com.globalmentor.model.NameValuePair<java.lang.String,java.lang.Object>... parameters)
Depicted object, command, and parameters constructor.- Parameters:
depictedObject
- The depicted object on which the event initially occurred.command
- The command.parameters
- The parameters of the command; parameters with duplicate names replace earlier parameters of the same name.- Throws:
java.lang.NullPointerException
- if the given depicted object, command, and/or parameters isnull
.
-
WebCommandDepictEvent
public WebCommandDepictEvent(DepictedObject depictedObject, C command, java.util.Map<java.lang.String,java.lang.Object> parameters)
Depicted object, command, and parameters map constructor.- Parameters:
depictedObject
- The depicted object on which the event initially occurred.command
- The command.parameters
- The map representing the parameters of the command.- Throws:
java.lang.NullPointerException
- if the given depicted object, command, and/or parameters isnull
.
-
-
Method Detail
-
getCommand
public C getCommand()
- Specified by:
getCommand
in interfacePlatformCommandMessage<C extends java.lang.Enum<C> & WebPlatformCommand>
- Returns:
- The command.
-
getParameters
public java.util.Map<java.lang.String,java.lang.Object> getParameters()
- Specified by:
getParameters
in interfaceWebPlatformCommandMessage<C extends java.lang.Enum<C> & WebPlatformCommand>
- Returns:
- The read-only map of parameters.
-
-