From 1109132f09d75da9a28b649c7677bb6ce07c40c0 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:41:45 -0500 Subject: initial commit --- files/es/fuel/annotations/index.html | 121 +++++++++++++++++++++++ files/es/fuel/application/index.html | 81 +++++++++++++++ files/es/fuel/bookmark/index.html | 89 +++++++++++++++++ files/es/fuel/bookmarkfolder/index.html | 144 +++++++++++++++++++++++++++ files/es/fuel/browsertab/index.html | 158 ++++++++++++++++++++++++++++++ files/es/fuel/console/index.html | 65 ++++++++++++ files/es/fuel/eventitem/index.html | 56 +++++++++++ files/es/fuel/eventlistener/index.html | 49 +++++++++ files/es/fuel/events/index.html | 72 ++++++++++++++ files/es/fuel/extension/index.html | 61 ++++++++++++ files/es/fuel/extensions/index.html | 77 +++++++++++++++ files/es/fuel/index.html | 33 +++++++ files/es/fuel/preference/index.html | 81 +++++++++++++++ files/es/fuel/preferencebranch/index.html | 147 +++++++++++++++++++++++++++ files/es/fuel/sessionstorage/index.html | 97 ++++++++++++++++++ files/es/fuel/window/index.html | 87 ++++++++++++++++ 16 files changed, 1418 insertions(+) create mode 100644 files/es/fuel/annotations/index.html create mode 100644 files/es/fuel/application/index.html create mode 100644 files/es/fuel/bookmark/index.html create mode 100644 files/es/fuel/bookmarkfolder/index.html create mode 100644 files/es/fuel/browsertab/index.html create mode 100644 files/es/fuel/console/index.html create mode 100644 files/es/fuel/eventitem/index.html create mode 100644 files/es/fuel/eventlistener/index.html create mode 100644 files/es/fuel/events/index.html create mode 100644 files/es/fuel/extension/index.html create mode 100644 files/es/fuel/extensions/index.html create mode 100644 files/es/fuel/index.html create mode 100644 files/es/fuel/preference/index.html create mode 100644 files/es/fuel/preferencebranch/index.html create mode 100644 files/es/fuel/sessionstorage/index.html create mode 100644 files/es/fuel/window/index.html (limited to 'files/es/fuel') diff --git a/files/es/fuel/annotations/index.html b/files/es/fuel/annotations/index.html new file mode 100644 index 0000000000..ce27c39271 --- /dev/null +++ b/files/es/fuel/annotations/index.html @@ -0,0 +1,121 @@ +--- +title: Annotations +slug: FUEL/Annotations +tags: + - FUEL + - Interfaces + - Todas_las_Categorías + - páginas_a_traducir +translation_of: Mozilla/Tech/Toolkit_API/FUEL/fuelIAnnotations +--- +

Resumen de métodos

+ + + + + + + + + + + + + + + + +
boolean has(en AString aName)
nsIVariant get(en AString aName)
void set(en AString aName, en nsIVariant aValue, en PRInt32 aExpiration)
void remove(en AString aName)
+ +

Atributos

+ + + + + + + + + + + + + + +
AttributoTipoDescripción
nombresatributo de solo-lectura nsIVariantArray de nombre de anotación con el sujeto propietario
+ +

Métodos

+ +

has()

+ +

Determina si una anotación con un nombre determinado existe.

+ +
boolean has(en AString aName)
+
+ +
Parámetros
+ +
+
aName
+
El nombre de la Anotación
+
+ +
Valor devuelto
+ +

"true" si existe la Anotación con el nombre especificado, o "false" en caso contrario.

+ +

get()

+ +

Recoge el valor de una Anotación con el nombre especificado.

+ +
nsIVariant get(en AString aName)
+
+ +
Parámetros
+ +
+
aName
+
El nombre de la Anotación.
+
+ +
Valor devuelto
+ +

