Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions

:
#)CrDrScreen. Copyright © 2012 tourapp.com. All rights reserved. GPL3 Open Source Software License.
  
  package com.tourapp.tour.acctrec.screen.misc;
  
  import java.util.*;
  
CrDrScreen - Debit/Credit entry.
 
 public class CrDrScreen extends BookingArTrxScreen
 {
    
Default constructor.
 
     public CrDrScreen()
     {
         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 CrDrScreen(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 "Debit/Credit entry";
     }
    
Override this to open the other files in the query.
 
     public void openOtherRecords()
     {
         super.openOtherRecords();
         new TrxStatus(this);
         new ArControl(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 CrDrScreenRecord(this);
     }
    
Add all the screen listeners.
 
     public void addListeners()
     {
         super.addListeners();
         
         this.getMainRecord().getListener(UpdateArTrxAcctDetailHandler.classtrue).setEnabledListener(false);    // Since I will be doing the updating
         
        try {
            this.getMainRecord().addNew();
        } catch (DBException e) {
        }
        this.setEnabled(true);
        this.getMainRecord().getField(.).setEnabled(false);
    }
    
Set up all the screen fields.
    public void setupSFields()
    {
        super.setupSFields();
    }
New to GrepCode? Check out our FAQ X