/** * Render the variable return array * * @return */ public StringBuilder renderVariables() { StringBuilder s = new StringBuilder(StaticStrings.STRING_SQUARE_BRACE_OPEN); getVariables().forEach(event -> s.append(StaticStrings.STRING_SINGLE_QUOTES) .append(event) .append(StaticStrings.STRING_SINGLE_QUOTES) .append(StaticStrings.STRING_COMMNA)); StringBuilder s2; if (s.indexOf(StaticStrings.STRING_COMMNA) > 0) { s2 = s.deleteCharAt(s.lastIndexOf(StaticStrings.STRING_COMMNA)); } else { s2 = s; } s2.append(StaticStrings.STRING_SQUARE_BRACE_CLOSED); s2.append(",'") .append(getID()) .append(StaticStrings.STRING_SINGLE_QUOTES); s2.append(",'") .append(getClassCanonicalName()) .append(StaticStrings.STRING_SINGLE_QUOTES); return s2; }
/** * Render the variable return array * * @return */ public StringBuilder renderVariables() { StringBuilder s = new StringBuilder(StaticStrings.STRING_SQUARE_BRACE_OPEN); getVariables().forEach(event -> s.append(StaticStrings.STRING_SINGLE_QUOTES) .append(event) .append(StaticStrings.STRING_SINGLE_QUOTES) .append(StaticStrings.STRING_COMMNA)); StringBuilder s2; if (s.indexOf(StaticStrings.STRING_COMMNA) > 0) { s2 = s.deleteCharAt(s.lastIndexOf(StaticStrings.STRING_COMMNA)); } else { s2 = s; } s2.append(StaticStrings.STRING_SQUARE_BRACE_CLOSED); s2.append(",'") .append(getID()) .append(StaticStrings.STRING_SINGLE_QUOTES); s2.append(",'") .append(getClassCanonicalName()) .append(StaticStrings.STRING_SINGLE_QUOTES); return s2; }
/** * Render the variable return array * * @return */ public StringBuilder renderVariables() { StringBuilder s = new StringBuilder(StaticStrings.STRING_SQUARE_BRACE_OPEN); getVariables().forEach(event -> s.append(StaticStrings.STRING_SINGLE_QUOTES) .append(event) .append(StaticStrings.STRING_SINGLE_QUOTES) .append(StaticStrings.STRING_COMMNA)); StringBuilder s2; if (s.indexOf(StaticStrings.STRING_COMMNA) > 0) { s2 = s.deleteCharAt(s.lastIndexOf(StaticStrings.STRING_COMMNA)); } else { s2 = s; } s2.append(StaticStrings.STRING_SQUARE_BRACE_CLOSED); s2.append(",'") .append(getID()) .append(StaticStrings.STRING_SINGLE_QUOTES); s2.append(",'") .append(getClassCanonicalName()) .append(StaticStrings.STRING_SINGLE_QUOTES); return s2; }
/** * Finds the event in all this components and child components * * @param eventId * * @return * * @see ComponentEventBase#findEvent(String) */ @Override public ComponentEventBase findEvent(@NotNull String eventId) { for (C child : getChildren()) { for (Object jScript : child.getEventsAll()) { if (((Event) jScript) .getID() .equals(eventId)) { return (ComponentEventBase) jScript; } } } return null; }
/** * Finds the event in all this components and child components * * @param eventId * * @return * * @see ComponentEventBase#findEvent(String) */ @Override public ComponentEventBase findEvent(@NotNull String eventId) { for (C child : getChildren()) { for (Object jScript : child.getEventsAll()) { if (((Event) jScript) .getID() .equals(eventId)) { return (ComponentEventBase) jScript; } } } return null; }
/** * Finds the event in all this components and child components * * @param eventId * * @return * * @see ComponentEventBase#findEvent(String) */ @Override public ComponentEventBase findEvent(@NotNull String eventId) { for (C child : getChildren()) { for (Object jScript : child.getEventsAll()) { if (((Event) jScript) .getID() .equals(eventId)) { return (ComponentEventBase) jScript; } } } return null; }
if (instance.getID() .equals(GuiceContext.getInstance(AjaxCall.class) .getEventId()))
if (instance.getID() .equals(GuiceContext.getInstance(AjaxCall.class) .getEventId()))
if (instance.getID() .equals(GuiceContext.getInstance(AjaxCall.class) .getEventId()))