|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
Object
|
+--PBEUnit
|
+--PBEObject
pbe_error
init, display, clear, keep, revert
PBE:declareObject( "PBEObject", "globals"); PBE:declareAttribute( "PBEAttribute", "mainpage");This examples declares an instance of PBEObject called "global". This object is intended to keep global state of the application. Additionally an attribute called "mainpage" is declared for this object.This example can be found in the file "initdemo.pbt" of the "PBE Demo" module (approx. line 152).
| Field Summary | |
PBEAttribute[] |
attributes
|
protected boolean |
iClearInput
|
PBEMethod[] |
methods
|
varchar |
name
|
| Constructor Summary | |
PBEObject(varchar name)
|
|
| Method Summary | |
varchar |
attributeName(varchar tag_name)
|
void |
clear()
Activate the 'clear' method of the object. |
void |
clearInput()
Clear all input data for this object. |
void |
disable(varchar page)
Disable all PBE methods of the object. |
void |
disableAttributes(varchar page)
Disable all PBE attributes of the object. |
void |
display()
Activate the 'display' method of the object. |
void |
enable()
Enable all PBE methods of the object. |
void |
enableAttributes()
Enable all PBE attributes of the object. |
varchar |
getAttributeStatus()
|
varchar |
getAttributeStatus(varchar tag_name)
|
varchar |
getError()
|
varchar |
globalReference()
|
void |
hide(varchar page)
Hide all PBE attributes of the object. |
boolean |
init()
Activate the 'init' method of the object. |
void |
inputMethod(varchar tag_name)
|
void |
inputMethod(varchar tag_name,
generic value,
boolean is_first)
|
void |
inputValue(varchar tag_name,
generic value,
boolean is_first)
|
generic |
outputValue(varchar tag_name)
|
generic |
outputValue(varchar tag_name,
boolean is_edit)
|
generic |
outputValue(varchar tag_name,
boolean is_edit,
generic default_value)
|
boolean |
performActivation(varchar name)
|
void |
prepareAction(varchar when,
varchar what,
varchar action)
|
void |
redirect(varchar page)
Disable the display method. |
void |
setActive(PBEMethod method)
|
void |
setAttributeStatus(varchar tag_name,
varchar err)
|
void |
setError(generic status)
|
void |
show()
Show all PBE attributes of the object. |
| Methods inherited from class PBEUnit |
compileActions,
compileConditions,
prepareEvent |
| Field Detail |
public varchar name
public PBEAttribute[] attributes
public PBEMethod[] methods
protected boolean iClearInput
| Constructor Detail |
public PBEObject(varchar name)
name - the name used to access this object.| Method Detail |
public varchar globalReference()
public void prepareAction(varchar when,
varchar what,
varchar action)
public void redirect(varchar page)
public void enable()
public void disable(varchar page)
public void show()
public void hide(varchar page)
public void enableAttributes()
public void disableAttributes(varchar page)
public boolean init()
public void display()
public void clear()
public void setError(generic status)
public varchar getError()
public void setActive(PBEMethod method)
public boolean performActivation(varchar name)
public void clearInput()
public varchar attributeName(varchar tag_name)
public final generic outputValue(varchar tag_name)
public final generic outputValue(varchar tag_name,
boolean is_edit)
public generic outputValue(varchar tag_name,
boolean is_edit,
generic default_value)
public void inputValue(varchar tag_name,
generic value,
boolean is_first)
public final void inputMethod(varchar tag_name)
public void inputMethod(varchar tag_name,
generic value,
boolean is_first)
public varchar getAttributeStatus(varchar tag_name)
public void setAttributeStatus(varchar tag_name,
varchar err)
public varchar getAttributeStatus()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||