Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/gwt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
GWT:TabPanelLayoutPanel隐藏或显示Tabbaritems_Gwt_Gwt2 - Fatal编程技术网

GWT:TabPanelLayoutPanel隐藏或显示Tabbaritems

GWT:TabPanelLayoutPanel隐藏或显示Tabbaritems,gwt,gwt2,Gwt,Gwt2,是否有任何方法可以隐藏/显示TablayoutPanel中的TabBar项?setVisible将仅将“样式”属性“显示”设置为“无”。所以你可以像这样创建你自己的API public void hideTabItem ( Widget tabItem, boolean hideFl ) { hideTabItem ( tabItem.getElement(), hideFl ); OR tabItem.setVisible

是否有任何方法可以隐藏/显示TablayoutPanel中的TabBar项?setVisible将仅将“样式”属性“显示”设置为“无”。所以你可以像这样创建你自己的API

 public void hideTabItem ( Widget tabItem, boolean hideFl )
 {
     hideTabItem ( tabItem.getElement(), hideFl );
                        OR
     tabItem.setVisible ( hideFl );
 }

private static native void hideTabItem (Element elem, boolean visible) 
/*-{
     elem.style.display = visible ? '' : 'none';
     elem.setAttribute('aria-hidden', String(!visible));
 }-*/;
注意:要了解更多关于aria hidden属性的信息,请访问链接

“aria hidden”这个属性对我来说是新的,你能告诉我它到底是做什么的吗?我在谷歌上搜索过,但不太了解有关GWT的Daria信息-