Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
e65de5ef
Kaydet (Commit)
e65de5ef
authored
Nis 11, 2003
tarafından
Vladimir Glazounov
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
INTEGRATION: CWS vcl07 (1.4.2); FILE ADDED
2003/04/08 14:28:37 obr 1.4.2.1: re-added accessibility workbench
üst
c6ac5048
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
101 additions
and
0 deletions
+101
-0
AccessibleTreeNode.java
toolkit/test/accessibility/AccessibleTreeNode.java
+101
-0
No files found.
toolkit/test/accessibility/AccessibleTreeNode.java
0 → 100644
Dosyayı görüntüle @
e65de5ef
import
java.util.Vector
;
import
com.sun.star.lang.IndexOutOfBoundsException
;
/**
Base class for all tree nodes.
*/
class
AccessibleTreeNode
{
/// The parent node. It is null for the root node.
protected
AccessibleTreeNode
maParent
;
/// The object to be displayed.
private
Object
maDisplayObject
;
public
AccessibleTreeNode
(
Object
aDisplayObject
,
AccessibleTreeNode
aParent
)
{
maDisplayObject
=
aDisplayObject
;
maParent
=
aParent
;
}
public
void
update
()
{
// Empty
}
public
AccessibleTreeNode
getParent
()
{
return
maParent
;
}
public
Object
getDisplayObject
()
{
return
maDisplayObject
;
}
public
int
getChildCount
()
{
return
0
;
}
public
AccessibleTreeNode
getChild
(
int
nIndex
)
throws
IndexOutOfBoundsException
{
throw
new
IndexOutOfBoundsException
();
}
public
AccessibleTreeNode
getChildNoCreate
(
int
nIndex
)
throws
IndexOutOfBoundsException
{
throw
new
IndexOutOfBoundsException
();
}
public
boolean
removeChild
(
int
nIndex
)
throws
IndexOutOfBoundsException
{
throw
new
IndexOutOfBoundsException
();
}
public
int
indexOf
(
AccessibleTreeNode
aNode
)
{
return
-
1
;
}
/** Create a path to this node by first asking the parent for its path
and then appending this object.
*/
public
void
createPath
(
java
.
util
.
Vector
aPath
)
{
if
(
maParent
!=
null
)
maParent
.
createPath
(
aPath
);
aPath
.
add
(
this
);
}
public
Object
[]
createPath
()
{
Vector
aPath
=
new
Vector
(
1
);
createPath
(
aPath
);
return
aPath
.
toArray
();
}
public
boolean
isLeaf
()
{
return
true
;
}
public
String
toString
()
{
return
maDisplayObject
.
toString
();
}
/** get names of suported actions */
public
String
[]
getActions
()
{
return
new
String
[]
{};
}
/** perform action */
public
void
performAction
(
int
nIndex
)
{
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment