/** * Sets the editable. * * @param editable * the editable to set. */ public void setEditable(boolean editable) { if (this.editable != editable) { this.editable = editable; Anything editableAnything = new Anything(); editableToAnything(editableAnything); sendUI(ActionFieldConstants.SET_EDITABLE_REQUEST, editableAnything); } }
/** * Sets the editable. * * @param editable * the editable to set. */ public void setEditable(boolean editable) { if (this.editable != editable) { this.editable = editable; Anything editableAnything = new Anything(); editableToAnything(editableAnything); sendUI(ActionFieldConstants.SET_EDITABLE_REQUEST, editableAnything); } }
/** * Decorates the component with a marker. * * @param decorated * if the component should be decorated. */ public void setDecorated(boolean decorated) { if (this.decorated != decorated) { this.decorated = decorated; Anything decoratedAnything = new Anything(); decoratedToAnything(decoratedAnything); sendUI(ActionFieldConstants.SET_DECORATED_REQUEST, decoratedAnything); } }
/** * Decorates the component with a marker. * * @param decorated * if the component should be decorated. */ public void setDecorated(boolean decorated) { if (this.decorated != decorated) { this.decorated = decorated; Anything decoratedAnything = new Anything(); decoratedToAnything(decoratedAnything); sendUI(ActionFieldConstants.SET_DECORATED_REQUEST, decoratedAnything); } }
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); } }
/** * Sets the action. * * @param actions * the actions to set. */ public void setActions(List<IAction> actions) { if (!ObjectUtils.equals(this.actions, actions)) { this.actions = actions; Anything actionsAnything = new Anything(); Anything actionIconsAnything = new Anything(); fillActionData(actionsAnything, actionIconsAnything); Anything args = new Anything(); args.put(ActionFieldConstants.ACTIONS_KEY, actionsAnything); args.put(ActionFieldConstants.ICONS_KEY, actionIconsAnything); sendUI(ActionFieldConstants.SET_ACTIONS_REQUEST, args); } }
/** * Sets the action. * * @param actions * the actions to set. */ public void setActions(List<IAction> actions) { if (!ObjectUtils.equals(this.actions, actions)) { this.actions = actions; Anything actionsAnything = new Anything(); Anything actionIconsAnything = new Anything(); fillActionData(actionsAnything, actionIconsAnything); Anything args = new Anything(); args.put(ActionFieldConstants.ACTIONS_KEY, actionsAnything); args.put(ActionFieldConstants.ICONS_KEY, actionIconsAnything); sendUI(ActionFieldConstants.SET_ACTIONS_REQUEST, args); } }