public void addListBoxToFilter(String label, String fieldName, boolean multiselect, HashMap<String, String> listBoxInfo) { FormGroup controlGroup = new FormGroup(); FormLabel controlLabel = new FormLabel(); controlLabel.setTitle(label); HTML lab = new HTML("<span style=\"margin-right:10px\">" + label + "</span>"); controlLabel.setHTML(lab.getHTML()); ListBox listBox = new ListBox(multiselect); if (listBoxInfo != null) { Set listBoxKeys = listBoxInfo.keySet(); Iterator it = listBoxKeys.iterator(); String key; while (it.hasNext()) { key = (String) it.next(); listBox.addItem(listBoxInfo.get(key), key); } } listBox.setName(fieldName); controlGroup.add(controlLabel); controlGroup.add(listBox); filterControlGroups.add(controlGroup); horizontalForm.add(controlGroup); }
public void setContent( final Command callbackCommand, ItemObjectModel model ) { this.callbackCommand = callbackCommand; this.parametersLabel.setTitle( Constants.INSTANCE.DeploymentDescriptorParameters() + model.getName() ); this.parametersDataProvider.getList().clear(); if ( model.getParameters() != null ) { this.parametersDataProvider.setList( model.getParameters() ); } this.parametersDataProvider.refresh(); }
public void addListBoxToFilter(String label, String fieldName, boolean multiselect, HashMap<String, String> listBoxInfo) { FormGroup controlGroup = new FormGroup(); FormLabel controlLabel = new FormLabel(); controlLabel.setTitle(label); HTML lab = new HTML("<span style=\"margin-right:10px\">" + label + "</span>"); controlLabel.setHTML(lab.getHTML()); ListBox listBox = new ListBox(multiselect); if (listBoxInfo != null) { Set listBoxKeys = listBoxInfo.keySet(); Iterator it = listBoxKeys.iterator(); String key; while (it.hasNext()) { key = (String) it.next(); listBox.addItem(listBoxInfo.get(key), key); } } listBox.setName(fieldName); controlGroup.add(controlLabel); controlGroup.add(listBox); filterControlGroups.add(controlGroup); filterForm.add(controlGroup); }
public void addListBoxToFilter(String label, String fieldName, boolean multiselect, HashMap<String, String> listBoxInfo) { FormGroup controlGroup = new FormGroup(); FormLabel controlLabel = new FormLabel(); controlLabel.setTitle(label); HTML lab = new HTML("<span style=\"margin-right:10px\">" + label + "</span>"); controlLabel.setHTML(lab.getHTML()); ListBox listBox = new ListBox(multiselect); if (listBoxInfo != null) { Set listBoxKeys = listBoxInfo.keySet(); Iterator it = listBoxKeys.iterator(); String key; while (it.hasNext()) { key = (String) it.next(); listBox.addItem(listBoxInfo.get(key), key); } } listBox.setName(fieldName); controlGroup.add(controlLabel); controlGroup.add(listBox); filterControlGroups.add(controlGroup); filterForm.add(controlGroup); }
public void addListBoxToFilter(String label, String fieldName, boolean multiselect, HashMap<String, String> listBoxInfo) { FormGroup controlGroup = new FormGroup(); FormLabel controlLabel = new FormLabel(); controlLabel.setTitle(label); HTML lab = new HTML("<span style=\"margin-right:10px\">" + label + "</span>"); controlLabel.setHTML(lab.getHTML()); ListBox listBox = new ListBox(multiselect); if (listBoxInfo != null) { Set listBoxKeys = listBoxInfo.keySet(); Iterator it = listBoxKeys.iterator(); String key; while (it.hasNext()) { key = (String) it.next(); listBox.addItem(listBoxInfo.get(key), key); } } listBox.setName(fieldName); controlGroup.add(controlLabel); controlGroup.add(listBox); filterControlGroups.add(controlGroup); horizontalForm.add(controlGroup); }
public void addTextBoxToFilter(String label, String fieldName, String defaultValue) { FormGroup controlGroup = new FormGroup(); FormLabel controlLabel = new FormLabel(); controlLabel.setTitle(label); HTML lab = new HTML("<span style=\"margin-right:10px\">" + label + "</span>"); controlLabel.setHTML(lab.getHTML()); TextBox textBox = new TextBox(); textBox.setName(fieldName); if (defaultValue != null && defaultValue.trim().length() > 0) { textBox.setText(defaultValue); } controlGroup.add(controlLabel); controlGroup.add(textBox); filterControlGroups.add(controlGroup); filterForm.add(controlGroup); }
public void addTextBoxToFilter(String label, String fieldName, String defaultValue) { FormGroup controlGroup = new FormGroup(); FormLabel controlLabel = new FormLabel(); controlLabel.setTitle(label); HTML lab = new HTML("<span style=\"margin-right:10px\">" + label + "</span>"); controlLabel.setHTML(lab.getHTML()); TextBox textBox = new TextBox(); textBox.setName(fieldName); if (defaultValue != null && defaultValue.trim().length() > 0) { textBox.setText(defaultValue); } controlGroup.add(controlLabel); controlGroup.add(textBox); filterControlGroups.add(controlGroup); horizontalForm.add(controlGroup); }
public void addTextBoxToFilter(String label, String fieldName, String defaultValue) { FormGroup controlGroup = new FormGroup(); FormLabel controlLabel = new FormLabel(); controlLabel.setTitle(label); HTML lab = new HTML("<span style=\"margin-right:10px\">" + label + "</span>"); controlLabel.setHTML(lab.getHTML()); TextBox textBox = new TextBox(); textBox.setName(fieldName); if (defaultValue != null && defaultValue.trim().length() > 0) { textBox.setText(defaultValue); } controlGroup.add(controlLabel); controlGroup.add(textBox); filterControlGroups.add(controlGroup); horizontalForm.add(controlGroup); }
public void addTextBoxToFilter(String label, String fieldName, String defaultValue) { FormGroup controlGroup = new FormGroup(); FormLabel controlLabel = new FormLabel(); controlLabel.setTitle(label); HTML lab = new HTML("<span style=\"margin-right:10px\">" + label + "</span>"); controlLabel.setHTML(lab.getHTML()); TextBox textBox = new TextBox(); textBox.setName(fieldName); if (defaultValue != null && defaultValue.trim().length() > 0) { textBox.setText(defaultValue); } controlGroup.add(controlLabel); controlGroup.add(textBox); filterControlGroups.add(controlGroup); filterForm.add(controlGroup); }
public void init() { basicTabPanel.clear(); filterControlGroups.clear(); filterForm.clear(); FormGroup controlGroup = new FormGroup(); FormLabel controlLabel = new FormLabel(); controlLabel.setTitle(CommonConstants.INSTANCE.Filter_Name()); HTML lab = new HTML("<span style=\"color:red\"> * </span>" + "<span style=\"margin-right:10px\">" + CommonConstants.INSTANCE.Filter_Name() + "</span>"); controlLabel.setHTML(lab.getHTML()); TextBox fieldTextBox = new TextBox(); fieldTextBox.setName(FILTER_TAB_NAME_PARAM); controlGroup.add(controlLabel); controlGroup.add(fieldTextBox); filterControlGroups.add(controlGroup); basicTabPanel.add(controlGroup); controlGroup = new FormGroup(); controlLabel = new FormLabel(); controlLabel.setTitle("Filter description"); lab = new HTML("<span style=\"color:red\"> * </span>" + "<span style=\"margin-right:10px\">" + "Filter description" + "</span>"); controlLabel.setHTML(lab.getHTML()); fieldTextBox = new TextBox(); fieldTextBox.setName(FILTER_TAB_DESC_PARAM); controlGroup.add(controlLabel); controlGroup.add(fieldTextBox); filterControlGroups.add(controlGroup); basicTabPanel.add(controlGroup); }
public void init() { basicTabPanel.clear(); filterControlGroups.clear(); filterForm.clear(); FormGroup controlGroup = new FormGroup(); FormLabel controlLabel = new FormLabel(); controlLabel.setTitle(CommonConstants.INSTANCE.Filter_Name()); HTML lab = new HTML("<span style=\"color:red\"> * </span>" + "<span style=\"margin-right:10px\">" + CommonConstants.INSTANCE.Filter_Name() + "</span>"); controlLabel.setHTML(lab.getHTML()); TextBox fieldTextBox = new TextBox(); fieldTextBox.setName(FILTER_TAB_NAME_PARAM); controlGroup.add(controlLabel); controlGroup.add(fieldTextBox); filterControlGroups.add(controlGroup); basicTabPanel.add(controlGroup); controlGroup = new FormGroup(); controlLabel = new FormLabel(); controlLabel.setTitle("Filter description"); lab = new HTML("<span style=\"color:red\"> * </span>" + "<span style=\"margin-right:10px\">" + "Filter description" + "</span>"); controlLabel.setHTML(lab.getHTML()); fieldTextBox = new TextBox(); fieldTextBox.setName(FILTER_TAB_DESC_PARAM); controlGroup.add(controlLabel); controlGroup.add(fieldTextBox); filterControlGroups.add(controlGroup); basicTabPanel.add(controlGroup); }
public void init() { horizontalForm.clear(); filterControlGroups.clear(); FormGroup controlGroup = new FormGroup(); FormLabel controlLabel = new FormLabel(); controlLabel.setTitle(CommonConstants.INSTANCE.Filter_Name()); HTML lab = new HTML("<span style=\"color:red\"> * </span>" + "<span style=\"margin-right:10px\">" + CommonConstants.INSTANCE.Filter_Name() + "</span>"); controlLabel.setHTML(lab.getHTML()); TextBox fieldTextBox = new TextBox(); fieldTextBox.setName(FILTER_NAME_PARAM); controlGroup.add(controlLabel); controlGroup.add(fieldTextBox); filterControlGroups.add(controlGroup); horizontalForm.add(controlGroup); existingFiltersPanel.clear(); existingFiltersPanel.add(existingFiltersGrid); existingFiltersGrid.loadPageSizePreferences(); existingFiltersGrid.setColumnPickerButtonVisible(false); existingFiltersGrid.setEmptyTableCaption(CommonConstants.INSTANCE.NoCustomFilterAvailable()); }
public void init() { horizontalForm.clear(); filterControlGroups.clear(); FormGroup controlGroup = new FormGroup(); FormLabel controlLabel = new FormLabel(); controlLabel.setTitle(CommonConstants.INSTANCE.Filter_Name()); HTML lab = new HTML("<span style=\"color:red\"> * </span>" + "<span style=\"margin-right:10px\">" + CommonConstants.INSTANCE.Filter_Name() + "</span>"); controlLabel.setHTML(lab.getHTML()); TextBox fieldTextBox = new TextBox(); fieldTextBox.setName(FILTER_NAME_PARAM); controlGroup.add(controlLabel); controlGroup.add(fieldTextBox); filterControlGroups.add(controlGroup); horizontalForm.add(controlGroup); existingFiltersPanel.clear(); existingFiltersPanel.add(existingFiltersGrid); existingFiltersGrid.loadPageSizePreferences(); existingFiltersGrid.setColumnPickerButtonVisible(false); existingFiltersGrid.setEmptyTableCaption(CommonConstants.INSTANCE.NoCustomFilterAvailable()); }