summaryrefslogtreecommitdiff
path: root/odk/examples/java/Inspector/SwingUnoNode.java
diff options
context:
space:
mode:
Diffstat (limited to 'odk/examples/java/Inspector/SwingUnoNode.java')
-rw-r--r--odk/examples/java/Inspector/SwingUnoNode.java52
1 files changed, 26 insertions, 26 deletions
diff --git a/odk/examples/java/Inspector/SwingUnoNode.java b/odk/examples/java/Inspector/SwingUnoNode.java
index 19295cc4b4d0..14f23e94ad6d 100644
--- a/odk/examples/java/Inspector/SwingUnoNode.java
+++ b/odk/examples/java/Inspector/SwingUnoNode.java
@@ -2,7 +2,7 @@
*
* The Contents of this file are made available subject to the terms of
* the BSD license.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
* All rights reserved.
*
@@ -29,7 +29,7 @@
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
+ *
*************************************************************************/
import com.sun.star.uno.Type;
import javax.swing.tree.TreeNode;
@@ -37,31 +37,31 @@ import javax.swing.tree.TreeNode;
public class SwingUnoNode extends HideableMutableTreeNode implements XUnoNode{
private UnoNode m_oUnoNode;
-
+
/** Creates a new instance of SwingUnoNode */
public SwingUnoNode(Object _oUnoObject) {
- super();
+ super();
m_oUnoNode = new UnoNode(_oUnoObject);
}
-
+
public SwingUnoNode(Object _oUnoObject, Type _aType) {
super();
- m_oUnoNode = new UnoNode(_oUnoObject, _aType);
+ m_oUnoNode = new UnoNode(_oUnoObject, _aType);
if (_aType != null){
this.setLabel(_aType.getTypeName());
}
}
-
-
+
+
public Object getUnoObject(){
return m_oUnoNode.getUnoObject();
}
-
+
public void setVisible(String _sFilter){
boolean bisVisible = isFilterApplicable(_sFilter);
super.setVisible(bisVisible);
- }
+ }
public boolean isFilterApplicable(String _sFilter) {
return m_oUnoNode.isFilterApplicable(_sFilter, getName());
@@ -91,13 +91,13 @@ public class SwingUnoNode extends HideableMutableTreeNode implements XUnoNode{
}
}
return sClassName;
- }
+ }
public String getAnchor() {
return m_oUnoNode.getAnchor();
}
-
-
+
+
public void setFoldable(boolean _bIsFoldable){
if (_bIsFoldable){
addDummyNode();
@@ -107,16 +107,16 @@ public class SwingUnoNode extends HideableMutableTreeNode implements XUnoNode{
}
}
-
+
public XUnoNode getParentNode(){
return (SwingUnoNode) super.getParent();
}
-
-
+
+
public void addChildNode(XUnoNode _xUnoNode) {
super.add((SwingUnoNode) _xUnoNode);
}
-
+
public void setLabel(String _sLabel){
super.setUserObject(_sLabel);
this.m_oUnoNode.setLabel(_sLabel);
@@ -126,30 +126,30 @@ public class SwingUnoNode extends HideableMutableTreeNode implements XUnoNode{
return (String) super.getUserObject();
}
-
+
public int getChildCount(){
return super.getChildCount();
}
-
-
+
+
public XUnoNode getChild(int _i){
return (SwingUnoNode) super.getChildAt(_i);
}
-
+
public int getNodeType(){
return m_oUnoNode.getNodeType();
}
-
+
public void setNodeType(int _nNodeType){
m_oUnoNode.setNodeType(_nNodeType);
}
-
-
+
+
public String getName(){
return getClassName();
}
-
-
+
+
public Type getUnoType(){
return m_oUnoNode.getUnoType();
}