/** * Sets the action field text. * * @param actionText * the action field text. */ public void setActionText(String actionText) { updateActionText(actionText, true); }
/** * Sets the action field text. * * @param actionText * the action field text. */ public void setActionText(String actionText) { updateActionText(actionText, true); }
private void handleSetActionText(Anything args) { updateActionText(args.get(ActionFieldConstants.ACTION_TEXT_KEY, ""), false); }
private void handleSetActionText(Anything args) { updateActionText(args.get(ActionFieldConstants.ACTION_TEXT_KEY, ""), false); }
private void updateValue(String aValue, boolean notifyClient) { if (!ObjectUtils.equals(this.value, aValue)) { Object oldValue = this.value; this.value = aValue; firePropertyChange("value", oldValue, aValue); } if (sourceActionField != null) { sourceActionField.updateValue(aValue, notifyClient); } updateActionText(value, notifyClient); } }
private void updateValue(Object aValue, boolean notifyClient) { if (!ObjectUtils.equals(this.value, aValue)) { Object oldValue = this.value; this.value = aValue; firePropertyChange("value", oldValue, aValue); } if (sourceActionField != null) { sourceActionField.updateValue(aValue, notifyClient); } updateActionText(valueToString(), notifyClient); }
private void updateActionText(String text, boolean notifyClient) { if (!ObjectUtils.equals(this.actionText, text)) { String oldActionText = this.actionText; this.actionText = text; if (notifyClient) { Anything actionTextAnything = new Anything(); actionTextAnything.put(ActionFieldConstants.ACTION_TEXT_KEY, text); sendUI(ActionFieldConstants.SET_ACTION_TEXT_REQUEST, actionTextAnything); } firePropertyChange("actionText", oldActionText, text); } if (sourceActionField != null) { sourceActionField.updateActionText(text, notifyClient); } }
private void updateActionText(String text, boolean notifyClient) { if (!ObjectUtils.equals(this.actionText, text)) { String oldActionText = this.actionText; this.actionText = text; if (notifyClient) { Anything actionTextAnything = new Anything(); actionTextAnything.put(ActionFieldConstants.ACTION_TEXT_KEY, text); sendUI(ActionFieldConstants.SET_ACTION_TEXT_REQUEST, actionTextAnything); } firePropertyChange("actionText", oldActionText, text); } if (sourceActionField != null) { sourceActionField.updateActionText(text, notifyClient); } }