Is it possible to get the width of a border for a panel, and/or other css style attributes values from a class? (if the css style attributes has been declared using ui:style from uibinder).
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s possible to do with the com.google.gwt.dom.client.Style. UIObject (so as the Widget) has the
getElement()method which returns DOM Element.Try getElement() -> getStyle() -> getBorderWidth(). In the Style class there are appropriate methods for many CSS properties. For the other props Style has
getProperty(String)method (to get “backgroungPosition” for example). This should work for ui:style as well.