Config ui work
git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@39 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
parent
cc1fcbb4f9
commit
e5a80e7b80
15 changed files with 484 additions and 257 deletions
|
@ -20,7 +20,7 @@
|
|||
*
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Version 1.2 (2009-09-06)
|
||||
* Version 1.2 (2009-11-02)
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -70,6 +70,17 @@ public class DialogAccess {
|
|||
}
|
||||
|
||||
|
||||
public boolean getControlEnabled(String sControlName) {
|
||||
XPropertySet xPropertySet = getControlProperties(sControlName);
|
||||
try {
|
||||
return ((Boolean) xPropertySet.getPropertyValue("Enabled")).booleanValue();
|
||||
}
|
||||
catch (Exception e) {
|
||||
// Will fail if the control does not exist
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public void setControlEnabled(String sControlName, boolean bEnabled) {
|
||||
XPropertySet xPropertySet = getControlProperties(sControlName);
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue