示例#1
0
 protected void loadChildren(ViewFactory f) {
   Element elem = getElement();
   if (elem.isLeaf()) {
     View v = new LabelView(elem);
     append(v);
   } else {
     super.loadChildren(f);
   }
 }
示例#2
0
 /**
  * Forward the DocumentEvent to the given child view. This is implemented to reparent the child
  * to the logical view (the children may have been parented by a row in the flow if they fit
  * without breaking) and then execute the superclass behavior.
  *
  * @param v the child view to forward the event to.
  * @param e the change information from the associated document
  * @param a the current allocation of the view
  * @param f the factory to use to rebuild if the view has children
  * @see #forwardUpdate
  * @since 1.3
  */
 protected void forwardUpdateToView(View v, DocumentEvent e, Shape a, ViewFactory f) {
   v.setParent(this);
   super.forwardUpdateToView(v, e, a, f);
 }