Class PBEContainer

Object
  |
  +--PBEUnit
        |
        +--PBEObject
              |
              +--PBEContainer
Direct Known Subclasses:
PBEDirectoryContainer, PBETable, PBETextContainer

public class PBEContainer
extends PBEObject


Description:
PBEContainer provides functionality to access a cursor in PrimeBase Enterprise Objects applications.


PBE Attributes/Fields:

pbe_current_row

pbe_row_count

pbe_selected_row


PBE Methods:

clear, delete, enter, first, init, last, new, next, previous, save


Examples:
 PBE:declareObject(
   "PBEContainer",
   "sales");
 PBE:declareMethod(
   "ReportSalesMethod",
   "report");
 
In this example a PBEContainer called "sales" as well as a method called "report" of the application specific type "ReportSalesMethod" (declaration approx. line 49 and following) are being declared.

This example can be found in the file "initdemo.pbt" of the "PBE Demo" module (approx. line 184).


Field Summary
protected  PBEGroupField iCurrentGroup
           
protected  PBEGroupField iFirstGroup
           
protected  PBEGroupField iLastGroup
           
protected  PBEPage iPages
           
protected  integer iSelected
           
protected  Cursor iSelection
           
 
Fields inherited from class PBEObject
attributes, iClearInput, methods, name
 
Constructor Summary
PBEContainer(varchar name)
           
 
Method Summary
 void addGroup(PBEGroupField new_group)
           
 varchar currentColor(varchar normal, varchar selected)
           
 varchar currentColor(varchar normal, varchar selected, integer range)
           
 varchar currentRowStatus()
           
 boolean currentRowValid()
           
 void deleteRow()
           
 void enterGroup()
           
 void enterPage(integer limit)
           
 void exitGroup()
           
 void exitPage()
           
 boolean firstRow()
           
 integer getCurrentRow()
           
protected  generic getCurrentRowValue(objname col, boolean is_edit, generic default_value)
           
 generic getCurrentValue(objname col, boolean is_edit, generic default_value)
           
 generic getInvalidValue(objname col, boolean is_edit, generic default_value)
           
 integer getRowCount()
           
 integer getSelectedRow()
           
 Cursor getSelection()
           
 integer getValidRow(integer row)
           
 void insertRow()
           
 boolean lastRow()
           
 void nextCurrentRow()
           
 void nextCurrentRow(integer inc)
           
 boolean nextRow()
           
 generic outputValue(varchar tag_name, boolean is_edit, generic default_value)
           
 boolean previousRow()
           
 integer setCurrentRow(integer i)
           
 void setCurrentRowValue(objname col, generic value)
           
 void setCurrentValue(objname col, generic v, boolean is_first)
           
 boolean setSelectedRow(integer i)
           
 void setSelection(Cursor s)
           
 generic sum(varchar col)
           
 void 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, performActivation, prepareAction, redirect, setActive, setAttributeStatus, setError, show
 
Methods inherited from class PBEUnit
compileActions, compileConditions, prepareEvent
 

Field Detail

iSelection

protected Cursor iSelection

iSelected

protected integer iSelected

iPages

protected PBEPage iPages

iFirstGroup

protected PBEGroupField iFirstGroup

iLastGroup

protected PBEGroupField iLastGroup

iCurrentGroup

protected PBEGroupField iCurrentGroup
Constructor Detail

PBEContainer

public PBEContainer(varchar name)
Parameters:
name - the name used to access this object.
Method Detail

outputValue

public generic outputValue(varchar tag_name,
                           boolean is_edit,
                           generic default_value)
Overrides:
outputValue in class PBEObject

setSelection

public void setSelection(Cursor s)

getSelection

public Cursor getSelection()

getCurrentRowValue

protected generic getCurrentRowValue(objname col,
                                     boolean is_edit,
                                     generic default_value)

setCurrentRowValue

public void setCurrentRowValue(objname col,
                               generic value)

currentRowStatus

public varchar currentRowStatus()

currentRowValid

public boolean currentRowValid()

getCurrentRow

public integer getCurrentRow()

setCurrentRow

public integer setCurrentRow(integer i)

nextCurrentRow

public void nextCurrentRow()

nextCurrentRow

public void nextCurrentRow(integer inc)

getValidRow

public integer getValidRow(integer row)

getSelectedRow

public integer getSelectedRow()

setSelectedRow

public boolean setSelectedRow(integer i)

getInvalidValue

public generic getInvalidValue(objname col,
                               boolean is_edit,
                               generic default_value)

getCurrentValue

public generic getCurrentValue(objname col,
                               boolean is_edit,
                               generic default_value)

setCurrentValue

public void setCurrentValue(objname col,
                            generic v,
                            boolean is_first)

getRowCount

public integer getRowCount()

insertRow

public void insertRow()

updateRow

public void updateRow()

deleteRow

public void deleteRow()

nextRow

public boolean nextRow()

previousRow

public boolean previousRow()

firstRow

public boolean firstRow()

lastRow

public boolean lastRow()

currentColor

public varchar currentColor(varchar normal,
                            varchar selected)

currentColor

public varchar currentColor(varchar normal,
                            varchar selected,
                            integer range)

sum

public generic sum(varchar col)

enterPage

public void enterPage(integer limit)

exitPage

public void exitPage()

enterGroup

public void enterGroup()

exitGroup

public void exitGroup()

addGroup

public void addGroup(PBEGroupField new_group)