state.setActionOnChange(new Action() { @Override public void execute(final ActionEvent event) { region.setActionOnChange(new Action() { @Override public void execute(final ActionEvent event) {
drpTriggerType.setActionOnChange(new Action() { @Override public void execute(final ActionEvent event) { drpCompareType.setActionOnChange(new Action() { @Override public void execute(final ActionEvent event) { drpActionType.setActionOnChange(new Action() { @Override public void execute(final ActionEvent event) {
/** * Creates a WDropdownSubmitOnChangeExample. */ public WDropdownSubmitOnChangeExample() { actMessage.setEncodeText(false); add(new ExplanatoryText("Any form control component which is not a WButton will show a visible warning in its label if its " + "submitOnChange property is set true.")); WFieldLayout flay = new WFieldLayout(); add(flay); flay.setLabelWidth(25); flay.setMargin(new Margin(null, null, Size.LARGE, null)); flay.addField("State", stateSelector).getLabel().setHint("Selecting a state will update the available regions."); flay.addField("Region", regionSelector); // Used to test control of visibility as part of submit on change. add(actMessage); actMessage.setVisible(false); stateSelector.setOptions(new String[]{null, STATE_ACT, STATE_NSW, STATE_VIC}); //This is the flag which causes accessibility problems. It may be removed completely in future versions of WComponents. //you should use AJAX instead stateSelector.setSubmitOnChange(true); stateSelector.setActionOnChange(new Action() { @Override public void execute(final ActionEvent event) { updateRegion(); regionSelector.resetData(); } }); regionSelector.setSubmitOnChange(true); }
infoPanel.add(info); dropdown.setActionOnChange(new Action() { @Override public void execute(final ActionEvent event) {
menu.add(item4); drop1.setActionOnChange(new Action() { @Override public void execute(final ActionEvent event) { drop2.setActionOnChange(new Action() { @Override public void execute(final ActionEvent event) { drop3.setActionOnChange(new Action() { @Override public void execute(final ActionEvent event) {
fieldLayout.addField(btnRemoveAll); selRemove.setActionOnChange(new Action() { @Override public void execute(final ActionEvent event) {
controller8.setActionOnChange(new Action() {
multiSelect.setActionOnChange(new MyChangedAction(messages, "WMultiSelect")); multiSelectPair.setActionOnChange(new MyChangedAction(messages, "WMultiSelectPair")); dropdown.setActionOnChange(new MyChangedAction(messages, "WDropdown")); radioButtonSelect.setActionOnChange(new MyChangedAction(messages, "WRadioButtonSelect")); singleSelect.setActionOnChange(new MyChangedAction(messages, "WSingleSelect"));