Tabnine Logo
PDActionRemoteGoTo.getCOSObject
Code IndexAdd Tabnine to your IDE (free)

How to use
getCOSObject
method
in
org.apache.pdfbox.pdmodel.interactive.action.PDActionRemoteGoTo

Best Java code snippets using org.apache.pdfbox.pdmodel.interactive.action.PDActionRemoteGoTo.getCOSObject (Showing top 4 results out of 315)

origin: apache/pdfbox

/**
 * This will specify whether to open the destination document in a new window, in the same
 * window, or behave in accordance with the current user preference.
 *
 * @return A flag specifying how to open the destination document.
 */
public OpenMode getOpenInNewWindow()
{
  if (getCOSObject().getDictionaryObject(COSName.NEW_WINDOW) instanceof COSBoolean)
  {
    COSBoolean b = (COSBoolean) getCOSObject().getDictionaryObject(COSName.NEW_WINDOW);
    return b.getValue() ? OpenMode.NEW_WINDOW : OpenMode.SAME_WINDOW;
  }
  return OpenMode.USER_PREFERENCE;
}
origin: apache/pdfbox

  /**
   * This will specify whether to open the destination document in a new window.
   *
   * @param value The flag value.
   */
  public void setOpenInNewWindow(OpenMode value)
  {
    if (null == value)
    {
      getCOSObject().removeItem(COSName.NEW_WINDOW);
      return;
    }
    switch (value)
    {
      case USER_PREFERENCE:
        getCOSObject().removeItem(COSName.NEW_WINDOW);
        break;
      case SAME_WINDOW:
        getCOSObject().setBoolean(COSName.NEW_WINDOW, false);
        break;
      case NEW_WINDOW:
        getCOSObject().setBoolean(COSName.NEW_WINDOW, true);
        break;
      default:
        // shouldn't happen unless the enum type is changed
        break;
    }
  }
}
origin: org.apache.pdfbox/pdfbox

/**
 * This will specify whether to open the destination document in a new window, in the same
 * window, or behave in accordance with the current user preference.
 *
 * @return A flag specifying how to open the destination document.
 */
public OpenMode getOpenInNewWindow()
{
  if (getCOSObject().getDictionaryObject(COSName.NEW_WINDOW) instanceof COSBoolean)
  {
    COSBoolean b = (COSBoolean) getCOSObject().getDictionaryObject(COSName.NEW_WINDOW);
    return b.getValue() ? OpenMode.NEW_WINDOW : OpenMode.SAME_WINDOW;
  }
  return OpenMode.USER_PREFERENCE;
}
origin: org.apache.pdfbox/pdfbox

  /**
   * This will specify whether to open the destination document in a new window.
   *
   * @param value The flag value.
   */
  public void setOpenInNewWindow(OpenMode value)
  {
    if (null == value)
    {
      getCOSObject().removeItem(COSName.NEW_WINDOW);
      return;
    }
    switch (value)
    {
      case USER_PREFERENCE:
        getCOSObject().removeItem(COSName.NEW_WINDOW);
        break;
      case SAME_WINDOW:
        getCOSObject().setBoolean(COSName.NEW_WINDOW, false);
        break;
      case NEW_WINDOW:
        getCOSObject().setBoolean(COSName.NEW_WINDOW, true);
        break;
      default:
        // shouldn't happen unless the enum type is changed
        break;
    }
  }
}
org.apache.pdfbox.pdmodel.interactive.actionPDActionRemoteGoTogetCOSObject

Popular methods of PDActionRemoteGoTo

  • getFile
    This will get the file in which the destination is located.
  • <init>
    Constructor.
  • setSubType

Popular in Java

  • Start an intent from android
  • notifyDataSetChanged (ArrayAdapter)
  • addToBackStack (FragmentTransaction)
  • getSystemService (Context)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now