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 import com.sun.star.uno.Type; 23 24 25 26 public interface XUnoNode { 27 28 public static final int nINTERFACE = 1; 29 public static final int nSERVICE = 2; 30 public static final int nOTHERS = 3; 31 32 public String getAnchor(); 33 34 public String getClassName(); 35 36 public void openIdlDescription(String _sIDLUrl); 37 38 public boolean isFilterApplicable(String _sFilter); 39 40 public void setVisible(String _sFilter); 41 42 public void setParameterObjects(Object[] _oParamObjects); 43 44 public Object[] getParameterObjects(); 45 46 public String getName(); 47 48 public void setFoldable(boolean _bIsFoldable); 49 50 public Object getUnoObject(); 51 52 public XUnoNode getParentNode(); 53 54 public void addChildNode(XUnoNode _xUnoNode); 55 56 public void setLabel(String _sLabel); 57 58 public String getLabel(); 59 60 public int getChildCount(); 61 62 public XUnoNode getChild(int _index); 63 64 public int getNodeType(); 65 66 // possible values are nINTERFACE, nSERVICE, nOTHERS 67 public void setNodeType(int _nNodeType); 68 69 /** delivers only the Uno-Type when the NodeType is set to nINTERFACE 70 * otherwise (when the NodeType has not been set returns null 71 */ 72 public Type getUnoType(); 73 } 74