以下のコードは、演習 10 終了時の MapLocatorHandler.egl ファイルのテキストです。
package handlers;
import com.ibm.egl.rui.widgets.Box;
import com.ibm.egl.rui.widgets.GridLayout;
import com.ibm.egl.rui.widgets.GridLayoutData;
import com.ibm.egl.rui.widgets.GridLayoutLib;
import com.ibm.egl.rui.widgets.HyperLink;
import com.ibm.egl.rui.widgets.TextLabel;
import egl.ui.rui.Event;
import dojo.widgets.DojoButton;
import dojo.widgets.DojoComboBox;
import interfaces.GooglePlacesService;
import services.PlaceSearchResponse;
import utils.dialog.DojoDialogLib;
import utils.map.GoogleMap;
import utils.map.MapMarker;
handler MapLocatorHandler type RUIhandler{initialUI =[ui
], onConstructionFunction = start, cssFile = "css/MortgageUIProject.css", title = "MapLocatorHandler"}
ui GridLayout{columns = 3, rows = 3, cellPadding = 4, children =[localMap,
listingBox, typeButton, typeComboBox, typeLabel, introLabel
]};
introLabel TextLabel{layoutData = new GridLayoutData{row = 1, column = 1, horizontalSpan = 3}, text = "Search for places in San Francisco:"};
typeLabel TextLabel{layoutData = new GridLayoutData{row = 2, column = 1}, text = "Type:"};
typeComboBox DojoComboBox{layoutData = new GridLayoutData{row = 2, column = 2}, value = "mortgage", inputRequired = true, width = "100", onChange ::= checkForEnter, values =[
"bar", "food", "restaurant", "cafe", "movie_theater", "mortgage",
"bank", "atm"]};
typeButton DojoButton{layoutData = new GridLayoutData{row = 2, column = 3}, text = "Search", onClick ::= buttonClicked};
listingBox Box{layoutData = new GridLayoutData{row = 3, column = 1, verticalAlignment = GridLayoutLib.VALIGN_TOP, horizontalSpan = 2}, padding = 8, columns = 1, width = "150"};
localMap GoogleMap{layoutData = new GridLayoutData{row = 3, column = 3}, width = 400, height = 400};
function start()
end
function checkForEnter(event Event in)
end
function buttonClicked(event Event in)
end
end