litesoft
@ 917
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
package org.litesoft.GWT.client.widgets.sliderbar.client.solution.adv; import com.google.gwt.event.dom.client.MouseOutEvent; import com.google.gwt.event.dom.client.MouseOutHandler; import com.google.gwt.event.dom.client.MouseOverEvent; import com.google.gwt.event.dom.client.MouseOverHandler; import org.litesoft.GWT.client.widgets.sliderbar.client.view.TouchableAbsolutePanelPK; public class MAdvancedPanel extends TouchableAbsolutePanelPK { String notSelectedStyleName = "madvnotselected"; String selectedStyleName = "madvselected"; boolean isSelected = false; public MAdvancedPanel(){ this.addStyleName(notSelectedStyleName); bind(); } public void setNotSelectedStyleName(String styleName){ notSelectedStyleName = styleName; if (!isSelected){ setNotSelectedStyle(); } } public void setSelectedStyleName(String styleName){ selectedStyleName = styleName; if (isSelected){ setSelectedStyle(); } } public void setNotSelectedStyle(){ removeStyleName(selectedStyleName); addStyleName(notSelectedStyleName); } public void setSelectedStyle(){ removeStyleName(notSelectedStyleName); addStyleName(selectedStyleName); } public void bind(){ this.addMouseOverEventHandler(new MouseOverHandler(){ public void onMouseOver(MouseOverEvent event) { setSelectedStyle(); } }); this.addMouseOutEventHandler(new MouseOutHandler(){ public void onMouseOut(MouseOutEvent event) { setNotSelectedStyle(); } }); } } |
Commits for litesoft/trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/sliderbar/client/solution/adv/MAdvancedPanel.java
Revision | Author | Commited | Message |
---|---|---|---|
917 | GeorgeS | Sun 08 Dec, 2013 20:49:56 +0000 | 1.7 prep & VersionedStaticContentFilter upgrade to new “/ver” model! |