form = new ModclusterForm(presenter);
CheckBoxItem advertise = new CheckBoxItem("advertise", "Advertise");
TextBoxItem advertiseSocket = new TextBoxItem("advertiseSocket", "Advertise Socket");
TextBoxItem advertiseKey= new TextBoxItem("advertiseKey", "Advertise Key", false);
TextBoxItem balancer = new TextBoxItem("balancer", "Balancer", false);
TextBoxItem loadBalancingGroup = new TextBoxItem("loadBalancingGroup", "Load Balancing Group", false);
form.setFields(loadBalancingGroup, balancer, advertiseSocket, advertiseKey, advertise);
// ---
contextForm = new ModclusterForm(presenter);
TextAreaItem excludedContexts = new TextAreaItem("excludedContexts", "Excluded Contexts");
excludedContexts.setRequired(false);
CheckBoxItem autoEnableContexts = new CheckBoxItem("autoEnableContexts", "Auto Enable Contexts");
contextForm.setFields(autoEnableContexts, excludedContexts);
// ---
proxyForm = new ModclusterForm(presenter);
TextAreaItem proxyList = new TextAreaItem("proxyList", "Proxy List");
proxyList.setRequired(false);
TextBoxItem proxyUrl = new TextBoxItem("proxyUrl", "Proxy Url");
proxyForm.setFields(proxyUrl, proxyList);
//---