Una variable que contiene el valor de la Anotación. Puede ser boleano, una cadena o un número.

+ +

set()

+ +

Da valor a la Anotación con el nombre especificado.

+ +
void set(in AString aName, in nsIVariant aValue, in PRInt32 aExpiration)
+
+ +
Parámetros
+ +
+
aName
+
El nombre de la anotación
+
aValue
+
El nuevo valor de la anotación. Puede ser boleano, una cadena o un número.
+
aExpiration
+
La política de caducidad de la anotación. Véase nsIAnnotationService.
+
+ +
Valor devuelto
+ +

 

+ +

remove()

+ +

Borra la anotación especificada de su elemento propietario.

+ +
void remove(in AString aName)
+
+ +
Parámetros
+ +
+
aName
+
El nombre de la anotación
+
+ +
Valor devuelto
diff --git a/files/es/fuel/application/index.html b/files/es/fuel/application/index.html new file mode 100644 index 0000000000..1e6ef7b05f --- /dev/null +++ b/files/es/fuel/application/index.html @@ -0,0 +1,81 @@ +--- +title: Application +slug: FUEL/Application +tags: + - FUEL + - Interfaces + - Todas_las_Categorías + - páginas_a_traducir +translation_of: Mozilla/Tech/Toolkit_API/extIApplication +--- +

Resumen del método

+ + +
+ +

Atributos

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AtributoTipoDescripción
idatributo de cadena de solo-lecturaLa identificación de la aplicación.
nameatributo de solo-lectura AStringEl nombre de la aplicación.
versionatributo de solo-lectura AStringLa versión de la aplicación.
consoleatributo de solo-lectura fuelIConsoleEl objeto consola de la aplicación.
extensionsatributo de solo-lectura fuelIExtensionsEl objeto extensiones para la aplicación. Contiene una lista de todas las aplicaciones instaladas.
prefsatributo de solo-lectura fuelIPreferenceBranchEl objeto preferencias de la aplicación.Por defecto es un árbol vacío.
storageatributo de solo-lectura fuelISessionStorageEl objeto storage de la aplicación.
eventsatributo de solo-lectura fuelIEventsEl objeto eventos de la aplicación. Los eventos válidos son: "load", "ready", "quit", "unload"
bookmarksatributo de solo-lectura fuelIBookmarkFolderEl elemento raíz de los marcadores de la aplicación.
windowsatributo de solo-lectura nsIVariantUn array con las ventanas del navegador dentro de la aplicación.
activeWindowatributo de solo-lectura fuelIWindowLa ventana activa del navegador.
diff --git a/files/es/fuel/bookmark/index.html b/files/es/fuel/bookmark/index.html new file mode 100644 index 0000000000..5265d92ce2 --- /dev/null +++ b/files/es/fuel/bookmark/index.html @@ -0,0 +1,89 @@ +--- +title: Bookmark +slug: FUEL/Bookmark +tags: + - FUEL + - Interfaces + - Todas_las_Categorías + - páginas_a_traducir +translation_of: Mozilla/Tech/Toolkit_API/FUEL/fuelIBookmark +--- +

Resumen del método

+ + + + + + + +
void remove()
+ +

Atributos

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AtributoTipoDescripción
idatributo de solo-lectura long longEL id del marcador.
titleatributo de solo-lectura AStringEl título del marcador.
uriatributo nsIURILa URI del marcador.
descriptionatributo AStringLa descripción del marcador.
keywordatributo AStringLa palabra clave asociada al marcador.
typeatributo de solo-lectura AStringEl tipo de marcador. Los valores posibles son: "bookmark", "separator"
parentatributo fuelIBookmarkFolderLa carpeta padre del marcador.
annotationsatributo de solo-lectura fuelIAnnotationsEl objeto Anotaciones del marcador.
eventsatributo de solo-lectura fuelIEventsEl objeto eventos del marcador. Los valores posibles son: "remove", "change", "visit", "move"
+ +

