本文整理了Java中org.zkoss.zk.ui.Desktop.getComponentByUuid()
方法的一些代码示例,展示了Desktop.getComponentByUuid()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Desktop.getComponentByUuid()
方法的具体详情如下:
包路径:org.zkoss.zk.ui.Desktop
类名称:Desktop
方法名:getComponentByUuid
[英]Returns the component of the specified UUID ( Component#getUuid).
[中]返回指定UUID的组件(组件#getUuid)。
代码示例来源:origin: org.zkoss.zk/zul
/** Converts an AU request to a size event.
* @since 5.0.0
*/
@SuppressWarnings("unchecked")
public static final ColSizeEvent getColSizeEvent(AuRequest request) {
final Map<String, Object> data = request.getData();
final List<String> wdlist = (List<String>) data.get("widths");
return wdlist == null
? new ColSizeEvent(request.getCommand(), request.getComponent(), AuRequests.getInt(data, "index", 0),
request.getDesktop().getComponentByUuid((String) data.get("column")),
(String) data.get("width"), AuRequests.parseKeys(data))
: new ColSizeEvent(request.getCommand(), request.getComponent(), //since 5.0.6, to support fix width of multiple columns
AuRequests.getInt(data, "index", 0),
request.getDesktop().getComponentByUuid((String) data.get("column")),
wdlist.toArray(new String[wdlist.size()]), AuRequests.parseKeys(data));
}
代码示例来源:origin: org.zkoss.zk/zk
Integer compMaxsz = (Integer) desktop.getComponentByUuid(request.getParameter("uuid"))
.getAttribute(Attributes.UPLOAD_MAX_SIZE);
maxsz = compMaxsz != null ? compMaxsz : conf.getMaxUploadSize();
代码示例来源:origin: org.zkoss.zk/zk
Integer compMaxsz = (Integer) desktop.getComponentByUuid(request.getParameter("uuid"))
.getAttribute(Attributes.UPLOAD_MAX_SIZE);
maxsz = compMaxsz != null ? compMaxsz : conf.getMaxUploadSize();
代码示例来源:origin: org.zkoss.zk/zk
public void sessionDidActivate(Desktop desktop) {
_desktop = desktop;
if (_ownerUuid != null) {
setOwner(_desktop.getComponentByUuid(_ownerUuid));
_ownerUuid = null;
}
for (Component root = getFirstRoot(); root != null; root = root.getNextSibling())
((ComponentCtrl) root).sessionDidActivate(this);
didActivate(_attrs.getAttributes().values());
didActivate(_attrs.getListeners());
if (_listeners != null)
for (Iterator<List<EventListener<? extends Event>>> it = CollectionsX
.comodifiableIterator(_listeners.values()); it.hasNext();)
didActivate(it.next());
didActivate(_resolvers);
didActivate(_mappers);
}
代码示例来源:origin: org.zkoss.zk/zk
/** Converts an AU request to a drop event.
* @since 5.0.0
*/
public static DropEvent getDropEvent(AuRequest request) {
final Map<String, Object> data = request.getData();
final int keys = AuRequests.parseKeys(data);
return new DropEvent(request.getCommand(), request.getComponent(),
request.getDesktop().getComponentByUuid((String) data.get("dragged")), AuRequests.getInt(data, "x", 0),
AuRequests.getInt(data, "y", 0), AuRequests.getInt(data, "pageX", 0),
AuRequests.getInt(data, "pageY", 0), keys);
}
代码示例来源:origin: org.zkoss.zk/zk
/**
* Creates an instance of {@link UploadEvent} based on the event name and component,
* the {@link UploadEvent} contains the latest upload media from user.
* Internal Use Only.
*
* @param name event name
* @param component component that triggers the upload event
* @return upload event
* @since 8.6.0
*/
public static UploadEvent getLatestUploadEvent(String name, Component component) {
Desktop desktop = component.getDesktop();
String uuid = component.getUuid();
final List<Media> result = cast((List) desktop.getAttribute(uuid));
desktop.removeAttribute(uuid);
return new UploadEvent(name, desktop.getComponentByUuid(uuid), UploadUtils.parseResult(result));
}
}
代码示例来源:origin: org.zkoss.zk/zkmax
Objects.toString(data), this });
final Desktop desktop = request.getDesktop();
final Portalchildren from = (Portalchildren) desktop.getComponentByUuid(data[0]);
final Portalchildren to = (Portalchildren) desktop.getComponentByUuid(data[1]);
final Panel dragged = (Panel) desktop.getComponentByUuid(data[2]);
final int newIndex = Integer.parseInt(data[3]);
try {
内容来源于网络,如有侵权,请联系作者删除!