diff src/main/java/app/bbs/thinks/ShowMatrix.java @ 169:54d68cda84c4

create edit Attribute & Folder Method
author tatsuki
date Tue, 29 Jul 2014 18:51:44 +0900
parents 91f6dd655a01
children 2403b9a4416f
line wrap: on
line diff
--- a/src/main/java/app/bbs/thinks/ShowMatrix.java	Tue Jul 29 10:58:11 2014 +0900
+++ b/src/main/java/app/bbs/thinks/ShowMatrix.java	Tue Jul 29 18:51:44 2014 +0900
@@ -21,13 +21,15 @@
 	private final String editMessagePath;
 	private final String showMatrixPath;
 	private final String createAttributePath;
+	private final String editAttributePath;
 	private static final String PARAM_BOARD_NAME = "bname";
 
 	public ShowMatrix(NetworkBulletinBoard _bbs,
 			String _createBoardMessagePath, String _editMessagePath,
-			String _showMatrixPath, String _createAttributePath, ThreadPool thp) {
+			String _showMatrixPath, String _createAttributePath, String _editAttributePath, ThreadPool thp) {
 		bbs = _bbs;
 		createAttributePath = _createAttributePath;
+		editAttributePath = _editAttributePath;
 		showMatrixPath = _showMatrixPath;
 		createBoardMessagePath = _createBoardMessagePath;
 		editMessagePath = _editMessagePath;
@@ -75,16 +77,16 @@
 			_pw.write("<hr/>");
 			_pw.write("<small><a href=" + showMatrixPath + "?bname=" + _bname + "&uuid=" + nodeNum + "/" + msg.getUUID() + "&nodeName=" + msg.getMessage() + ">" + msg.getMessage() + "</a></small>");
 			_pw.write("   ");
-			_pw.write("<small><a href='" + createAttributePath + "?bname=" + _bname + "&uuid=" + nodeNum  + "/"+ msg.getUUID() + "'>edit(not s)</a></small>");
+			_pw.write("<small><a href='" + editMessagePath + "?bname=" + _bname + "&uuid=" + nodeNum  + "/"+ msg.getUUID() + "'>edit</a></small>");
 		}
 		
 		
 		_pw.write("<br><hr/><p>Value</p><br>");
 		getAttributeImp attribute = (bbs.getAttribute(_bname, nodeNum));
 		for (int count = 0; attribute.getMessage(count) != null; count++) {
-			_pw.write("<p><b>" + "Varue  " + count + " : " + attribute.getMessage(count) + "</b></p>");
+			_pw.write("<p><b>" + "Value  " + count + " :  </b>");
+			_pw.write("<a href='" + editAttributePath + "?bname=" + _bname + "&path=" + nodeNum  + "&count="+ count + "'>"  + attribute.getMessage(count) + "</a></p>");
 		}
-
 		_pw.write("</body></html>");
 		_pw.flush();
 	}