Métodos

+ +

remove()

+ +

Borra el objeto de la carpeta padre. Se usa para quitar tanto un marcador como un separador.

+ +
void remove()
+
+ +
Parámetros
+ +
Valor devuelto
diff --git a/files/es/fuel/bookmarkfolder/index.html b/files/es/fuel/bookmarkfolder/index.html new file mode 100644 index 0000000000..08535501a9 --- /dev/null +++ b/files/es/fuel/bookmarkfolder/index.html @@ -0,0 +1,144 @@ +--- +title: BookmarkFolder +slug: FUEL/BookmarkFolder +tags: + - FUEL + - Interfaces + - Todas_las_Categorías + - páginas_a_traducir +translation_of: Mozilla/Tech/Toolkit_API/FUEL/fuelIBookmarkFolder +--- +

Resument de métodos

+ + + + + + + + + + + + + + + + +
fuelIBookmark addBookmark(en AString aTitle, en nsIURI aURI)
fuelIBookmark addSeparator()
fuelIBookmarkFolder addFolder(en AString aTitle)
void remove()
+ +

Atributos

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AtributoTipoDescripción
idatributo de solo-lectura long longEl id de la carpeta.
titleatributo AStringEl título de la carpeta.
descriptionatributo AStringLa descripción de la carpeta.
typeatributo de solo-lectura AStringEl tipo de carpeta. Los valores posibles son: "folder"
parentatributo fuelIBookmarkFolderLa carpeta padre de la carpeta.
annotationsatributo de solo-lectura fuelIAnnotationsEl objeto Anotaciones de la carpeta.
eventsatributo de solo-lectura fuelIEventsEl objeto eventos de la carpeta. Los valores posibles son: "add", "addchild", "remove", "removechild", "change", "move"
childrenatributo de solo-lectura nsIVariantArray conteniendo todos los marcadores, separadores y carpetas que contiene esta carpeta.
+ +

Métodos

+ +

addBookmark()

+ +

Añade un nuevo marcador hijo a esta carpeta.

+ +
fuelIBookmark addBookmark(en AString aTitle, en nsIURI aURI)
+
+ +
Parámetros
+ +
+
aTitle
+
El título del marcador.
+
+ +
Valor devuelto
+ +

 

+ +

addSeparator()

+ +

Añade un nuevo separador hijo a esta carpeta.

+ +
fuelIBookmark addSeparator()
+
+ +
Parámetros
+ +
Valor devuelto
+ +

 

+ +

addFolder()

+ +

Añade una nueva carpeta hijo a esta carpeta.

+ +
fuelIBookmarkFolder addFolder(in AString aTitle)
+
+ +
Parámetros
+ +
+
aTitle
+
El título de la carpeta.
+
+ +
Valor devuelto
+ +

 

+ +

remove()

+ +

Borra la carpeta de la carpeta padre.

+ +
void remove()
+
+ +
Parámetros
+ +
Valor devuelto
+ +

 

diff --git a/files/es/fuel/browsertab/index.html b/files/es/fuel/browsertab/index.html new file mode 100644 index 0000000000..d8f22da029 --- /dev/null +++ b/files/es/fuel/browsertab/index.html @@ -0,0 +1,158 @@ +--- +title: BrowserTab +slug: FUEL/BrowserTab +tags: + - FUEL + - Interfaces + - Todas_las_Categorías + - páginas_a_traducir +translation_of: Mozilla/Tech/Toolkit_API/FUEL/fuelIBrowserTab +--- +

 

+ +

Resumen de métodos

+ + + + + + + + + + + + + + + + + + + +
void load(in nsIURI aURI)
void focus()
void close()
void moveBefore(in fuelIBrowserTab aBefore)
void moveToEnd()
+ +

