Lines Matching refs:mode

64     private Mode mode = null;
68 * Creates a new presence update. Status, priority, and mode are left un-set.
77 * Creates a new presence update with a specified status, priority, and mode.
82 * @param mode the mode type for this presence update.
84 public Presence(Type type, String status, int priority, Mode mode) {
88 setMode(mode);
96 * when the user is available, their presence mode may be {@link Mode#away away},
108 * mode is {@link Mode#away away}, {@link Mode#xa extended away}, or
109 * {@link Mode#dnd do not disturb}. False will be returned when the type or mode
112 * <tt>type == Type.available && (mode == Mode.away || mode == Mode.xa || mode == Mode.dnd)</tt>.
114 * @return true if the presence type is available and the presence mode is away, xa, or dnd.
117 return type == Type.available && (mode == Mode.away || mode == Mode.xa || mode == Mode.dnd);
186 * Returns the mode of the presence update, or <tt>null</tt> if the mode is not set.
187 * A null presence mode value is interpreted to be the same thing as
190 * @return the mode.
193 return mode;
197 * Sets the mode of the presence update. A null presence mode value is interpreted
200 * @param mode the mode.
202 public void setMode(Mode mode) {
203 this.mode = mode;
254 if (mode != null && mode != Mode.available) {
255 buf.append("<show>").append(mode).append("</show>");
274 if (mode != null) {
275 buf.append(": ").append(mode);
285 * with presence mode. Generally, if a user is signed into a server, they have a presence
286 * type of {@link #available available}, even if the mode is {@link Mode#away away},
329 * An enum to represent the presence mode.