LaunchAction
LaunchAction
General
LaunchAction és una classe en FOSS per Java. Heretaris de: PdfAction.
Acció de llançament Inicia una aplicació o obre un document (ISO 32000-1:2008, §12.6.4.1).
Aquesta classe proporciona 9 mètodes per treballar amb objectes LaunchAction en programes Java. Els mètodes disponibles inclouen: LaunchAction, fromDictionary, getFile, getNext, getPdfDictionary, getType, isNewWindow, setNewWindow. Tots els membres públics són accessibles a qualsevol aplicació Java després d’instal·lar el paquet FOSS per Java. Propietats: file, newWindow, next, pdfDictionary, type.
Propietats
| Nom | Tipus de productes | Accés | Descripció |
|---|---|---|---|
file | String | Llegeix. | Retorna la ruta o especificació del fitxer. |
newWindow | boolean | Llegeix. | Retorna si s’ha d’obrir una nova finestra. |
pdfDictionary | PdfDictionary | Llegeix. | Retorna el diccionari d’accions subjacent. |
type | String | Llegeix. | Retorna el tipus d’acció (/S). |
next | PdfAction | Llegeix. | Retorna l’acció següent (/Next), si existeix. |
Mètodes
| Signatura | Descripció |
|---|---|
LaunchAction(dict: PdfDictionary) | Parseja un LaunchAction d’un diccionari existent. |
LaunchAction(filePath: String) | Crea un LaunchAction per a la ruta de fitxer donada. |
getFile() → String | Retorna la ruta o especificació del fitxer. |
isNewWindow() → boolean | Retorna si s’ha d’obrir una nova finestra. |
setNewWindow(newWindow: boolean) | Establi si s’ha d’obrir una nova finestra. |
getPdfDictionary() → PdfDictionary | Retorna el diccionari d’accions subjacent. |
getType() → String | Retorna el tipus d’acció (/S). |
getNext() → PdfAction | Retorna l’acció següent (/Next), si existeix. |
fromDictionary(dict: PdfDictionary, doc: Document) → PdfAction | Factory: crea la subclasse PdfAction adequada a partir d’un diccionari. |