Lines Matching defs:newType
2049 * @param newType an integer specifying the kind of message to display:
2053 * @exception RuntimeException if <code>newType</code> is not one of the
2060 public void setMessageType(int newType) {
2061 checkMessageType(newType);
2063 messageType = newType;
2067 private static void checkMessageType(int newType){
2068 if(newType != ERROR_MESSAGE && newType != INFORMATION_MESSAGE &&
2069 newType != WARNING_MESSAGE && newType != QUESTION_MESSAGE &&
2070 newType != PLAIN_MESSAGE)
2094 * @param newType an integer specifying the options the {@literal L&F} is to display:
2099 * @exception RuntimeException if <code>newType</code> is not one of
2107 public void setOptionType(int newType) {
2108 checkOptionType(newType);
2110 optionType = newType;
2114 private static void checkOptionType(int newType) {
2115 if (newType != DEFAULT_OPTION && newType != YES_NO_OPTION
2116 && newType != YES_NO_CANCEL_OPTION
2117 && newType != OK_CANCEL_OPTION) {