Atributos

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AtributoTipoDescripción
uriatributo de solo-lectura nsIURILa URI de la pestaña actual.
indexatributo de solo-lectura RInt32El número de índice de la pestaña en la ventana del navegador.
windowatributo de solo-lectura fuelIWindowLa ventana del navegador en que se encuentra la pestaña.
documentatributo de solo-lectura nsIDOMHTMLDocumentTEl documento que contiene la pestaña.
eventsatributo de solo-lectura fuelIEventsEl objeto eventos de la pestaña. Valor posible: "load"
+ +

Métodos

+ +

load()

+ +

Carga una nueva URI en la pestaña del navegador.

+ +
void load(in nsIURI aURI)
+
+ +
Parámetros
+ +
+
aURI
+
La URI a cargar en la pestaña.
+
+ +
Valor devuelto
+ +

 

+ +

focus()

+ +

Pone el foco en esa pestaña del navegador y la trae a primer plano.

+ +
void focus()
+
+ +
Parámetros
+ +
Valor devuelto
+ +

 

+ +

close()

+ +

Cierra la pestaña. Es posible realmente no la cierre, ya que un script puede evitar esta operación.

+ +
void close()
+
+ +
Parámetros
+ +
Valor devuelto
+ +

 

+ +

moveBefore()

+ +

Cambia la posición de la pestaña en la ventana del navegador, hasta ponerla antes que otra pestaña.

+ +
void moveBefore(in fuelIBrowserTab aBefore)
+
+ +
Parámetros
+ +
+
aBefore
+
La pestaña antes de la cual la situaremos.
+
+ +
Valor devuelto
+ +

 

+ +

moveToEnd()

+ +

Mueve esta pestaña, a la última posición en la ventana.

+ +
void moveToEnd()
+
+ +
Parámetros
+ +
Valor devuelto
+ +

Ejemplos

+ +
var activeWin = Application.activeWindow;
+
+// buscamos en cada pestaña abierta en  la ventana del navegador
+activeWin.tabs.forEach( function(tab) {
+  alert(tab.uri.spec);
+});
+
+// accedemos al contenido del documento de la pestaña activa
+alert(activeWin.activeTab.document.body.innerHTML);
+
diff --git a/files/es/fuel/console/index.html b/files/es/fuel/console/index.html new file mode 100644 index 0000000000..730d16b759 --- /dev/null +++ b/files/es/fuel/console/index.html @@ -0,0 +1,65 @@ +--- +title: Console +slug: FUEL/Console +tags: + - FUEL + - Interfaces + - Todas_las_Categorías + - páginas_a_traducir +translation_of: Mozilla/Tech/Toolkit_API/extIConsole +--- +

Resumen de métodos

+ + + + + + + + + + +
void log(in AString aMsg)
void open()
+ +

Atributos

+ + + + + + + + + +
AtributoTipoDescripción
+ +

Métodos

+ +

log()

+ +

Envía ena cadena determinada a la consola.

+ +
void log(in AString aMsg)
+
+ +
Parámetros
+ +
+
aMsg
+
El texto a enviar a la consola.
+
+ +
Valor devuelto
+ +

 

+ +

open()

+ +

Abre la ventana de la consola de errores. Se pone el foco en la ventana de la consola si ya está abierta:

+ +
void open()
+
+ +
Parámetros
+ +
Valor devuelto
diff --git a/files/es/fuel/eventitem/index.html b/files/es/fuel/eventitem/index.html new file mode 100644 index 0000000000..f740ef7af2 --- /dev/null +++ b/files/es/fuel/eventitem/index.html @@ -0,0 +1,56 @@ +--- +title: EventItem +slug: FUEL/EventItem +tags: + - FUEL + - Interfaces + - Todas_las_Categorías + - páginas_a_traducir +translation_of: Mozilla/Tech/Toolkit_API/extIEventItem +--- +

 

+ +

Resumen de métodos

+ + + + + + + +
void preventDefault()
+ +

Atributos

