/**
* display<p>
* <p>
*/
public void display() {
DisplayNode b = new DisplayNode();
b.setDVSmallIcon(ImageValue.get(this.getqq_blue()));
b.setDVLargeIcon(ImageValue.get(this.getqq_blue()));
b.setDVNodeText(new TextData("Blue"));
DisplayNode r = new DisplayNode();
r.setDVSmallIcon(ImageValue.get(this.getqq_red()));
r.setDVLargeIcon(ImageValue.get(this.getqq_red()));
r.setDVNodeText(new TextData("Red"));
Array_Of_DisplayNode<DisplayNode> a = new Array_Of_DisplayNode<DisplayNode>();
a.add(b);
a.add(r);
this.getqq_list().setViewNodes(a);
UserWindow.open(this);
// ----------
// Event Loop
// ----------
EventManager.startEventLoop();
try {
EventRegistration TaskHandle_Shutdown_langThreadcurrentThread = ClientEventManager.register( Thread.currentThread(), "Shutdown" );
EventRegistration ListView_AfterCurrentNodeChange_getqq_list = ClientEventManager.register( this.getqq_list(), "AfterCurrentNodeChange" );
EventRegistration MenuList_AfterValueChange_getqq_Image = ClientEventManager.register( this.getqq_Image(), "AfterValueChange" );
EventRegistration ListView_DoubleClick_getqq_list = ClientEventManager.register( this.getqq_list(), "DoubleClick" );
while (true) {
UIutils.processGUIActions();
EventHandle qq_currentEvent = EventManager.waitForEvent();
if (qq_currentEvent == null)
break;
// -------------
// task.Shutdown
// -------------
if (qq_currentEvent.isEvent(TaskHandle_Shutdown_langThreadcurrentThread)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
break;
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// -----------------------------
// <list>.aftercurrentNodeChange
// -----------------------------
else if (qq_currentEvent.isEvent(ListView_AfterCurrentNodeChange_getqq_list)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
Logger.getLogger("task.part.logmgr").info(TreeFieldCurrentNode.get(this.getqq_list()).getDVNodeText());
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// ------------------------
// <Image>.AfterValueChange
// ------------------------
else if (qq_currentEvent.isEvent(MenuList_AfterValueChange_getqq_Image)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
this.getqq_list().setListStyle(this.getImage());
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}
}
// ------------------
// <list>.doubleclick
// ------------------
else if (qq_currentEvent.isEvent(ListView_DoubleClick_getqq_list)) {
try {
CursorMgr.startEvent();
// ================ Begin Forte Event Handler Translation ================
DisplayNode dnode = (DisplayNode)((ParameterHolder)qq_currentEvent.getParameter("node")).getObject();
Logger.getLogger("task.part.logmgr").info(dnode.getDVNodeText());
// ================ End Forte Event Handler Translation ================
}
finally {
CursorMgr.endEvent();
}