- To do:
1) Display PMethod in Prototype window
- In code responsible for displaying PMethod in the prototype window, set all the input fields as disabled always. [Done]
- Create a new static member of PStatementConst called void, which corresponds to a PStatementConst wrapped around a PVariant.Void. [Seems to be done somewhere when bunch of PMethodStatement's are created]
- Understand the PStatement life cycle:
1) A separate statement tree is associated with each event. JPnlScriplet.BindCodelet(.) is the way for the Scriplet to obtain the current PEvent's statement tree to render. PStatementList seems not able to attach children statements...
2) When a PStatementMethod is created, the parameters should be a bunch of PVariant.Void.
3) User inputs the data to the input fields.
4) When about to execute, obtain data from the input field via PStatement.FromString() method - Concerning the display:
1) PVariant is wrapped with PStatementConst.
2) Call the following recursive construct to show up GUI
for (IStatement s:m_statement.GetChildren) {
JPnlLine gui = s.GetGui(info);
Add Gui to self;
}
No comments:
Post a Comment