+ + + + + + + + + + + + + + + + + + + +
AtributoTipoDescripción
typeatributo de solo-lectura AStringEl nombre del evento
dataatributo de solo-lectura AStringPuede contener detalles adicionales y datos asociados con el evento. Es opcional y específico del evento. Si el evento no usa detalles adicionales, este valor es nulo.
+ +

Métodos

+ +

preventDefault()

+ +

Cancela el evento si éste es cancelable.

+ +
void preventDefault()
+
+ +
Parámetros
+ +
Valor devuelto
diff --git a/files/es/fuel/eventlistener/index.html b/files/es/fuel/eventlistener/index.html new file mode 100644 index 0000000000..58c61c8fc8 --- /dev/null +++ b/files/es/fuel/eventlistener/index.html @@ -0,0 +1,49 @@ +--- +title: EventListener +slug: FUEL/EventListener +tags: + - FUEL + - Interfaces + - Todas_las_Categorías + - páginas_a_traducir +translation_of: Mozilla/Tech/Toolkit_API/extIEventListener +--- +

Resumen de método

+ + + + + + + +
void handleEvent(in fuelIEventItem aEvent)
+ +

Atributos

+ + + + + + + + + +
AtributoTipoDescripción
+ +

Métodos

+ +

handleEvent()

+ +

Este método se llama cuando ocurre un evento del tipo por el que se ha registrado fuelIEventListener.

+ +
void handleEvent(in fuelIEventItem aEvent)
+
+ +
Parámetros
+ +
+
aEvent
+
El (evento) fuelIEventItem asociado con el evento.
+
+ +
Valor devuelto
diff --git a/files/es/fuel/events/index.html b/files/es/fuel/events/index.html new file mode 100644 index 0000000000..8470203fb7 --- /dev/null +++ b/files/es/fuel/events/index.html @@ -0,0 +1,72 @@ +--- +title: Events +slug: FUEL/Events +tags: + - Evento + - Todas_las_Categorías +translation_of: Mozilla/Tech/Toolkit_API/extIEvents +--- +

Resumen de métodos

+ + + + + + + + + + +
void addListener(in AString aEvent, in fuelIEventListener aListener)
void removeListener(in AString aEvent, in fuelIEventListener aListener)
+ +

Atributos

+ + + + + + + + + +
AtributoTipoDescripción
+ +

Métodos

+ +

addListener()

+ +

Añade un evento a la lista. Si se añaden múltiples escuchas (event listener) idénticas en el mismo evento, con los mismos parámetros y con el mismo objetivo, la copia será descartada, por lo que no causarán que se llame a la escucha 2 veces y no será necesario borrar las adicionales.

+ +
void addListener(in AString aEvent, in extIEventListener aListener)
+
+ +
Parámetros
+ +
+
aEvent
+
El nombre del evento
+
aListener
+
La escucha que queremos añadir al evento
+
+ +
Valor devuelto
+ +

 

+ +

removeListener()

+ +

Quita una escucha de la lista. Si pasamos un argumento que no corresponde a ningún evento registrado, el efecto es nulo.

+ +
void removeListener(in AString aEvent, in extIEventListener aListener)
+
+ +
Parámetros
+ +
+
aEvent
+
El nombre del evento
+
aListener
+
La escucha del evento que queremos quitar
+
+ +
Valor devuelto
diff --git a/files/es/fuel/extension/index.html b/files/es/fuel/extension/index.html new file mode 100644 index 0000000000..9ffb8ff096 --- /dev/null +++ b/files/es/fuel/extension/index.html @@ -0,0 +1,61 @@ +--- +title: Extension +slug: FUEL/Extension +tags: + - FUEL + - Interfaces + - Todas_las_Categorías + - páginas_a_traducir +translation_of: Mozilla/Tech/Toolkit_API/extIExtension +--- +

Resumen de método

+ + +
+ +

