pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1690695 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/action/PDFormFieldAdditionalActions.java
Date Mon, 13 Jul 2015 15:15:29 GMT
Author: tilman
Date: Mon Jul 13 15:15:28 2015
New Revision: 1690695

URL: http://svn.apache.org/r1690695
Log:
PDFBOX-2852: use COSName constants

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/action/PDFormFieldAdditionalActions.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/action/PDFormFieldAdditionalActions.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/action/PDFormFieldAdditionalActions.java?rev=1690695&r1=1690694&r2=1690695&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/action/PDFormFieldAdditionalActions.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/action/PDFormFieldAdditionalActions.java
Mon Jul 13 15:15:28 2015
@@ -17,6 +17,7 @@
 package org.apache.pdfbox.pdmodel.interactive.action;
 
 import org.apache.pdfbox.cos.COSDictionary;
+import org.apache.pdfbox.cos.COSName;
 import org.apache.pdfbox.pdmodel.common.COSObjectable;
 
 /**
@@ -69,7 +70,7 @@ public class PDFormFieldAdditionalAction
      */
     public PDAction getK()
     {
-        COSDictionary k = (COSDictionary)actions.getDictionaryObject( "K" );
+        COSDictionary k = (COSDictionary) actions.getDictionaryObject(COSName.K);
         PDAction retval = null;
         if( k != null )
         {
@@ -88,7 +89,7 @@ public class PDFormFieldAdditionalAction
      */
     public void setK( PDAction k )
     {
-        actions.setItem( "K", k );
+        actions.setItem(COSName.K, k);
     }
 
     /**
@@ -100,7 +101,7 @@ public class PDFormFieldAdditionalAction
      */
     public PDAction getF()
     {
-        COSDictionary f = (COSDictionary)actions.getDictionaryObject( "F" );
+        COSDictionary f = (COSDictionary) actions.getDictionaryObject(COSName.F);
         PDAction retval = null;
         if( f != null )
         {
@@ -118,7 +119,7 @@ public class PDFormFieldAdditionalAction
      */
     public void setF( PDAction f )
     {
-        actions.setItem( "F", f );
+        actions.setItem(COSName.F, f);
     }
 
     /**
@@ -131,7 +132,7 @@ public class PDFormFieldAdditionalAction
      */
     public PDAction getV()
     {
-        COSDictionary v = (COSDictionary)actions.getDictionaryObject( "V" );
+        COSDictionary v = (COSDictionary) actions.getDictionaryObject(COSName.V);
         PDAction retval = null;
         if( v != null )
         {
@@ -150,7 +151,7 @@ public class PDFormFieldAdditionalAction
      */
     public void setV( PDAction v )
     {
-        actions.setItem( "V", v );
+        actions.setItem(COSName.V, v);
     }
 
     /**
@@ -164,7 +165,7 @@ public class PDFormFieldAdditionalAction
      */
     public PDAction getC()
     {
-        COSDictionary c = (COSDictionary)actions.getDictionaryObject( "C" );
+        COSDictionary c = (COSDictionary) actions.getDictionaryObject(COSName.C);
         PDAction retval = null;
         if( c != null )
         {
@@ -184,6 +185,6 @@ public class PDFormFieldAdditionalAction
      */
     public void setC( PDAction c )
     {
-        actions.setItem( "C", c );
+        actions.setItem(COSName.C, c);
     }
 }



Mime
View raw message