本文整理了Java中com.google.gwt.user.client.ui.Button.getElement()
方法的一些代码示例,展示了Button.getElement()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.getElement()
方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.Button
类名称:Button
方法名:getElement
暂无
代码示例来源:origin: kaaproject/kaa
backButton.getElement().getStyle().setPaddingTop(25, Unit.PX);
backButton.getElement().getStyle().setPaddingBottom(25, Unit.PX);
firstRowPanel.setHeight("45px");
firstRowPanel.getElement().getStyle().setPaddingBottom(5, Unit.PX);
updateSchemaScopeButton.getElement().getStyle().setMarginLeft(horizontalMargin, Unit.PX);
createNewSchemaVersionButton.getElement().getStyle().setMarginLeft(horizontalMargin, Unit.PX);
saveButton.getElement().getStyle().setMarginLeft(horizontalMargin, Unit.PX);
cancelButton.getElement().getStyle().setMarginLeft(horizontalMargin, Unit.PX);
deleteSchemaVersionButton.addStyleName(Utils.kaaAdminStyle.deleteButton());
deleteSchemaVersionButton.setVisible(!create && editable);
deleteSchemaVersionButton.getElement().getStyle().setMarginLeft(horizontalMargin, Unit.PX);
代码示例来源:origin: com.google.gwt/gwt-servlet
/**
* Get the underlying button element.
*
* @return the {@link ButtonElement}
*/
protected ButtonElement getButtonElement() {
return getElement().cast();
}
}
代码示例来源:origin: kaaproject/kaa
loginButton.addStyleName(Utils.kaaAdminStyle.loginButton());
loginTable.setWidget(3, 2, loginButton);
loginButton.getElement().getStyle().setMarginTop(15, Unit.PX);
代码示例来源:origin: kaaproject/kaa
addProfileFilterButton.getElement()
.getParentElement()
.getStyle()
addConfigurationButton.getElement()
.getParentElement()
.getStyle()
addTopicButton.getElement().getParentElement().getStyle().setPropertyPx("paddingTop", 15);
detailsTable.getCellFormatter()
.setHorizontalAlignment(row, 2, HasHorizontalAlignment.ALIGN_RIGHT);
代码示例来源:origin: kaaproject/kaa
addEcfVersionButton.getElement().getParentElement().getStyle().setPropertyPx("paddingTop", 15);
detailsTable.getCellFormatter().setHorizontalAlignment(
8, 2, HasHorizontalAlignment.ALIGN_RIGHT);
代码示例来源:origin: com.vaadin.external.gwt/gwt-user
/**
* Get the underlying button element.
*
* @return the {@link ButtonElement}
*/
protected ButtonElement getButtonElement() {
return getElement().cast();
}
}
代码示例来源:origin: io.github.nibiruos.ui/org.nibiru.ui.gwt
@Override
public void applyStyle() {
super.applyStyle();
// Button text is always centered, to match Android behavior
control.getElement()
.getStyle()
.setTextAlign(Style.TextAlign.CENTER);
}
代码示例来源:origin: com.haulmont.cuba/cuba-web-toolkit
@Override
public void setTextFieldEnabled(boolean textFieldEnabled) {
super.setTextFieldEnabled(textFieldEnabled);
calendarToggle.getElement().setTabIndex(-1);
}
代码示例来源:origin: oVirt/ovirt-engine
@Override
public void setElementId(String elementId) {
dropdownButton.getElement().setAttribute(ID, elementId);
listPanel.setAriaLabelledBy(elementId);
}
代码示例来源:origin: org.eclipse.che.core/che-core-ide-ui
@Inject
public ConfirmDialogFooter(
final @NotNull UILocalizationConstant messages, WindowClientBundle resources) {
this.messages = messages;
rootPanel = uiBinder.createAndBindUi(this);
okButton.addStyleName(resources.getStyle().windowFrameFooterButtonPrimary());
okButton.getElement().setId("ask-dialog-ok");
cancelButton.addStyleName(resources.getStyle().windowFrameFooterButton());
cancelButton.getElement().setId("ask-dialog-cancel");
}
代码示例来源:origin: com.googlecode.gwtquery/gwtquery
public Button create(Element e) {
Button button = new Button();
button.getElement().setInnerText(e.getInnerText());
if ("button".equalsIgnoreCase(e.getTagName())) {
copyAttributes((ButtonElement) e.cast(), (ButtonElement) button.getElement().cast());
}
WidgetsUtils.replaceOrAppend(e, button);
return button;
}
代码示例来源:origin: ltearno/hexa.tools
public void setEnabled( Object obj, boolean fEnabled )
{
for( int i = 0; i < panel.getWidgetCount(); i++ )
{
Button b = (Button) panel.getWidget( i );
if( b.getElement().getPropertyObject( "object" ) == obj )
b.setEnabled( fEnabled );
}
}
代码示例来源:origin: org.eclipse.che.core/che-core-ide-ui
@Inject
public ChoiceDialogFooter(WindowClientBundle resources) {
rootPanel = uiBinder.createAndBindUi(this);
firstChoiceButton.addStyleName(resources.getStyle().windowFrameFooterButtonPrimary());
firstChoiceButton.getElement().setId("ask-dialog-first");
secondChoiceButton.addStyleName(resources.getStyle().windowFrameFooterButton());
secondChoiceButton.getElement().setId("ask-dialog-second");
thirdChoiceButton.addStyleName(resources.getStyle().windowFrameFooterButton());
thirdChoiceButton.getElement().setId("ask-dialog-third");
}
代码示例来源:origin: fr.lteconsulting/hexa.core
public void setButtonText( Object obj, String text )
{
for( int i = 0; i < panel.getWidgetCount(); i++ )
{
Button b = (Button) panel.getWidget( i );
if( b.getElement().getPropertyObject( "object" ) == obj )
b.setText( text );
}
}
代码示例来源:origin: fr.lteconsulting/hexa.core
public String getButtonText( Object obj )
{
for( int i = 0; i < panel.getWidgetCount(); i++ )
{
Button b = (Button) panel.getWidget( i );
if( b.getElement().getPropertyObject( "object" ) == obj )
return b.getText();
}
return null;
}
}
代码示例来源:origin: org.eclipse.che.plugin/che-plugin-git-ext-git
private void createButtons() {
changeViewModeButton.addClickHandler(clickEvent -> delegate.onChangeViewModeButtonClicked());
expandButton.setTitle(locale.changeListExpandCollapseAllButtonTitle());
expandButton.getElement().setInnerHTML(FontAwesome.EXPAND);
expandButton.addClickHandler(clickEvent -> delegate.onExpandButtonClicked());
collapseButton.setTitle(locale.changeListCollapseAllButtonTitle());
collapseButton.getElement().setInnerHTML(FontAwesome.COMPRESS);
collapseButton.addClickHandler(clickEvent -> delegate.onCollapseButtonClicked());
}
代码示例来源:origin: eclipse/hawkbit
@Override
public void render(final RendererCellReference cell, final FontIconData iconMetadata, final Button button) {
if (iconMetadata.getFontIconHtml() != null) {
button.setHTML(iconMetadata.getFontIconHtml());
}
applyStyles(button, iconMetadata.isDisabled(), iconMetadata.getStyle());
button.getElement().setId(iconMetadata.getId());
button.getElement().setTitle(iconMetadata.getTitle());
button.setEnabled(!iconMetadata.isDisabled());
// this is to allow the button to disappear, if the text is null
button.setVisible(iconMetadata.getFontIconHtml() != null);
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
@Override
public void render(final RendererCellReference cell, final FontIconData iconMetadata, final Button button) {
if (iconMetadata.getFontIconHtml() != null) {
button.setHTML(iconMetadata.getFontIconHtml());
}
applyStyles(button, iconMetadata.isDisabled(), iconMetadata.getStyle());
button.getElement().setId(iconMetadata.getId());
button.getElement().setTitle(iconMetadata.getTitle());
button.setEnabled(!iconMetadata.isDisabled());
// this is to allow the button to disappear, if the text is null
button.setVisible(iconMetadata.getFontIconHtml() != null);
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
@Override
public void render(final RendererCellReference cell, final String text, final Button button) {
final boolean buttonEnable = isButtonEnable(cell.getElement().getClassName());
if (text != null) {
button.setHTML(text);
}
applystyles(button, buttonEnable);
// this is to allow the button to disappear, if the text is null
button.setVisible(text != null);
button.getElement().setId(UIComponentIdProvider.ROLLOUT_ACTION_ID + "." + cell.getColumnIndex());
button.setEnabled(buttonEnable);
}
代码示例来源:origin: eclipse/hawkbit
@Override
public void render(final RendererCellReference cell, final String text, final Button button) {
final boolean buttonEnable = isButtonEnable(cell.getElement().getClassName());
if (text != null) {
button.setHTML(text);
}
applystyles(button, buttonEnable);
// this is to allow the button to disappear, if the text is null
button.setVisible(text != null);
button.getElement().setId(UIComponentIdProvider.ROLLOUT_ACTION_ID + "." + cell.getColumnIndex());
button.setEnabled(buttonEnable);
}
内容来源于网络,如有侵权,请联系作者删除!