• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java El类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.extjs.gxt.ui.client.core.El的典型用法代码示例。如果您正苦于以下问题:Java El类的具体用法?Java El怎么用?Java El使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



El类属于com.extjs.gxt.ui.client.core包,在下文中一共展示了El类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: onRender

import com.extjs.gxt.ui.client.core.El; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
protected void onRender(Element target, int index) {

	final El wrap = new El(DOM.createDiv());
	wrap.addStyleName("x-form-field-wrap");
	wrap.addStyleName("x-form-file-wrap");

	setElement(wrap.dom, target, index);

	createFileInput();

	button = Forms.button(buttonCaption != null ? buttonCaption : "...");
	button.addStyleName("x-form-file-btn");
	button.setIcon(buttonIcon);
	button.render(wrap.dom);

	super.onRender(target, index);
	super.setReadOnly(true);
}
 
开发者ID:sigmah-dev,项目名称:sigmah,代码行数:23,代码来源:ButtonFileUploadField.java


示例2: doAutoHeight

import com.extjs.gxt.ui.client.core.El; //导入依赖的package包/类
/**
 * Computes and applies the grid height depending on the number of desired elements to display.
 */
private void doAutoHeight() {
	
	final El fileListElement = this.getView().getBody().firstChild();

	final int elementsHeight;
	if (visibleElementsCount <= 0 || fileListElement.firstChild() == null) {
		// Shows all elements.
		elementsHeight = fileListElement.getHeight();
	} else {
		// Shows only desired elements.
		elementsHeight = fileListElement.firstChild().getHeight()
					* (getStore().getCount() > visibleElementsCount ? visibleElementsCount : getStore().getCount());
	}

	this.setHeight((this.getView().getBody().isScrollableX() ? 20 : 0)
		+ this.getView().getHeader().getHeight()
		+ this.el().getFrameWidth("tb")
		+ elementsHeight);
}
 
开发者ID:sigmah-dev,项目名称:sigmah,代码行数:23,代码来源:FlexibleGrid.java


示例3: setIcon

import com.extjs.gxt.ui.client.core.El; //导入依赖的package包/类
public void setIcon(AbstractImagePrototype icon) {
    if (rendered) {
        El oldIcon = el().selectNode(style);
        if (oldIcon != null) {
            oldIcon.remove();
        }
        if (icon != null) {
            Element e = icon.createElement().cast();
            El.fly(e).addStyleName(style);
            el().insertChild(e, 0);
        }
    }
    this.icon = icon;
}
 
开发者ID:geoserver,项目名称:geofence,代码行数:15,代码来源:SearchFilterField.java


示例4: replaceIcon

import com.extjs.gxt.ui.client.core.El; //导入依赖的package包/类
/**
 * Replaces the button icon <b>but</b> does not save icon reference into parent {@code icon} attribute.
 * 
 * @param icon
 *          The button icon to display.
 */
private void replaceIcon(final AbstractImagePrototype icon) {

	if (rendered) {
		El oldIcon = buttonEl.selectNode("." + baseStyle + "-image");
		if (oldIcon != null) {
			oldIcon.remove();
			el().removeStyleName(baseStyle + "-text-icon", baseStyle + "-icon", baseStyle + "-noicon");
		}
		el()
			.addStyleName((icon != null ? (!Util.isEmptyString(html) ? " " + baseStyle + "-text-icon" : " " + baseStyle + "-icon") : " " + baseStyle + "-noicon"));
		Element e = null;

		if (icon != null) {
			e = (Element) icon.createElement().cast();

			Accessibility.setRole(e, "presentation");
			fly(e).addStyleName(baseStyle + "-image");

			buttonEl.insertFirst(e);
			El.fly(e).makePositionable(true);

		}
		autoWidth();
		alignIcon(e);
	}
}
 
开发者ID:sigmah-dev,项目名称:sigmah,代码行数:33,代码来源:Button.java


示例5: verifyLayout

import com.extjs.gxt.ui.client.core.El; //导入依赖的package包/类
/**
 * Sets the size of the row editor to EDITOR_HEIGHT.
 * Code from http://www.sencha.com/forum/showthread.php?130195-Using-RowEditor-resizing-edited-row-height-in-edit-mode
 */
@Override
protected void verifyLayout(boolean force) 
{
	// initialize can not be reached... but we use instead "btns !=null"
	if (btns != null && (isVisible() || force)) 
	{
		Element row = (Element) grid.getView().getRow(rowIndex);

		setSize(El.fly(row).getWidth(false), renderButtons ? EDITOR_HEIGHT : 0);

		syncSize();

		ColumnModel cm = grid.getColumnModel();
		for (int i = 0, len = cm.getColumnCount(); i < len; i++)
		{
			if (!cm.isHidden(i)) 
			{
				Field<?> f = (Field<?>) getItem(i);
				f.show();
				f.getElement().setAttribute("gxt-dindex", "" + cm.getDataIndex(i));
				MarginData md = (MarginData) ComponentHelper.getLayoutData(f);
				f.setWidth(cm.getColumnWidth(i) - md.getMargins().left - md.getMargins().right);
			} 
			else 
			{
				getItem(i).hide();
			}
		}
		layout(true);
		positionButtons();
	}
}
 
