/* * Copyright (c) 2009 Lockheed Martin Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.eurekastreams.web.client.events; /** * Event gets fired when the status of a gadget is changed. * */ public class GadgetStateChangeEvent { /** * The ID. */ private Long id; /** * The type of ID (gadgetId or appId). */ private String idType; /** * The view. */ private String view; /** * The optional parameters. */ private String params; /** * Default Constructor. * * @param inId * the gadget appId * @param inIdType * the type of ID. * @param inView * the view to set. * @param inParams * the optional parameters. */ public GadgetStateChangeEvent(final Long inId, final String inIdType, final String inView, final String inParams) { id = inId; idType = inIdType; view = inView; params = inParams; } /** * Gets Event. * * @return Event. */ public static GadgetStateChangeEvent getEvent() { return new GadgetStateChangeEvent(0L, "", "", ""); } /** * @return the id */ public Long getId() { return id; } /** * @return the idType */ public String getIdType() { return idType; } /** * @return the view */ public String getView() { return view; } /** * @return the params */ public String getParams() { return params; } }