ProtectionType
Contents
[
Hide
]
Inheritance: java.lang.Object
public class ProtectionType
Protection type for a document.
Fields
Field | Description |
---|---|
ALLOW_ONLY_COMMENTS | User can only modify comments in the document. |
ALLOW_ONLY_FORM_FIELDS | User can only enter data in the form fields in the document. |
ALLOW_ONLY_REVISIONS | User can only add revision marks to the document. |
NO_PROTECTION | The document is not protected. |
READ_ONLY | No changes are allowed to the document. |
length |
Methods
ALLOW_ONLY_COMMENTS
public static int ALLOW_ONLY_COMMENTS
User can only modify comments in the document.
ALLOW_ONLY_FORM_FIELDS
public static int ALLOW_ONLY_FORM_FIELDS
User can only enter data in the form fields in the document.
ALLOW_ONLY_REVISIONS
public static int ALLOW_ONLY_REVISIONS
User can only add revision marks to the document.
NO_PROTECTION
public static int NO_PROTECTION
The document is not protected.
READ_ONLY
public static int READ_ONLY
No changes are allowed to the document. Available since Microsoft Word 2003.
length
public static int length
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
fromName(String protectionTypeName)
public static int fromName(String protectionTypeName)
Parameters:
Parameter | Type | Description |
---|---|---|
protectionTypeName | java.lang.String |
Returns: int
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class>
getName(int protectionType)
public static String getName(int protectionType)
Parameters:
Parameter | Type | Description |
---|---|---|
protectionType | int |
Returns: java.lang.String
getValues()
public static int[] getValues()
Returns: int[]
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
toString()
public String toString()
Returns: java.lang.String
toString(int protectionType)
public static String toString(int protectionType)
Parameters:
Parameter | Type | Description |
---|---|---|
protectionType | int |
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |