DojoBorderContainer widget

The DojoBorderContainer widget creates a container partitioned into up to five regions: left, right, top, bottom, and center.

Fields

borders
A Boolean value that indicates whether the borders should be visible. A border line can be drawn around the container and each region (similar to table row and column borders).

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.”

Use of this widget requires the following statement:
import dojo.widgets.DojoBorderContainer;

Examples

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