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
f5cdcbd6
Kaydet (Commit)
f5cdcbd6
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:27 obr 1.4.2.1: re-added accessibility workbench
üst
28a40571
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
72 additions
and
0 deletions
+72
-0
AccessibleActionHandler.java
toolkit/test/accessibility/AccessibleActionHandler.java
+72
-0
No files found.
toolkit/test/accessibility/AccessibleActionHandler.java
0 → 100644
Dosyayı görüntüle @
f5cdcbd6
import
com.sun.star.uno.UnoRuntime
;
import
drafts.com.sun.star.accessibility.XAccessibleContext
;
import
drafts.com.sun.star.accessibility.XAccessibleAction
;
import
com.sun.star.lang.IndexOutOfBoundsException
;
class
AccessibleActionHandler
extends
NodeHandler
{
public
NodeHandler
createHandler
(
XAccessibleContext
xContext
)
{
XAccessibleAction
xEComponent
=
(
XAccessibleAction
)
UnoRuntime
.
queryInterface
(
XAccessibleAction
.
class
,
xContext
);
if
(
xEComponent
!=
null
)
return
new
AccessibleActionHandler
(
xEComponent
);
else
return
null
;
}
public
AccessibleActionHandler
()
{
}
public
AccessibleActionHandler
(
XAccessibleAction
xAction
)
{
if
(
xAction
!=
null
)
maChildList
.
setSize
(
1
+
xAction
.
getAccessibleActionCount
());
}
protected
static
XAccessibleAction
getAction
(
AccTreeNode
aParent
)
{
return
(
XAccessibleAction
)
UnoRuntime
.
queryInterface
(
XAccessibleAction
.
class
,
aParent
.
getContext
());
}
public
AccessibleTreeNode
createChild
(
AccessibleTreeNode
aParent
,
int
nIndex
)
{
AccessibleTreeNode
aChild
=
null
;
if
(
aParent
instanceof
AccTreeNode
)
{
XAccessibleAction
xAction
=
getAction
((
AccTreeNode
)
aParent
);
if
(
xAction
!=
null
)
{
if
(
nIndex
==
0
)
aChild
=
new
StringNode
(
"Number of actions: "
+
xAction
.
getAccessibleActionCount
(),
aParent
);
else
{
nIndex
-=
1
;
try
{
aChild
=
new
AccessibleActionNode
(
"Action "
+
nIndex
+
" : "
+
xAction
.
getAccessibleActionDescription
(
nIndex
),
aParent
,
nIndex
);
}
catch
(
IndexOutOfBoundsException
e
)
{
aChild
=
new
StringNode
(
"ERROR"
,
aParent
);
}
}
}
}
return
aChild
;
}
}
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