WriteProtection

Inheritance: java.lang.Object

public class WriteProtection

Specifies write protection settings for a workbook.

Constructors

ConstructorDescription
WriteProtection()

Methods

MethodDescription
equals(Object arg0)
getAuthor()Gets the author.
getClass()
getPassword()Sets the protected password to modify the file.
getRecommendReadOnly()Indicates if the Read Only Recommended option is selected.
hashCode()
isWriteProtected()Indicates whether this workbook is write protected.
notify()
notifyAll()
setAuthor(String value)Sets the author.
setPassword(String value)Sets the protected password to modify the file.
setRecommendReadOnly(boolean value)Indicates if the Read Only Recommended option is selected.
toString()
validatePassword(String password)Returns true if the specified password is the same as the write-protection password the file was protected with.
wait()
wait(long arg0)
wait(long arg0, int arg1)

WriteProtection()

public WriteProtection()

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getAuthor()

public String getAuthor()

Gets the author.

Returns: java.lang.String

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getPassword()

public String getPassword()

Sets the protected password to modify the file.

Remarks

Returns: java.lang.String

getRecommendReadOnly()

public boolean getRecommendReadOnly()

Indicates if the Read Only Recommended option is selected.

Returns: boolean

hashCode()

public native int hashCode()

Returns: int

isWriteProtected()

public boolean isWriteProtected()

Indicates whether this workbook is write protected.

Returns: boolean

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setAuthor(String value)

public void setAuthor(String value)

Sets the author.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setPassword(String value)

public void setPassword(String value)

Sets the protected password to modify the file.

Remarks

Parameters:

ParameterTypeDescription
valuejava.lang.String

setRecommendReadOnly(boolean value)

public void setRecommendReadOnly(boolean value)

Indicates if the Read Only Recommended option is selected.

Parameters:

ParameterTypeDescription
valueboolean

toString()

public String toString()

Returns: java.lang.String

validatePassword(String password)

public boolean validatePassword(String password)

Returns true if the specified password is the same as the write-protection password the file was protected with.

Parameters:

ParameterTypeDescription
passwordjava.lang.StringThe specified password.

Returns: boolean -

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int