private void unsubscribeQueue(String quename, String quescope, EventListener<Event> listener) { EventQueue<Event> que = EventQueues.lookup(quename, quescope, false); if (que != null) { que.unsubscribe(listener); } }
/** * Force focus to the password text box. */ public void onBlur$txtPassword() { Events.postEvent(Events.ON_FOCUS, this, null); }
public void service(AuRequest request, boolean everError) { Events.postEvent(StubEvent.getStubEvent(request)); }
/** 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)); } }
/** @deprecated As of release 5.0.4, replaced with {@link #getInputEvent(AuRequest, Object)}. */ public static final InputEvent getInputEvent(AuRequest request) { return getInputEvent(request, null); }
private boolean isSubscribed(String quename, String quescope, EventListener<Event> listener) { EventQueue<Event> que = EventQueues.lookup(quename, quescope, false); return que == null ? false : que.isSubscribed(listener); }
/** Returns the desktop-level event queue with the specified name in the current * desktop, or if no such event queue, create one. * It is a shortcut of <code>lookup(name, DESKTOP, true)</code>. */ public static <T extends Event> EventQueue<T> lookup(String name) { return lookup(name, DESKTOP, true); }
/** * Utility to check if the current orientation is portrait on tablet/mobile device. * @see #isPortrait() * @since 6.5.0 */ public boolean isVertical() { return isPortrait(); }
/** * Utility to check if the current orientation is landscape on tablet/mobile device. * @see #isLandscape() * @since 6.5.0 */ public boolean isHorizontal() { return isLandscape(); }
/** Removes the event queue. * It is the same as <code>remove(name, DESKTOP)</code>. * @param name the queue name. * @return true if it is removed successfully */ public static boolean remove(String name) { return remove(name, DESKTOP); }
/** * Triggers document view mode. */ public void onClick$btnView() { Events.postEvent("onViewOpen", root, true); }
/** Tests if the specified event queue has been created. */ public static boolean exists(String name, String scope) { return lookup(name, scope, false) != null; }
/** * 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); }
/** Tests if the specified event queue has been created * in the current desktop. * It is a shortcut of <code>exists(name, DESKTOP)</code> */ public static boolean exists(String name) { return lookup(name, false) != null; }
/** Returns the desktop-level event queue with the specified name in the current * desktop. * It is a shortcut of <code>lookup(name, DESKTOP, autoCreate)</code>. */ public static <T extends Event> EventQueue<T> lookup(String name, boolean autoCreate) { return lookup(name, DESKTOP, autoCreate); }