Class PBETextContainer

Object
  |
  +--PBEUnit
        |
        +--PBEObject
              |
              +--PBEContainer
                    |
                    +--PBETextContainer

public class PBETextContainer
extends PBEContainer


Description:
PBETextContainer provides functionality to access tab delimited text files in PrimeBase Enterprise Objects applications.

The text files must be tab delimited and must have the name of the fields in the first line.

If the first line includes the types of the columns in the form "[name] [type]", for example "ID INTEGER", then the text fields need not be otherwise declared.


PBE Attributes/Fields:

file


PBE Methods:

init


Fields inherited from class PBEContainer
iCurrentGroup, iFirstGroup, iLastGroup, iPages, iSelected, iSelection
 
Fields inherited from class PBEObject
attributes, iClearInput, methods, name
 
Constructor Summary
PBETextContainer(varchar name)
           
PBETextContainer(varchar name, varchar file)
          Initialize the text container with the name of a tab delimited text file.
 
Method Summary
 void addField(varchar name)
           
 void closeFile()
           
 void finalize()
           
 varchar getDataLine()
           
 varchar getFile()
           
 varchar getItem()
           
 varchar getTitleLine()
           
 PBETextValue getValue()
           
 varchar loadFile()
           
 varchar openFile()
           
 boolean performActivation(varchar name)
           
 boolean readNextLine()
           
 void readTitleLine()
           
 varchar saveFile()
           
 void setDataLine()
           
 void setFile(varchar file)
           
 boolean skipTitleLine()
           
 
Methods inherited from class PBEContainer
addGroup, currentColor, currentColor, currentRowStatus, currentRowValid, deleteRow, enterGroup, enterPage, exitGroup, exitPage, firstRow, getCurrentRow, getCurrentRowValue, getCurrentValue, getInvalidValue, getRowCount, getSelectedRow, getSelection, getValidRow, insertRow, lastRow, nextCurrentRow, nextCurrentRow, nextRow, outputValue, previousRow, setCurrentRow, setCurrentRowValue, setCurrentValue, setSelectedRow, setSelection, sum, updateRow
 
Methods inherited from class PBEObject
attributeName, clear, clearInput, disable, disableAttributes, display, enable, enableAttributes, getAttributeStatus, getAttributeStatus, getError, globalReference, hide, init, inputMethod, inputMethod, inputValue, outputValue, outputValue, prepareAction, redirect, setActive, setAttributeStatus, setError, show
 
Methods inherited from class PBEUnit
compileActions, compileConditions, prepareEvent
 

Constructor Detail

PBETextContainer

public PBETextContainer(varchar name)
Parameters:
name - the name used to access this object.

PBETextContainer

public PBETextContainer(varchar name,
                        varchar file)
Initialize the text container with the name of a tab delimited text file.

Parameters:
name - the name used to access this object.
file - name of a tab delimited file.
Method Detail

finalize

public void finalize()
Overrides:
finalize in class Object

performActivation

public boolean performActivation(varchar name)
Overrides:
performActivation in class PBEObject

addField

public void addField(varchar name)

readTitleLine

public void readTitleLine()

setFile

public void setFile(varchar file)

getFile

public varchar getFile()

openFile

public varchar openFile()

closeFile

public void closeFile()

getItem

public varchar getItem()

skipTitleLine

public boolean skipTitleLine()

getValue

public PBETextValue getValue()

readNextLine

public boolean readNextLine()

setDataLine

public void setDataLine()

loadFile

public varchar loadFile()

getTitleLine

public varchar getTitleLine()

getDataLine

public varchar getDataLine()

saveFile

public varchar saveFile()