// 1 - Whne editing module\r
//\r
private int intExitType = 0;\r
-\r
+ \r
/**\r
Main class, used for test\r
\r
public int showSaveDialog() {\r
return JOptionPane.showConfirmDialog(null, "Save all changed files?", "Save", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE);\r
}\r
+ \r
+ /**\r
+ Check the input data is empty or not\r
+ \r
+ @param strValue The input data which need be checked\r
+ \r
+ @retval true - The input data is empty\r
+ @retval fals - The input data is not empty\r
+ \r
+ **/\r
+ public boolean isEmpty(String strValue) {\r
+ if (strValue.length() > 0) {\r
+ return false;\r
+ }\r
+ return true;\r
+ }\r
+ \r
+ /**\r
+ Display the dialog\r
+ \r
+ **/\r
+ public void showDialog() {\r
+ this.setVisible(true);\r
+ }\r
}\r