Gnostice PDFOne Java
Std. Ed. v2.10


com.gnostice.pdfone
Class PdfLaunchAction

java.lang.Object
  extended by com.gnostice.pdfone.PdfAction
      extended by com.gnostice.pdfone.PdfLaunchAction

public class PdfLaunchAction
extends PdfAction

This class represents a launch action.

// Create a PDF page
PdfPage page1 = new PdfPage();

// Render some text on the page
page1.writeText(
        "Click here to launch the notepad " +
        "application in the current folder.", 
        200, 100);

// Create a link annotation over a word rendered on page 1
PdfLinkAnnot la = 
    new PdfLinkAnnot(new PdfRect(223, 100, 23, 12), Color.BLUE);

// Create a launch action that launches an
// application in the current directory
PdfLaunchAction lAction = 
    new PdfLaunchAction("notepad.exe", false);

// Add the launch action to the link annotation
la.addAction(lAction);

// Add the link annotation to page 1
page1.addAnnotation(la);


Nested Class Summary
 
Nested classes/interfaces inherited from class com.gnostice.pdfone.PdfAction
PdfAction.PdfEvent
 
Field Summary
 
Fields inherited from class com.gnostice.pdfone.PdfAction
GOTO, JAVASCRIPT, LAUNCH, NAMED, NAMED_FIND, NAMED_FIRSTPAGE, NAMED_LASTPAGE, NAMED_NEXTPAGE, NAMED_OPEN, NAMED_PREVPAGE, NAMED_PRINT, NAMED_SEARCH, REMOTE_GOTO, URI
 
Constructor Summary
PdfLaunchAction(String applicationOrFileToLaunch, boolean print)
           
 
Method Summary
 String getApplicationOrFileToLaunch()
           
 boolean isPrint()
           
 void setApplicationOrFileToLaunch(String applicationOrFileToLaunch)
           
 void setPrint(boolean print)
           
 
Methods inherited from class com.gnostice.pdfone.PdfAction
getActionType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PdfLaunchAction

public PdfLaunchAction(String applicationOrFileToLaunch,
                       boolean print)
Method Detail

getApplicationOrFileToLaunch

public String getApplicationOrFileToLaunch()

setApplicationOrFileToLaunch

public void setApplicationOrFileToLaunch(String applicationOrFileToLaunch)

isPrint

public boolean isPrint()

setPrint

public void setPrint(boolean print)

Gnostice PDFOne Java
Std. Ed. v2.10

To contact our support team, send an e-mail to support@gnostice.com.
 
© 2008 Gnostice Information Technologies Private Limited. All rights reserved.
www.gnostice.com