Hi i want to know if this is possible in a toolbar added
using a Addon using Java.
Suppose the toolbar contains 3 buttons.(A, B,C) Is it
possible to have only one button enabled(A is enabled) and
the other two buttons disabled. ( B and C disabled) by
default.
Onclick of button A i would like to enable either B or C.
public void trigger(String sEvent)
{
String buttonName;
buttonName=sEvent;
if(buttonName.equals("buttonA"))
first();
else
if(buttonName.equals("buttonB"))
second();
else
if(buttonName.equals("buttonC"))
third();
}
public void first()
{
// disable second() and third ()
// check for a condition
//enable second()
// or third()
}
Or can i disable second() and third() in public void
initialize and enable second() and third() onclick of button
A.
public void initialize( Object[] object )
throws com.sun.star.uno.Exception
{
// disable second()
// disable third ()
}
public String[] getSupportedServiceNames() {
return getServiceNames();
}
When does public void initialize( Object[] object ) gets
executed?
With Regards,
Bharathy B
---------------------------------
How low will we go? Check out Yahoo! Messenger’s low
PC-to-Phone call rates. |