Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions

:
#)McoBatchDistScreen. Copyright © 2012 tourapp.com. All rights reserved. GPL3 Open Source Software License.
  
  package com.tourapp.tour.acctrec.screen.mco;
  
  import java.util.*;
  
McoBatchDistScreen - MCOs.
 
 public class McoBatchDistScreen extends Screen
 {
    
Default constructor.
 
     public McoBatchDistScreen()
     {
         super();
     }
    
Constructor.

Parameters:
record The main record for this screen.
itsLocation The location of this component within the parent.
parentScreen The parent screen.
fieldConverter The field this screen field is linked to.
iDisplayFieldDesc Do I display the field desc?
properties Addition properties to pass to the screen.
 
     public McoBatchDistScreen(Record recordScreenLocation itsLocationBasePanel parentScreenConverter fieldConverterint iDisplayFieldDescMap<String,Objectproperties)
     {
         this();
         this.init(recorditsLocationparentScreenfieldConverteriDisplayFieldDescproperties);
     }
    
Initialize class fields.
 
     public void init(Record recordScreenLocation itsLocationBasePanel parentScreenConverter fieldConverterint iDisplayFieldDescMap<String,Objectproperties)
     {
         super.init(recorditsLocationparentScreenfieldConverteriDisplayFieldDescproperties);
     }
    
Get the screen display title.
 
     public String getTitle()
     {
         return "MCOs";
     }
    
Override this to open the main file.

You should pass this record owner to the new main file (ie., new MyNewTable(thisRecordOwner)).

Returns:
The new record.
 
     public Record openMainRecord()
     {
         return new McoBatchDist(this);
     }
    
Override this to open the other files in the query.
 
     public void openOtherRecords()
     {
         super.openOtherRecords();
         new Mco(this);
     }
    
Add the screen fields. Override this to create (and return) the screen record for this recordowner.

Returns:
The screen record.
 
     public Record addScreenRecord()
     {
         return new CashBatchScreenRecord(this);
     }
    
Add all the screen listeners.
 
     public void addListeners()
     {
         super.addListeners();
        
        this.getMainRecord().addListener(new SubFileFilter(this.getHeaderRecord()));
        
    }
    
If there is a header record, return it, otherwise, return the main record. The header record is the (optional) main record on gridscreens and is sometimes used to enter data in a sub-record when a header is required.

Returns:
The header record.
    public Record getHeaderRecord()
    {
        return this.getRecord(.);
    }
    
Make a sub-screen.

Returns:
the new sub-screen.
    public BasePanel makeSubScreen()
    {
        return new BaseArPayDistHeaderScreen(nullthisnull.null);
    }
    
Set up all the screen fields.
    public void setupSFields()
    {
    }
New to GrepCode? Check out our FAQ X