summaryrefslogtreecommitdiffstats
path: root/tdejava/koala/org/trinitydesktop/koala/CustomNodeFilter.java
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2014-01-08 20:06:00 +0100
committerSlávek Banko <slavek.banko@axis.cz>2014-01-08 20:06:00 +0100
commit636f509299122d02087c6fd62e1e4a46dbd22026 (patch)
tree70e43efceeb5b00e7f19cdac8da44928bd2fb459 /tdejava/koala/org/trinitydesktop/koala/CustomNodeFilter.java
parent719b61750c08343f530068ed4127623aeac71cf0 (diff)
downloadtdebindings-636f509299122d02087c6fd62e1e4a46dbd22026.tar.gz
tdebindings-636f509299122d02087c6fd62e1e4a46dbd22026.zip
Rename many classes to avoid conflicts with KDE
Diffstat (limited to 'tdejava/koala/org/trinitydesktop/koala/CustomNodeFilter.java')
-rw-r--r--tdejava/koala/org/trinitydesktop/koala/CustomNodeFilter.java49
1 files changed, 49 insertions, 0 deletions
diff --git a/tdejava/koala/org/trinitydesktop/koala/CustomNodeFilter.java b/tdejava/koala/org/trinitydesktop/koala/CustomNodeFilter.java
new file mode 100644
index 00000000..7065e5d0
--- /dev/null
+++ b/tdejava/koala/org/trinitydesktop/koala/CustomNodeFilter.java
@@ -0,0 +1,49 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.trinitydesktop.koala;
+
+import org.trinitydesktop.qt.Qt;
+import org.trinitydesktop.qt.QtSupport;
+
+/**
+
+ CustomNodeFilter can be used to define your own NodeFilter for use
+ with NodeIterators and TreeWalkers. You can create a custom filter
+ by doing the following:
+ class MyCustomNodeFilter {
+ .....
+ short acceptNode (Noden);
+ .....
+ }
+ Then in your program:
+ short MyCustomNodeFilter.acceptNode (Noden)
+ {
+ if (condition)
+ return NodeFilter.FILTER_ACCEPT;
+ else
+ ....
+ }
+ MyCustomFilter filter = new MyCustomFilter();
+ NodeFilter nf = NodeFilter.createCustom(filter);
+ NodeIterator ni = document.createNodeIterator(document,NodeFilter.SHOW_ALL,nf,false);
+ The default implementation of acceptNode() returns NodeFilter.FILTER_ACCEPT
+ for all nodes.
+ @short CustomNodeFilter can be used to define your own NodeFilter for use with NodeIterators and TreeWalkers.
+
+*/
+public class CustomNodeFilter extends DomShared {
+ protected CustomNodeFilter(Class dummy){super((Class) null);}
+ public CustomNodeFilter() {
+ super((Class) null);
+ newCustomNodeFilter();
+ }
+ private native void newCustomNodeFilter();
+ public native short acceptNode(Node n);
+ public native boolean isNull();
+ /**
+ not part of the DOM
+ Returns a name specifying the type of custom node filter. Useful for checking
+ if an custom node filter is of a particular sublass.
+ @short
+ */
+ public native String customNodeFilterType();
+}