diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2003-03-27 16:05:12 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2003-03-27 16:05:12 +0000 |
commit | fd2cf3dc7cd9c73070fa4d70c8ca99c9fc1ce135 (patch) | |
tree | 9569a564e06fba817528ea414129b4074d83cb61 /toolkit/test/accessibility/AccessibleActionNode.java | |
parent | ff09f8d6ef2c613037f039dbcafcad6b76243a48 (diff) |
MWS_SRX644: migrate branch mws_srx644 -> HEAD
Diffstat (limited to 'toolkit/test/accessibility/AccessibleActionNode.java')
-rw-r--r-- | toolkit/test/accessibility/AccessibleActionNode.java | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/toolkit/test/accessibility/AccessibleActionNode.java b/toolkit/test/accessibility/AccessibleActionNode.java deleted file mode 100644 index 9f5ed1742167..000000000000 --- a/toolkit/test/accessibility/AccessibleActionNode.java +++ /dev/null @@ -1,48 +0,0 @@ -import javax.swing.JOptionPane; -import drafts.com.sun.star.accessibility.XAccessibleAction; - -/** - Base class for all tree nodes. - */ -class AccessibleActionNode - extends StringNode -{ - public AccessibleActionNode (String aDisplayObject, - AccessibleTreeNode aParent, - int nActionIndex) - { - super (aDisplayObject, aParent); - mnActionIndex = nActionIndex; - } - - public String[] getActions () - { - return new String[] {"Perform Action"}; - } - - /** perform action */ - public void performAction (int nIndex) - { - if (nIndex != 0) - return; - boolean bResult = false; - if (getParent() instanceof AccTreeNode) - try - { - bResult = AccessibleActionHandler.getAction( - (AccTreeNode)getParent()).doAccessibleAction ( - mnActionIndex); - } - catch (com.sun.star.lang.IndexOutOfBoundsException e) - { - } - - JOptionPane.showMessageDialog (null, - "performed action " + mnActionIndex - + (bResult?" with":" without") + " success", - "Action " + mnActionIndex, - JOptionPane.INFORMATION_MESSAGE); - } - - private int mnActionIndex; -} |