/** * Return the icon representation of the message * * @param type - message type * @param id - id of the message entry * @param eqProperties - properties * @param languageId - language of the user * @return the icon representation of the message */ public static String cvtMsgTypeToImage( int type, String id, Properties eqProperties, EquationUser equationUser) { String str = ""; switch (type) { case AS400Message.INFORMATIONAL: str = EqDesktopToolBox.formatIntoImageHTML( "../images/EqMsgInfo.gif", cvtMsgTypeToStr(type, eqProperties, equationUser), id); break; case AS400Message.INQUIRY: str = EqDesktopToolBox.formatIntoImageHTML( "../images/EqMsgInq.gif", cvtMsgTypeToStr(type, eqProperties, equationUser), id); break; case AS400Message.REPLY_FROM_SYSTEM_REPLY_LIST: case AS400Message.REPLY_MESSAGE_DEFAULT_USED: case AS400Message.REPLY_NOT_VALIDITY_CHECKED: case AS400Message.REPLY_SYSTEM_DEFAULT_USED: case AS400Message.REPLY_VALIDITY_CHECKED: str = EqDesktopToolBox.formatIntoImageHTML( "../images/EqMsgReply.gif", cvtMsgTypeToStr(type, eqProperties, equationUser), id); break; case AS400Message.DIAGNOSTIC: case AS400Message.ESCAPE: case AS400Message.ESCAPE_NOT_HANDLED: str = EqDesktopToolBox.formatIntoImageHTML( "../images/EqMsgEsc.gif", cvtMsgTypeToStr(type, eqProperties, equationUser), id); break; case AS400Message.COMPLETION: str = EqDesktopToolBox.formatIntoImageHTML( "../images/EqMsgComp.gif", cvtMsgTypeToStr(type, eqProperties, equationUser), id); break; case AS400Message.NOTIFY: case AS400Message.NOTIFY_NOT_HANDLED: str = EqDesktopToolBox.formatIntoImageHTML( "../images/EqMsgWarn.gif", cvtMsgTypeToStr(type, eqProperties, equationUser), id); break; case AS400Message.SENDERS_COPY: // case AS400Message.MESSAGE_OPTION_ALL: // case AS400Message.MESSAGE_OPTION_NONE: // case AS400Message.MESSAGE_OPTION_UP_TO_10: case AS400Message.REQUEST: case AS400Message.REQUEST_WITH_PROMPTING: str = EqDesktopToolBox.formatIntoImageHTML( "../images/EqMsgOther.gif", cvtMsgTypeToStr(type, eqProperties, equationUser), id); break; } return str; }
/** * Return the anchor HTML element of the message * * @param msgq - the message entry * @param pos - the position in the message list * @param text - text to display * @return the anchor HTML element of the message */ public String formatIntoAnchor(QueuedMessage msgq, int pos, String text) { String str; str = EqDesktopToolBox.formatIntoAnchorHTML(text, "", onClickAction(msgq, pos), "messageStyle"); return str; }