All Downloads are FREE. Search and download functionalities are using the official Maven repository.

elemental.html.Notification Maven / Gradle / Ivy

/*
 * Copyright 2012 Google Inc.
 * 
 * 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 elemental.html;
import elemental.events.EventListener;
import elemental.events.EventTarget;
import elemental.events.Event;

import elemental.events.*;
import elemental.util.*;
import elemental.dom.*;
import elemental.html.*;
import elemental.css.*;
import elemental.stylesheets.*;

import java.util.Date;

/**
  * 

Mobile Only in Gecko 2.0

Available only in Firefox Mobile as of Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1)

Non-standard

The notification object, which you create using the navigator.mozNotification  object's createNotification() method, is used to configure and display desktop notifications to the user.

*/ public interface Notification extends EventTarget { String getDir(); void setDir(String arg); /** *  A function to call when the notification is clicked. */ EventListener getOnclick(); void setOnclick(EventListener arg); /** *  A function to call when the notification is dismissed. */ EventListener getOnclose(); void setOnclose(EventListener arg); EventListener getOndisplay(); void setOndisplay(EventListener arg); EventListener getOnerror(); void setOnerror(EventListener arg); EventListener getOnshow(); void setOnshow(EventListener arg); String getReplaceId(); void setReplaceId(String arg); String getTag(); void setTag(String arg); EventRemover addEventListener(String type, EventListener listener); EventRemover addEventListener(String type, EventListener listener, boolean useCapture); void cancel(); void close(); boolean dispatchEvent(Event evt); void removeEventListener(String type, EventListener listener); void removeEventListener(String type, EventListener listener, boolean useCapture); /** * Displays the notification. */ void show(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy