/** * mark a draw flag to inform that this Chart needs update. */ protected void smartDrawChart() { if (_smartDrawChart) { //already mark smart draw return; } _smartDrawChart = true; Events.postEvent("onSmartDrawChart", this, null); }
/** * Triggers document view mode. */ public void onClick$btnView() { Events.postEvent("onViewOpen", root, true); }
public void onPageAttached(Page newpage, Page oldpage) { if (newpage != null) Events.postEvent("onAfterCompose", this, null); super.onPageAttached(newpage, oldpage); }
private void postOnInitRender(String idx) { //20080724, Henri Chen: optimize to avoid postOnInitRender twice if (getAttribute(ZUL_RADIOGROUP_ON_INITRENDER) == null) { //Bug #2010389 setAttribute(ZUL_RADIOGROUP_ON_INITRENDER, Boolean.TRUE); //flag syncModel Events.postEvent("onInitRender", this, idx); } }
private void postOnInitRender() { //20080724, Henri Chen: optimize to avoid postOnInitRender twice if (getAttribute(ATTR_ON_INIT_RENDER_POSTED) == null) { setAttribute(ATTR_ON_INIT_RENDER_POSTED, Boolean.TRUE); Events.postEvent("onInitRender", this, null); } }
public void postCommand(String command, Map<String, Object> args) { checkInit(); final Event evt = new Event(ON_POST_COMMAND, _dummyTarget, new Object[] { command, args }); Events.postEvent(evt); }
private void postOnInitRender() { //20080724, Henri Chen: optimize to avoid postOnInitRender twice if (getAttribute(ATTR_ON_INIT_RENDER_POSTED) == null) { setAttribute(ATTR_ON_INIT_RENDER_POSTED, Boolean.TRUE); Events.postEvent("onInitRender", this, null); } }
/** * Component internal use only. * @since 7.0.0 */ public void postOnInitRender() { if (getAttribute(TabboxEngine.ATTR_ON_INIT_RENDER_POSTED) == null) { setAttribute(TabboxEngine.ATTR_ON_INIT_RENDER_POSTED, Boolean.TRUE); Events.postEvent("onInitRender", this, null); } }
private void postOnInitRender() { // 20080724, Henri Chen: optimize to avoid postOnInitRender twice if (getAttribute(ATTR_ON_INIT_RENDER_POSTED) == null) { setAttribute(ATTR_ON_INIT_RENDER_POSTED, Boolean.TRUE); // Bug ZL-1696: manipulate list from api might happen before list // render, use sendEvent instead of postEvent to render list first Events.postEvent("onInitRender", this, null); } }
private void postOnInitRender() { if (getAttribute(ATTR_ON_INIT_RENDER_POSTED) == null) { setAttribute(ATTR_ON_INIT_RENDER_POSTED, Boolean.TRUE); Events.postEvent("onInitRender", this, null); } }
/*package*/ static void postOnCreateEvents(Component item) { for (final Iterator it = item.getChildren().iterator(); it.hasNext();) { final Component child = (Component) it.next(); postOnCreateEvents(child); //recursive } if (Events.isListened(item, Events.ON_CREATE, false)) { Events.postEvent(new CreateEvent(Events.ON_CREATE, item, null)); } } }
@Override public void service(AuRequest request, boolean everError) { String cmd = request.getCommand(); if (Events.ON_UPLOAD.equals(cmd)) { Events.postEvent(UploadEvent.getLatestUploadEvent(cmd, this)); } else super.service(request, everError); }
private void doInitRenderer() { if (disableFeature()) throw new IllegalAccessError("ZK EE version only!"); getEngine().doInitRenderer(this); Events.postEvent(ZulEvents.ON_AFTER_RENDER, this, null); // notify the tabbox when items have been rendered. }
/** Post event to the non-stub ancestor. */ /*package*/ void postToNonStubAncestor(StubEvent event) { Component target = event.getTarget(); for (; target != null && (target instanceof Native || target instanceof StubComponent); target = target.getParent()) ; if (target != null) Events.postEvent(new StubEvent(event, target)); } }
public void service(AuRequest request, boolean everError) { final String cmd = request.getCommand(); if (cmd.equals(Events.ON_CHECK)) { CheckEvent evt = CheckEvent.getCheckEvent(request); _checked = evt.isChecked(); Events.postEvent(evt); } else super.service(request, everError); }
private void postOnPagingInitRender() { if (getAttribute(ATTR_ON_PAGING_INIT_RENDERER_POSTED) == null && getAttribute(ATTR_ON_INIT_RENDER_POSTED) == null) { // B50-ZK-345 setAttribute(ATTR_ON_PAGING_INIT_RENDERER_POSTED, Boolean.TRUE); Events.postEvent("onPagingInitRender", this, null); } }
private void postOnPagingInitRender() { if (getAttribute(ATTR_ON_PAGING_INIT_RENDERER_POSTED) == null && getAttribute(ATTR_ON_INIT_RENDER_POSTED) == null) { // B50-ZK-345 setAttribute(ATTR_ON_PAGING_INIT_RENDERER_POSTED, Boolean.TRUE); Events.postEvent("onPagingInitRender", this, null); } }
@Override public void doAfterCompose(Component comp) throws Exception { super.doAfterCompose(comp); record = (AntiCoagRecord) arg.get("record"); inputs = new Component[] { rgIndicated, cboGoal, cboMin, cboMax, cboDuration, datStart, wbProvider, txtComment }; loadComboValues(); Window win = (Window) root; win.setTitle(StrUtil.formatMessage(win.getTitle(), record == null ? "Add" : "Edit")); Events.postEvent("onInitDialog", comp, null); }
public void onEvent(Event event) { if (event instanceof AfterEvent) { handleEvent((Event) event.getData()); } else { //post AfterEvent to make sure it is called after //enforce the event is the last processed Events.postEvent(-10100, new AfterEvent(event.getName() + "SaveAfter", event)); } } }
public void onEvent(Event event) { if (event instanceof AfterEvent) { handleEvent((Event) event.getData()); } else { //post AfterEvent to make sure it is called after //enforce the event is the last processed Events.postEvent(-10100, new AfterEvent(event.getName() + "LoadAfter", event)); } } }