The DojoBorderContainer widget creates a container partitioned into up to five regions: left, right, top, bottom, and center.
Other supported fields and functions are described in the following topics in the EGL Programmer’s Guide: “Rich UI widget fields” and ”Rich UI widget functions.”
import dojo.widgets.DojoBorderContainer;
package client;
import org.eclipse.edt.rui.widgets.TextLabel;
import dojo.widgets.DojoBorderContainer;
import dojo.widgets.DojoButton;
import dojo.widgets.DojoContentPane;
import dojo.widgets.DojoLib;
import dojo.widgets.DojoTextField;
import eglx.ui.rui.RUIHandler;
import eglx.ui.rui.Event;
handler MyHandler type RUIHandler{initialUI =[BorderContainer]}
BorderContainer DojoBorderContainer{
width = 200, height = 300, borders = true,
children = [
new DojoContentPane { region = DojoLib.REGION_CENTER,
children = [ myButton ] },
new DojoContentPane { region = DojoLib.REGION_LEFT,
children = []},
new DojoContentPane { region = DojoLib.REGION_RIGHT,
children = []},
new DojoContentPane { region = DojoLib.REGION_TOP,
children = [myTextField]},
new DojoContentPane { region = DojoLib.REGION_BOTTOM,
children = [myLabel, myOtherTextField]}
]};
myTextField DojoTextField {text = "Read!", readonly = true};
myButton DojoButton{text = "Click!", onClick ::= myButtonResponse};
myLabel TextLabel {text = "Write: "};
myOtherTextField DojoTextField {readonly = false};
function myButtonResponse(e Event in)
myTextField.text = myOtherTextField.text;
end
end