开发者

enabling/disabling a gwt spanelement

开发者 https://www.devze.com 2023-03-08 19:41 出处:网络
how can i programatically enable/disable a com.google.gwt.dom.client.SpanElement i need to have methods like setEnabled(boolean enabled) and isEnabled();

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

精彩评论

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

关注公众号