Atributos

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AtributoTipoDescripción
idatributo de solo-lectura AStringLa identidad de la extensión.
nameatributo de solo-lectura AStringEl nombre de la extensión.
versionatributo de solo-lectura AStringEl número de versión de la extensión.
firstRunatributo boleano de solo-lecturaIndica si esta es la primera ejecución después de la instalación.
prefsatributo de solo-lectura fuelIPreferenceBranchEl objeto preferencias de la extensión. El valor por defecto es la rama "extensions.<extensionid>.".
storageatributo de solo-lectura fuelISessionStorageEl objeto storage de la extensión
eventsatributo de solo-lectura fuelIEventsEl objeto eventos de la extensión. Valor posible: "uninstall"
diff --git a/files/es/fuel/extensions/index.html b/files/es/fuel/extensions/index.html new file mode 100644 index 0000000000..231329fe91 --- /dev/null +++ b/files/es/fuel/extensions/index.html @@ -0,0 +1,77 @@ +--- +title: Extensions +slug: FUEL/Extensions +tags: + - FUEL + - Interfaces + - Todas_las_Categorías + - páginas_a_traducir +translation_of: Mozilla/Tech/Toolkit_API/extIExtensions +--- +

Resumen de métodos

+ + + + + + + + + + +
Expresión booleana has(en AString aId)
fuelIExtension get(en AString aId)
+ +

Atributos

+ + + + + + + + + + + + + + +
AtributoTipoDescripción
allatributo de solo-lectura nsIVariantEs un arreglo de fuelIExtension que contiene todas las extensiones en la aplicación.
+ +

Métodos

+ +

has()

+ +

Determina si existe una extensión con un nombre "id" determinado.

+ +
boolean has(in AString aId)
+
+ +
Parámetros
+ +
+
aId
+
La id de una extensión.
+
+ +
Valor devuelto
+ +

es "true" (verdadero) si existe una extensión con ese "id", y "false" (falso) en caso contrario.

+ +

get()

+ +

Recoge un objeto de la extensión con una determinada id.

+ +
fuelIExtension get(in AString aId)
+
+ +
Parámetros
+ +
+
aId
+
El id de una extensión.
+
+ +
Valor devuelto
+ +

Un objeto de la extensión o null si no hay una extensión con el id especificado.

diff --git a/files/es/fuel/index.html b/files/es/fuel/index.html new file mode 100644 index 0000000000..51c16b0424 --- /dev/null +++ b/files/es/fuel/index.html @@ -0,0 +1,33 @@ +--- +title: FUEL +slug: FUEL +tags: + - FUEL + - Interfaces + - Todas_las_Categorías +translation_of: Mozilla/Tech/Toolkit_API/FUEL +--- +

FUEL es una librería de JavaScript diseñada para ayudar a los desarrolladores a construir extensiones usando una terminología y un interfaz familiares. FUEL es nuevo en Firefox 3 y podrá ser usado también para Firefox 2. +

La intención es que FUEL permita a los desarrolladores ser productivos reduciendo las formalidades del XPCOM mientras añade algunas ideas "modernas" de JavaScript. Queremos empezar con áreas a las que podemos sacar el mayor beneficio.

+

Objetos

+ +


+


+

+
+
diff --git a/files/es/fuel/preference/index.html b/files/es/fuel/preference/index.html new file mode 100644 index 0000000000..77ad8ebc1b --- /dev/null +++ b/files/es/fuel/preference/index.html @@ -0,0 +1,81 @@ +--- +title: Preference +slug: FUEL/Preference +tags: + - FUEL + - Interfaces + - Todas_las_Categorías + - páginas_a_traducir +translation_of: Mozilla/Tech/Toolkit_API/SMILE/smileIWindow +--- +

Resumen de método

+ + + + + + + +
void reset()
+ +

