开发者

enabling/disabling a gwt spanelement

how can i programatically enable/disable a com.google.gwt.dom.client.SpanElement

i need to have methods like setEnabled(boolean enabled) and isEnabled();

SpanElement does not expose those .

Also if s开发者_StackOverflow中文版ome one can explain me the use of spanelement it would be great

<g:HTMLPanel ui:field="container">
    <div class="{style.column}">
        <g:CheckBox ui:field="pendingBillingCheckBox"></g:CheckBox><br clear="all" />
        <span class="{baseCSS.getApplicationCSS.label}">Tech $:</span>
        <span class="{baseCSS.getApplicationCSS.label}" ui:field="techCost"></span><br clear="all" />
        <span class="{baseCSS.getApplicationCSS.label}">Prof $:</span>
        <span class="{baseCSS.getApplicationCSS.label}" ui:field="prof"></span><br clear="all" />
        <g:TextBox addStyleNames="{style.profText}"></g:TextBox>
    </div>
</g:HTMLPanel>

i would like to enable/disable the techCost and prof UI fields

Thanks


Try:

spanElement.getStyle().setDisplay(Style.Display.NONE);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