-----------------------------------------
salaam
this Solutions in not true
---------------------------------------------------------------
final Button sendButton = new Button("Send");
sendButton.setEnabled(false);
Also i have tried the following thing.
final Button sendButton = new Button("Send");
DOM.setElementPropertyBoolean(
sendButton.getElement(), "disabled",
true);
--------------------------------------------------------------------true);
is true Solutions
create method for example
--------------------------------------------------------
private void createButtonClosed() {
final HTML closeHtml = new HTML("Close");
this.horizontalPanel.setCellHorizontalAlignment(closeHtml, HasHorizontalAlignment.ALIGN_CENTER);
this.horizontalPanel.add(closeHtml);
closeHtml.addClickHandler(new ClickHandler() {
@Override
public void onClick(final ClickEvent event) {
// TODO Auto-generated method stub
Window.enableScrolling(true);
EditAccountDialog.this.hide();
}
});
closeHtml.setStyleName("1");
// ----
closeHtml.addMouseMoveHandler(new MouseMoveHandler() {
@Override
public void onMouseMove(final MouseMoveEvent event) {
closeHtml.setStyleName("2");
}
});
closeHtml.addMouseOutHandler(new MouseOutHandler() {
@Override
public void onMouseOut(final MouseOutEvent event) {
closeHtml.setStyleName("1");
}
});
----------------------------------------------------
Notes see the method addMouseMoveHandler and addMouseOutHandler
inside method setStyleName this method inside Css and outside Methods
Method genral Css setStyleName
(1 )for example css
genral method inside css
--------------------------------------------
.1 {
color: #0B5879;
padding: 2px;
border-width: 1px;
border-style: solid;
border-left: 1px solid #ffffff;
border-right: 1px solid #000000;
border-top: 1px solid #ffffff;
border-bottom: 1px solid #000000;
font-size: 14px;
font-weight: bold;
text-align: center;
vertical-align: middle;
background-color: rgb(222, 222, 222);
cursor: pointer;
white-space: nowrap;
}
-------------------------------------------
(2)for example css
addMouseMoveHandler method inside css
.2 {
color: White;
padding: 2px;
border-width: 1px;
border-style: solid;
border-left: 1px solid #ffffff;
border-right: 1px solid #000000;
border-top: 1px solid #ffffff;
border-bottom: 1px solid #000000;
font-size: 14px;
font-weight: bold;
text-align: center;
vertical-align: middle;
background-color: rgb(8, 89, 123);
cursor: pointer;
white-space: nowrap;
}
thanks
mohammad salah
Regard: Mohamed salah hasan
Mobile :+20106594094
tel :+2024460320
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment