Пример #1
0
 /**
  * Constructor to form a binding between UI component and backend data bean.
  *
  * @param binder the associated Data Binder.
  * @param comp The concerned component
  * @param attr The component attribute
  * @param expr The bean expression.
  * @param loadWhenEvents The event set when to load data.
  * @param saveWhenEvents The event set when to save data.
  * @param access In the view of UI component: "load" load only, "both" load/save, "save" save only
  *     when doing data binding. null means using the default access natural of the component. e.g.
  *     Label.expr is "load", but Textbox.expr is "both".
  * @param converter The converter class used to convert classes between component attribute and
  *     the associated bean expression. null means using the default class conversion method.
  * @param args generic arguments
  * @param loadAfterEvents the event set when to load data after
  * @param saveAfterEvents the event set when to save data after
  * @since 3.6.1
  */
 /*package*/ Binding(
     DataBinder binder,
     Component comp,
     String attr,
     String expr,
     LinkedHashSet<String> loadWhenEvents,
     LinkedHashSet<String> saveWhenEvents,
     String access,
     String converter,
     Map<Object, Object> args,
     LinkedHashSet<String> loadAfterEvents,
     LinkedHashSet saveAfterEvents) {
   _binder = binder;
   _comp = comp;
   setAttr(attr);
   setExpression(expr);
   setLoadWhenEvents(loadWhenEvents);
   setLoadAfterEvents(loadAfterEvents);
   setSaveWhenEvents(saveWhenEvents);
   setSaveAfterEvents(saveAfterEvents);
   setAccess(access);
   setConverter(converter);
   setArgs(args);
 }