Ejemplo n.º 1
0
 public boolean execCheckFields() {
   MethodInvocation<Boolean> methodInvocation =
       new MethodInvocation<Boolean>() {
         @Override
         protected void callMethod(IFormExtension<? extends AbstractForm> next) {
           setReturnValue(next.execCheckFields(FormCheckFieldsChain.this));
         }
       };
   callChain(methodInvocation);
   return methodInvocation.getReturnValue();
 }
Ejemplo n.º 2
0
 public AbstractFormData execCreateFormData() {
   MethodInvocation<AbstractFormData> methodInvocation =
       new MethodInvocation<AbstractFormData>() {
         @Override
         protected void callMethod(IFormExtension<? extends AbstractForm> next) {
           setReturnValue(next.execCreateFormData(FormCreateFormDataChain.this));
         }
       };
   callChain(methodInvocation);
   return methodInvocation.getReturnValue();
 }
 public IPage<?> execCreateChildPage(final ITableRow row) {
   MethodInvocation<IPage> methodInvocation =
       new MethodInvocation<IPage>() {
         @Override
         protected void callMethod(
             IPageWithTableExtension<
                     ? extends ITable, ? extends AbstractPageWithTable<? extends ITable>>
                 next) {
           setReturnValue(next.execCreateChildPage(PageWithTableCreateChildPageChain.this, row));
         }
       };
   callChain(methodInvocation, row);
   return methodInvocation.getReturnValue();
 }
Ejemplo n.º 4
0
 public ITreeNode execResolveVirtualChildNode(final IVirtualTreeNode node)
     throws ProcessingException {
   MethodInvocation<ITreeNode> methodInvocation =
       new MethodInvocation<ITreeNode>() {
         @Override
         protected void callMethod(ITreeNodeExtension<? extends AbstractTreeNode> next)
             throws ProcessingException {
           setReturnValue(
               next.execResolveVirtualChildNode(
                   TreeNodeResolveVirtualChildNodeChain.this, node));
         }
       };
   callChain(methodInvocation, node);
   if (methodInvocation.getException() instanceof ProcessingException) {
     throw (ProcessingException) methodInvocation.getException();
   }
   return methodInvocation.getReturnValue();
 }