开发者ID:recon-null,项目名称:eve_finger,代码行数:37,代码来源:NoteRowEditor.java


示例6: onRender

import com.extjs.gxt.ui.client.core.El; //导入依赖的package包/类
@Override
protected void onRender(Element target, int index) {
  if (el() != null) {
    super.onRender(target, index);
    return;
  }
  input = new El(DOM.createInputText());
  input.disable();
  wrap = new El(DOM.createDiv());
  wrap.dom.setClassName("x-form-field-wrap");

  input.addStyleName(fieldStyle);

  trigger = new El(DOM.createImg());
  trigger.dom.setClassName("x-form-trigger " + triggerStyle);
  trigger.dom.setPropertyString("src", GXT.BLANK_IMAGE_URL);
  wrap.dom.appendChild(input.dom);
  wrap.dom.appendChild(trigger.dom);
  setElement(wrap.dom, target, index);

  if (isHideTrigger()) {
    trigger.setVisible(false);
  }

  super.onRender(target, index);

  triggerListener = new EventListener() {
    public void onBrowserEvent(Event event) {
      if (!disabled) {
        FieldEvent ce = new FieldEvent(AdaptableTriggerField.this);
        ce.event = event;
        ce.type = DOM.eventGetType(event);
        ce.stopEvent();
        onTriggerEvent(ce);
      }
    }
  };
  DOM.sinkEvents(wrap.dom, Event.FOCUSEVENTS);
  DOM.sinkEvents(trigger.dom, Event.ONCLICK | Event.MOUSEEVENTS);

  if (width == null) {
    setWidth(150);
  }
 
  focusPreview = new BaseEventPreview();

  new KeyNav<FieldEvent>(this) {
    public void onDown(FieldEvent fe) {
      AdaptableTriggerField.this.onDown(fe);
    }
  };

}
 
开发者ID:luox12,项目名称:onecmdb,代码行数:54,代码来源:AdaptableTriggerField.java


示例7: mask

import com.extjs.gxt.ui.client.core.El; //导入依赖的package包/类
/**
 * {@inheritDoc} 
 */
@Override
public El mask(String message, String messageStyleName) {
	return field.mask(message, messageStyleName);
}
 
开发者ID:sigmah-dev,项目名称:sigmah,代码行数:8,代码来源:HistoryWrapper.java


示例8: getFocusEl

import com.extjs.gxt.ui.client.core.El; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
protected El getFocusEl() {
	return el();
}
 
开发者ID:sigmah-dev,项目名称:sigmah,代码行数:8,代码来源:ButtonFileUploadField.java


示例9: getInputEl

import com.extjs.gxt.ui.client.core.El; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
protected El getInputEl() {
	return el();
}
 
开发者ID:sigmah-dev,项目名称:sigmah,代码行数:8,代码来源:ButtonFileUploadField.java


示例10: getStyleEl

import com.extjs.gxt.ui.client.core.El; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
protected El getStyleEl() {
	return el();
}
 
开发者ID:sigmah-dev,项目名称:sigmah,代码行数:8,代码来源:ButtonFileUploadField.java


示例11: IterableGroupPanel

import com.extjs.gxt.ui.client.core.El; //导入依赖的package包/类
public IterableGroupPanel(final DispatchAsync dispatch, final LayoutGroupDTO layoutGroup, FlexibleElementContainer container, final boolean canEdit, final EventBus eventBus) {
  super();

  this.dispatch = dispatch;
  this.container = container;
  this.layoutGroup = layoutGroup;
  this.canEdit = canEdit;

  if(canEdit) {
    addListener(Events.Render, new Listener<TabPanelEvent>() {

      @Override
      public void handleEvent(TabPanelEvent tpe) {

        El strip = el().childNode(0).childNode(0).childNode(0);
        int clearIdx = strip.getChildIndex(strip.lastChild().dom);
        final Button button = new Button("+");
        button.setEnabled(canEdit);
        button.setVisible(!Profiler.INSTANCE.isOfflineMode());
        button.render(strip.dom, clearIdx - 1);
        ComponentHelper.doAttach(button);
        button.addSelectionListener(new SelectionListener<ButtonEvent>() {
          @Override
          public void componentSelected(ButtonEvent ce) {
            addEmptyTab(layoutGroup.getIterationType());
          }
        });

eventBus.addHandler(OfflineEvent.getType(), new OfflineHandler() {

	@Override
	public void handleEvent(OfflineEvent event) {
		if (ApplicationState.OFFLINE == event.getState()) {
			button.setVisible(false);
		}
	}

});
    }

    });
  }
}
 
开发者ID:sigmah-dev,项目名称:sigmah,代码行数:44,代码来源:IterableGroupPanel.java



注:本文中的com.extjs.gxt.ui.client.core.El类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java UniqueIdGen类代码示例发布时间:2022-05-22
下一篇:
Java EditorTextFieldWithBrowseButton类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap