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
1b231272
Kaydet (Commit)
1b231272
authored
Nis 19, 2002
tarafından
Andre Fischer
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added support for state sets.
üst
a8b3e7e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
1 deletion
+56
-1
AccessibleContextHandler.java
toolkit/test/accessibility/AccessibleContextHandler.java
+56
-1
No files found.
toolkit/test/accessibility/AccessibleContextHandler.java
Dosyayı görüntüle @
1b231272
import
drafts.com.sun.star.accessibility.XAccessible
;
import
drafts.com.sun.star.accessibility.XAccessibleContext
;
import
drafts.com.sun.star.accessibility.XAccessibleStateSet
;
import
com.sun.star.uno.UnoRuntime
;
import
com.sun.star.container.XIndexAccess
;
class
AccessibleContextHandler
...
...
@@ -8,6 +10,39 @@ class AccessibleContextHandler
{
protected
int
nChildrenCount
;
private
static
String
maStateNames
[]
=
{
"INVALID"
,
// 0
"ACTIVE"
,
"ARMED"
,
"BUSY"
,
"CHECKED"
,
"COLLAPSED"
,
"DEFUNC"
,
"EDITABLE"
,
"ENABLED"
,
"EXPANDABLE"
,
"EXPANDED"
,
// 10
"FOCUSABLE"
,
"FOCUSED"
,
"HORIZONTAL"
,
"ICONIFIED"
,
"MODAL"
,
"MULTILINE"
,
"MULTISELECTABLE"
,
"OPAQUE"
,
"PRESSED"
,
"RESIZABLE"
,
// 20
"SELECTABLE"
,
"SELECTED"
,
"SENSITIVE"
,
"SHOWING"
,
"SINGLE_LINE"
,
"STALE"
,
"TRANSIENT"
,
"VERTICAL"
,
"VISIBLE"
,
};
public
NodeHandler
createHandler
(
XAccessibleContext
xContext
)
{
if
(
xContext
!=
null
)
...
...
@@ -25,7 +60,7 @@ class AccessibleContextHandler
{
super
();
if
(
xContext
!=
null
)
maChildList
.
setSize
(
3
);
maChildList
.
setSize
(
4
);
}
public
AccessibleTreeNode
createChild
(
AccessibleTreeNode
aParent
,
int
nIndex
)
...
...
@@ -56,6 +91,26 @@ class AccessibleContextHandler
}
*/
break
;
case
3
:
sChild
=
""
;
XAccessibleStateSet
xStateSet
=
xContext
.
getAccessibleStateSet
();
if
(
xStateSet
!=
null
)
{
for
(
short
i
=
0
;
i
<=
29
;
i
++)
{
if
(
xStateSet
.
contains
(
i
))
{
if
(
sChild
.
compareTo
(
""
)
!=
0
)
sChild
+=
", "
;
sChild
+=
maStateNames
[
i
];
}
}
}
else
sChild
+=
"no state set"
;
sChild
=
"State set: "
+
sChild
;
/* case 3:
sChild = "Child count: " + xContext.getAccessibleChildCount();
break;*/
...
...
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