Lbgxter
19 Feb 2012, 4:19 PM
Why the Button is not framed on IE?
I need to show the frame when Button is focused without not overriding the onFocus method.
Other some GXT widgets can be framed.
Are there technical problems?
com.extjs.gxt.ui.client.widget.button
protected void onFocus(ComponentEvent ce) {
if (!disabled) {
addStyleName(baseStyle + "-focus");
if (GXT.isFocusManagerEnabled() && !GXT.isIE) {
FocusFrame.get().frame(this); //I need to call this method but isn't called on IE.
}
}
}
com.extjs.gxt.ui.client.widget.layoutcontainer
protected void onFocus(ComponentEvent ce) {
if (GXT.isFocusManagerEnabled() && FocusManager.get().isManaged()) {
if (getFocusSupport().isIgnore()) {
for (int i = 0; i < getItemCount(); i++) {
Component c = getItem(i);
if (!c.getFocusSupport().isIgnore()) {
c.focus();
break;
}
}
} else {
FocusFrame.get().frame(this); // be called on IE.
}
}
}
I need to show the frame when Button is focused without not overriding the onFocus method.
Other some GXT widgets can be framed.
Are there technical problems?
com.extjs.gxt.ui.client.widget.button
protected void onFocus(ComponentEvent ce) {
if (!disabled) {
addStyleName(baseStyle + "-focus");
if (GXT.isFocusManagerEnabled() && !GXT.isIE) {
FocusFrame.get().frame(this); //I need to call this method but isn't called on IE.
}
}
}
com.extjs.gxt.ui.client.widget.layoutcontainer
protected void onFocus(ComponentEvent ce) {
if (GXT.isFocusManagerEnabled() && FocusManager.get().isManaged()) {
if (getFocusSupport().isIgnore()) {
for (int i = 0; i < getItemCount(); i++) {
Component c = getItem(i);
if (!c.getFocusSupport().isIgnore()) {
c.focus();
break;
}
}
} else {
FocusFrame.get().frame(this); // be called on IE.
}
}
}