Atributos

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AtributoTipoDescripción
nameatributo de solo-lectura AStringEl nombre de la preferencia.
typeatributo de solo-lectura AStringUna cadena conteniendo el tipo de preferencia. Valores posibles: "String", "Boolean", o "Number".
valueatributo nsIVariantLee o pone el vaslor de la preferencia.
lockedatributo boleanoLee el estado de bloqueo de la preferencia. Para des/bloquear, ajustar a un valor boleano.
modifiedatributo boleano de solo-lecturaComprueba si una preferencia a sido cambiada por el usuario o no.
branchatributo de solo-lectura fuelIPreferenceBranchLa rama de preferencia a la que corresponde la preferencia.
eventsatributo de solo-lectura fuelIEventsEl objeto de eventos para esta preferencia. Admite: "change"
+ +

Métodos

+ +

reset()

+ +

Devuelve las preferencias a sus valores originales.

+ +
void reset()
+
+ +
Parámetros
+ +
Valor devuelto
+ +

 

diff --git a/files/es/fuel/preferencebranch/index.html b/files/es/fuel/preferencebranch/index.html new file mode 100644 index 0000000000..eb3adf22be --- /dev/null +++ b/files/es/fuel/preferencebranch/index.html @@ -0,0 +1,147 @@ +--- +title: PreferenceBranch +slug: FUEL/PreferenceBranch +tags: + - FUEL + - Interfaces + - Todas_las_Categorías + - páginas_a_traducir +translation_of: Mozilla/Tech/Toolkit_API/extIPreferenceBranch +--- +

Resumen de métodos

+ + + + + + + + + + + + + + + + + + + +
boolean has(in AString aName)
fuelIPreference get(in AString aName)
nsIVariant getValue(in AString aName, in nsIVariant aDefaultValue)
void setValue(in AString aName, in nsIVariant aValue)
void reset()
+ +

Atributos

+ + + + + + + + + + + + + + + + + + + + + + + + +
AtributosTipoDescripción
rootatributo de solo-lectura AStringEl nombre de la rama raíz.
allatributo de solo-lectura nsIVariantArray de fuelIPreference conteniendo todas las preferencias en esta rama.
eventsatributo de solo-lectura fuelIEventsEl objeto de eventos para las preferencias. Admite: "change"
+ +

Métodos

+ +

has()

+ +

Comprueba si existe una preferencia.

+ +
boolean has(in AString aName)
+
+ +
Parámetros
+ +
+
aName
+
El nombre de la preferencia
+
+ +
Valor devuelto
+ +

"true" si la preferencia existe o "false" en caso contrario.

+ +

get()

+ +

Recoje un objeto que representa una preferencia.

+ +
fuelIPreference get(in AString aName)
+
+ +
Parámetros
+ +
+
aName
+
El nombre de la preferencia.
+
+ +
Valor devuelto
+ +

un objeto de tipo preferencia o "null" si la preferencia no existe.

+ +

getValue()

+ +

Recoje el valor de una preferencia. Devuelve el valor por defecto si la preferencia no existe.

+ +
nsIVariant getValue(in AString aName, in nsIVariant aDefaultValue)
+
+ +
Parámetros
+ +
+
aName
+
El nombre de la preferencia
+
aDefaultValue
+
El valor por defecto de la preferencia
+
+ +
Valor devuelto
+ +

valor de la preferencia o el valor por defecto predeterminado, si la preferencia no existe.

+ +

setValue()

+ +

Pone el valor a una preferencia con un nombre determinado.

+ +
void setValue(in AString aName, in nsIVariant aValue)
+
+ +
Parámetros
+ +
+
aName
+
El nombre de la preferencia
+
aValue
+
El valor de la preferencia
+
+ +
Valor devuelto
+ +

 

+ +

reset()

+ +

Vuelve todas las preferencias en una rama, a su valor por defecto.

