diff options
author | Rüdiger Timm <rt@openoffice.org> | 2007-04-04 08:21:25 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2007-04-04 08:21:25 +0000 |
commit | ef39e0dae6bd8d6390b5c9d2a566a835c24b7124 (patch) | |
tree | 0142489111d64d17aa4cc7c8ce8709617c4987a0 /odk | |
parent | dbf0465717922d4fd3fcdf01e380de2798e42dfa (diff) |
INTEGRATION: CWS sdkinspector3 (1.2.6); FILE MERGED
2007/02/22 16:45:22 bc 1.2.6.3: #i74649#methodNode.isinvoked() method embedded
2007/02/20 18:24:47 bc 1.2.6.2: #i74649# Code with isPopupTrigger() improved
2007/02/20 11:17:57 bc 1.2.6.1: #i74649#several changes
Diffstat (limited to 'odk')
-rw-r--r-- | odk/examples/java/Inspector/SwingUnoMethodNode.java | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/odk/examples/java/Inspector/SwingUnoMethodNode.java b/odk/examples/java/Inspector/SwingUnoMethodNode.java index f04f823bc0e0..148db17ca02b 100644 --- a/odk/examples/java/Inspector/SwingUnoMethodNode.java +++ b/odk/examples/java/Inspector/SwingUnoMethodNode.java @@ -2,9 +2,9 @@ * * $RCSfile: SwingUnoMethodNode.java,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: rt $ $Date: 2007-01-30 08:13:33 $ + * last change: $Author: rt $ $Date: 2007-04-04 09:21:25 $ * * The Contents of this file are made available subject to the terms of * the BSD license. @@ -48,16 +48,22 @@ import java.util.Vector; public class SwingUnoMethodNode extends SwingUnoNode implements ActionListener, XUnoMethodNode{ private UnoMethodNode m_oUnoMethodNode; + private XDialogProvider m_xDialogProvider = null; - public SwingUnoMethodNode(XIdlMethod _xIdlMethod, Object _oUnoObject) { + public SwingUnoMethodNode(XIdlMethod _xIdlMethod, Object _oUnoObject, XDialogProvider _xDialogProvider) { super(_oUnoObject); m_oUnoMethodNode = new UnoMethodNode(_xIdlMethod, _oUnoObject, this); + m_xDialogProvider = _xDialogProvider; setUserObject(m_oUnoMethodNode.getNodeDescription()); if (m_oUnoMethodNode.isFoldable()){ setFoldable(true); } } + public boolean isFoldable(){ + return m_oUnoMethodNode.isFoldable(); + } + public String getName(){ return m_oUnoMethodNode.getName(); } @@ -71,6 +77,9 @@ public class SwingUnoMethodNode extends SwingUnoNode implements ActionListener, return sClassName; } + public String getAnchor(){ + return m_oUnoMethodNode.getAnchor(); + } public Object invoke(Object _oUnoObject, Object[] _oParameters) throws com.sun.star.uno.Exception{ return m_oUnoMethodNode.invoke(_oUnoObject, _oParameters); @@ -105,12 +114,16 @@ public class SwingUnoMethodNode extends SwingUnoNode implements ActionListener, return m_oUnoMethodNode.isInvoked(); } + public boolean isInvokable(){ + return m_oUnoMethodNode.isInvokable(); + } + public boolean isPrimitive() { return m_oUnoMethodNode.isPrimitive(); } public void actionPerformed(ActionEvent e){ - openIdlDescription(); + openIdlDescription(m_xDialogProvider.getIDLPath()); } public Vector getMethodObjects(){ @@ -120,6 +133,11 @@ public class SwingUnoMethodNode extends SwingUnoNode implements ActionListener, } + public String getParameterDescription(){ + return m_oUnoMethodNode.getParameterDescription(); + } + + public String getStandardMethodDescription(){ return m_oUnoMethodNode.getStandardMethodDescription(); } |