本文整理汇总了Java中com.google.gwt.dom.client.ButtonElement类的典型用法代码示例。如果您正苦于以下问题:Java ButtonElement类的具体用法?Java ButtonElement怎么用?Java ButtonElement使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ButtonElement类属于com.google.gwt.dom.client包,在下文中一共展示了ButtonElement类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: setAccessKey
import com.google.gwt.dom.client.ButtonElement; //导入依赖的package包/类
@Override
public void setAccessKey(final char key) {
final Element element = uiObject.getElement();
final String accessKey = Character.toString(key);
if (AnchorElement.is(element)) {
AnchorElement.as(element).setAccessKey(accessKey);
} else if (ButtonElement.is(element)) {
ButtonElement.as(element).setAccessKey(accessKey);
} else if (InputElement.is(element)) {
InputElement.as(element).setAccessKey(accessKey);
}
}
开发者ID:GwtMaterialDesign,项目名称:gwt-material,代码行数:14,代码来源:FocusableMixin.java
示例2: UserLoginDialogUI
import com.google.gwt.dom.client.ButtonElement; //导入依赖的package包/类
private UserLoginDialogUI(){
super( false, true, true, null);
//Set the dialog's caption.
this.setText( titlesI18N.userLoginDialogTitle() );
//Set a style name so we can style it with CSS.
this.setStyleName( CommonResourcesContainer.USER_DIALOG_STYLE_NAME );
//Get a handle to the form and set its action to our jsni method
form = FormPanel.wrap(Document.get().getElementById(LOGINFORM_ID), false);
//Get the cancel button for text localization
cancel = (ButtonElement) Document.get().getElementById(CANCELBUTTON_ID);
cancel.setInnerText( getLeftButtonText() );
//Get the submit button for text localization
submit = (ButtonElement) Document.get().getElementById(LOGINBUTTON_ID);
submit.setInnerText( getRightButtonText() );
//Get the user login input
userLoginInput = (InputElement) Document.get().getElementById(USERNAME_ID);
//Get the user password input
userPasswordInput = (InputElement) Document.get().getElementById(PASSWORD_ID);
//Fill dialog with data
populateDialog();
//Enable the action buttons and hot key
setLeftEnabled( true );
setRightEnabled( true );
}
开发者ID:ivan-zapreev,项目名称:x-cure-chat,代码行数:34,代码来源:UserLoginDialogUI.java
示例3: IneButton
import com.google.gwt.dom.client.ButtonElement; //导入依赖的package包/类
/**
* wraps elemet for button
*
* @param color
* @param element
*/
public IneButton(Color color, String text, ButtonElement element) {
button = Button.wrap(element);
initWidget(uiBinder.createAndBindUi(this));
button.setText(text);
setColor(color);
}
开发者ID:inepex,项目名称:ineform,代码行数:13,代码来源:IneButton.java
示例4: createUI
import com.google.gwt.dom.client.ButtonElement; //导入依赖的package包/类
/**
* this method initializes the protected fields: labels and button
*/
protected void createUI() {
ObjectDesc desc = new ObjectDesc(
loginObjectDesc,
new StringFDesc(email, IneFrameI18n.USERNAME()),
new StringFDesc(pass, IneFrameI18n.PASSWORD()),
new StringFDesc(captcha, IneFrameI18n.CAPTCHA()));
descriptorStore.registerObjectDesc(Marker.registered, desc);
FormRDesc fDesc = new FormRDesc(loginObjectDesc);
fDesc.getRootNode().addChild(
email,
new WidgetRDesc(FWTypes.TEXTBOXBYDOMID).prop(IneFormProperties.domId, "username"));
fDesc.getRootNode().addChild(
pass,
new WidgetRDesc(FWTypes.PASSWORDTEXTBOXBYDOMID)
.prop(IneFormProperties.domId, "password"));
fDesc.getRootNode().addChild(
captcha,
new WidgetRDesc(FWTypes.CAPTCHA)
.width(100)
.prop(CaptchaFW.PROP_RENDERING, CaptchaFW.HORIZONTAL));
descriptorStore.addDefaultTypedDesc(Marker.registered, loginObjectDesc, fDesc);
ineForm = formFactory.createSimple(loginObjectDesc, null);
ineForm.renderForm();
formContent.add(ineForm.asWidget());
ButtonElement submitEl = (ButtonElement) Document.get().getElementById("loginSubmit");
Element formEl = DOM.getElementById("loginform");
loginButton = new IneButton(Color.GREEN, IneFrameI18n.LOGIN(), submitEl);
formContent.add(loginButton);
formPanel = (formEl == null ? new FormPanel() : FormPanel.wrap(formEl));
formEl.getStyle().setDisplay(Display.BLOCK);
formPanel.add(formContent);
mainPanel.add(formPanel);
}
开发者ID:inepex,项目名称:ineform,代码行数:40,代码来源:LoginBox.java
示例5: createButton
import com.google.gwt.dom.client.ButtonElement; //导入依赖的package包/类
private ButtonElement createButton(Document document, String className) {
ButtonElement result = document.createPushButtonElement();
result.addClassName(className);
return result;
}
开发者ID:WhitesteinTechnologies,项目名称:wt-pdf-viewer,代码行数:7,代码来源:WTPdfViewerWidget.java
示例6: createChildButton
import com.google.gwt.dom.client.ButtonElement; //导入依赖的package包/类
private ButtonElement createChildButton(Document document, Element parent, String nameId) {
ButtonElement result = createButton(document, nameId);
parent.appendChild(result);
return result;
}
开发者ID:WhitesteinTechnologies,项目名称:wt-pdf-viewer,代码行数:7,代码来源:WTPdfViewerWidget.java
注:本文中的com.google.gwt.dom.client.ButtonElement类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论