Update ooo320-m1
[ooovba.git] / odk / examples / java / Inspector / XTreeControlProvider.java
blobcbc3f5526ed0b22cf78c32aa00e9833b7d065408
1 /*************************************************************************
3 * $RCSfile: XTreeControlProvider.java,v $
5 * $Revision: 1.3 $
7 * last change: $Author: rt $ $Date: 2007-01-30 08:16:18 $
9 * The Contents of this file are made available subject to the terms of
10 * the BSD license.
12 * Copyright (c) 2003 by Sun Microsystems, Inc.
13 * All rights reserved.
15 * Redistribution and use in source and binary forms, with or without
16 * modification, are permitted provided that the following conditions
17 * are met:
18 * 1. Redistributions of source code must retain the above copyright
19 * notice, this list of conditions and the following disclaimer.
20 * 2. Redistributions in binary form must reproduce the above copyright
21 * notice, this list of conditions and the following disclaimer in the
22 * documentation and/or other materials provided with the distribution.
23 * 3. Neither the name of Sun Microsystems, Inc. nor the names of its
24 * contributors may be used to endorse or promote products derived
25 * from this software without specific prior written permission.
27 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
28 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
29 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
30 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
31 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
32 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
33 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
34 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
35 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
36 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
37 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39 *************************************************************************/
41 import com.sun.star.beans.Property;
42 import com.sun.star.beans.PropertyValue;
43 import com.sun.star.reflection.XIdlMethod;
44 import com.sun.star.uno.Type;
46 public interface XTreeControlProvider {
48 public static String sTitle = "User defined";
50 public String enableFilterElements(XUnoNode _oUnoNode);
52 public void setSourceCode(String _sSourceCode);
54 public Object inspect(java.lang.Object _oUserDefinedObject, String _sTitle) throws com.sun.star.uno.RuntimeException;
56 public void nodeInserted(XUnoNode _oParentNode, XUnoNode _oChildNode, int index);
58 public void nodeChanged(XUnoNode _oNode);
60 public boolean setNodeVisible(Object node, boolean v);
62 public XUnoNode getSelectedNode();
64 public XTreePathProvider getSelectedPath();
66 public void expandPath(XTreePathProvider xTreePathProvider) throws java.lang.ClassCastException;
68 public void addTreeExpandListener();
70 public void addInspectorPane(InspectorPane _oInspectorPane);
72 public boolean isPropertyNode(XUnoNode _oUnoNode);
74 public boolean isMethodNode(XUnoNode _oUnoNode);
76 public boolean isFacetteNode(XUnoNode _oUnoNode);
78 public XUnoNode addUnoNode(Object _oUnoObject);
80 public XUnoNode addUnoNode(Object _oUnoObject, Type _aType);
82 public XUnoFacetteNode addUnoFacetteNode(XUnoNode _oParentNode, String _sNodeDescription, Object _oUnoObject);
84 public XUnoMethodNode addMethodNode(Object _objectElement, XIdlMethod _xIdlMethod);
86 public XUnoPropertyNode addUnoPropertyNodeWithName(Property _aProperty);
88 public XUnoPropertyNode addUnoPropertyNodeWithHandle(Property _aProperty);
90 public XUnoPropertyNode addUnoPropertyNodeWithType(Property _aProperty);
92 public XUnoPropertyNode addUnoPropertyNodeWithAttributesDescription(Property _aProperty);
94 public XUnoPropertyNode addUnoPropertyNode(Object _oUnoObject, Property _aProperty);
96 public XUnoPropertyNode addUnoPropertyNode(Object _oUnoObject, PropertyValue _aPropertyValue, Object _oReturnObject);
98 public XUnoPropertyNode addUnoPropertyNode(Object _oUnoObject, Property _aProperty, Object _oUnoReturnObject);