com.extjs.gxt.ui.client.widget.button.Button.addStyleName()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(2.7k)|赞(0)|评价(0)|浏览(177)

本文整理了Java中com.extjs.gxt.ui.client.widget.button.Button.addStyleName()方法的一些代码示例,展示了Button.addStyleName()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.addStyleName()方法的具体详情如下:
包路径:com.extjs.gxt.ui.client.widget.button.Button
类名称:Button
方法名:addStyleName

Button.addStyleName介绍

暂无

代码示例

代码示例来源:origin: com.extjs/gxt

protected void onMouseDown(ComponentEvent ce) {
 if (handleMouseEvents) {
  addStyleName(baseStyle + "-click");
 }
}

代码示例来源:origin: com.extjs/gxt

protected void onMouseOver(ComponentEvent ce) {
 if (handleMouseEvents) {
  addStyleName(baseStyle + "-over");
  preview.add();
 }
}

代码示例来源:origin: com.extjs/gxt

protected void onFocus(ComponentEvent ce) {
 if (!disabled) {
  addStyleName(baseStyle + "-focus");
  if (GXT.isFocusManagerEnabled() && !GXT.isIE) {
   FocusFrame.get().frame(this);
  }
 }
}

代码示例来源:origin: com.extjs/gxt

@Override
protected void onDisable() {
 if (!GXT.isIE6 || html == null) {
  addStyleName(disabledStyle);
 }
 removeStyleName(baseStyle + "-over");
 removeStyleName(baseStyle + "-focus");
 el().disable();
 buttonEl.dom.setAttribute("aria-disabled", "true");
}

代码示例来源:origin: com.extjs/gxt

protected void onMenuShow(ComponentEvent ce) {
 addStyleName(baseStyle + "-menu-active");
 ButtonEvent be = new ButtonEvent(this);
 be.setMenu(menu);
 fireEvent(Events.MenuShow, be);
 if (GXT.isFocusManagerEnabled()) {
  if (menu.getItemCount() > 0) {
   menu.setActiveItem(menu.getItem(0), false);
  }
 }
}

代码示例来源:origin: com.extjs/gxt

if (menu != null) {
 Accessibility.setState(buttonEl.dom, "aria-haspopup", "true");
 addStyleName(baseStyle + "-menu");

代码示例来源:origin: com.extjs/gxt

@Override
protected void onRender(Element target, int index) {
 El wrap = new El(DOM.createDiv());
 wrap.addStyleName("x-form-field-wrap");
 wrap.addStyleName("x-form-file-wrap");
 input = new El(DOM.createInputText());
 input.addStyleName(fieldStyle);
 input.addStyleName("x-form-file-text");
 input.setId(XDOM.getUniqueId());
 if (GXT.isAriaEnabled()) {
  input.setTitle("File upload field");
 }
 if (GXT.isIE && target.getTagName().equals("TD")) {
  input.setStyleAttribute("position", "static");
 }
 wrap.appendChild(input.dom);
 setElement(wrap.dom, target, index);
 button = new Button(getMessages().getBrowseText());
 button.getFocusSupport().setIgnore(true);
 button.addStyleName("x-form-file-btn");
 button.setIcon(buttonIcon);
 button.render(wrap.dom);
 createFileInput();
 super.onRender(target, index);
 super.setReadOnly(true);
}

代码示例来源:origin: com.extjs/gxt

more.addStyleName("x-toolbar-more");
more.setIcon(GXT.IMAGES.toolbar_more());
more.setMenu(moreMenu);

代码示例来源:origin: bedatadriven/activityinfo

addLocationButton.addStyleName(SiteFormResources.INSTANCE.style().addLocationButton());

相关文章