1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 import com.sun.star.beans.Property; 25 import com.sun.star.beans.PropertyValue; 26 import com.sun.star.reflection.XIdlMethod; 27 import com.sun.star.uno.Type; 28 29 public interface XTreeControlProvider { 30 31 public static String sTitle = "User defined"; 32 33 public String enableFilterElements(XUnoNode _oUnoNode); 34 35 public void setSourceCode(String _sSourceCode); 36 37 public Object inspect(java.lang.Object _oUserDefinedObject, String _sTitle) throws com.sun.star.uno.RuntimeException; 38 39 public void nodeInserted(XUnoNode _oParentNode, XUnoNode _oChildNode, int index); 40 41 public void nodeChanged(XUnoNode _oNode); 42 43 public boolean setNodeVisible(Object node, boolean v); 44 45 public XUnoNode getSelectedNode(); 46 47 public XTreePathProvider getSelectedPath(); 48 49 public void expandPath(XTreePathProvider xTreePathProvider) throws java.lang.ClassCastException; 50 51 public void addTreeExpandListener(); 52 53 public void addInspectorPane(InspectorPane _oInspectorPane); 54 55 public boolean isPropertyNode(XUnoNode _oUnoNode); 56 57 public boolean isMethodNode(XUnoNode _oUnoNode); 58 59 public boolean isFacetteNode(XUnoNode _oUnoNode); 60 61 public XUnoNode addUnoNode(Object _oUnoObject); 62 63 public XUnoNode addUnoNode(Object _oUnoObject, Type _aType); 64 65 public XUnoFacetteNode addUnoFacetteNode(XUnoNode _oParentNode, String _sNodeDescription, Object _oUnoObject); 66 67 public XUnoMethodNode addMethodNode(Object _objectElement, XIdlMethod _xIdlMethod); 68 69 public XUnoPropertyNode addUnoPropertyNodeWithName(Property _aProperty); 70 71 public XUnoPropertyNode addUnoPropertyNodeWithHandle(Property _aProperty); 72 73 public XUnoPropertyNode addUnoPropertyNodeWithType(Property _aProperty); 74 75 public XUnoPropertyNode addUnoPropertyNodeWithAttributesDescription(Property _aProperty); 76 77 public XUnoPropertyNode addUnoPropertyNode(Object _oUnoObject, Property _aProperty); 78 79 public XUnoPropertyNode addUnoPropertyNode(Object _oUnoObject, PropertyValue _aPropertyValue, Object _oReturnObject); 80 81 public XUnoPropertyNode addUnoPropertyNode(Object _oUnoObject, Property _aProperty, Object _oUnoReturnObject); 82 } 83