/**
* Subscribes given component to given identifier. If there are no subscriptions
* yet for this identifier, an entry in the subscriptions map is created.
*
* @param formComponent the component to subscribe.
* @param identifier the identifier the given component should be
* subscribed to.
*/
private void subscribeComponentToIdentifier(AbstractFormComponent formComponent,
String identifier) {
if (hasSubscriptionsForIdentifier(identifier)) {
subscriptions.get(identifier).add(formComponent);
} else {
HashSet<AbstractFormComponent> subscribedComponents =
new OrderedHashSet<AbstractFormComponent>();
subscribedComponents.add(formComponent);
subscriptions.put(identifier, subscribedComponents);
}
}
FormEventManager.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:poly-ql
作者:
评论列表
文章目录