+ +
void reset()
+
+ +
Parámetros
+ +
Valor devuelto
diff --git a/files/es/fuel/sessionstorage/index.html b/files/es/fuel/sessionstorage/index.html new file mode 100644 index 0000000000..f7a7655d6b --- /dev/null +++ b/files/es/fuel/sessionstorage/index.html @@ -0,0 +1,97 @@ +--- +title: SessionStorage +slug: FUEL/SessionStorage +tags: + - FUEL + - Interfaces + - Todas_las_Categorías + - páginas_a_traducir +translation_of: Mozilla/Tech/Toolkit_API/extISessionStorage +--- +

Resumen de métodos

+ + + + + + + + + + + + + +
boolean has(in AString aName)
void set(in AString aName, in nsIVariant aValue)
nsIVariant get(in AString aName, in nsIVariant aDefaultValue)
+ +

Atributos

+ + + + + + + + + + + + + + +
AtributoTipoDescripciónn
eventsatributo de solo-lectura fuelIEventsEl objeto eventos para el almacenamiento. Admite: "change"
+ +

Métodos

+ +

has()

+ +

Determina si un elemnto de almacenamiento existe con el nombre determinado.

+ +
boolean has(in AString aName)
+
+ +
Parámetros
+ +
+
aName
+
El nombre del objeto.
+
+ +
Valor devuelto
+ +

"true" si existe un objeto con el nombre dado o "false" en caso contrario.

+ +

set()

+ +

Ajusta el valor de un objeto de almacenamiento con en determinado nombre.

+ +
void set(in AString aName, in nsIVariant aValue)
+
+ +
Parámetros
+ +
+
El nombre del objeto.
+
+ +
Valor devuelto
+ +

 

+ +

get()

+ +

Recoge el valor de almacenamiento de un objeto con un nombre determinado. Si el nombre no existe, se devuelve un valor por defecto.

+ +
nsIVariant get(in AString aName, in nsIVariant aDefaultValue)
+
+ +
Parámetros
+ +
+
aName
+
El nombre del objeto.
+
+ +
Valor devuelto
+ +

el valor del objeto o el valor por defecto si no existe un objeto con el nombre dado.

diff --git a/files/es/fuel/window/index.html b/files/es/fuel/window/index.html new file mode 100644 index 0000000000..3420126809 --- /dev/null +++ b/files/es/fuel/window/index.html @@ -0,0 +1,87 @@ +--- +title: Window +slug: FUEL/Window +tags: + - FUEL + - Interfaces + - Todas_las_Categorías + - páginas_a_traducir +translation_of: Mozilla/Tech/Toolkit_API/FUEL/fuelIWindow +--- +

 

+ + +

 

+ +

Resumen de método

+ + + + + + + +
fuelIBrowserTab open(in nsIURI aURI)
+ +

Atributos

+ + + + + + + + + + + + + + + + + + + + + + + + +
AtributoTipoDescripción
tabsatributo de solo-lectura nsIVariantUna colección de pestañas dentro de la ventana del navegador.
activeTabatributo de solo-lectura fuelIBrowserTabLa pestaña actualmente activa en la ventana del navegador.
eventsatributo de solo-lectura fuelIEventsEl objeto eventos de la ventana del navegador. Valores posibles: "TabOpen", "TabClose", "TabMove", "TabSelect"
+ +

Métodos

+ +

open()

+ +

Abre una nueva pestaña en el navegador, apuntando a la URI especificada.

+ +
fuelIBrowserTab open(in nsIURI aURI)
+
+ +
Parámetros
+ +
+
aURI
+
La dirección URI a la que apuntará la pestaña.
+
+ +
Valor devuelto
+ +

Ejemplos

+ +
// Helper for making nsURI from string
+function url(spec) {
+  var ios = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService);
+  return ios.newURI(spec, null, null);
+}
+
+function onTabOpen(event) {
+  alert("abierta");
+}
+
+var activeWin = Application.activeWindow;
+activeWin.events.addListener("TabOpen", onTabOpen);
+
+var browserTab = activeWin.open(url("http://mozilla.org"));
+
-- cgit v1.2.3-54-g00ecf