當前位置: 首頁>>代碼示例>>Java>>正文


Java Element.getValue方法代碼示例

本文整理匯總了Java中nu.xom.Element.getValue方法的典型用法代碼示例。如果您正苦於以下問題:Java Element.getValue方法的具體用法?Java Element.getValue怎麽用?Java Element.getValue使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在nu.xom.Element的用法示例。


在下文中一共展示了Element.getValue方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getDescription

import nu.xom.Element; //導入方法依賴的package包/類
public String getDescription() {
	Element thisElement = _root.getFirstChildElement("description");
	if (thisElement == null) {
		return null;
	}
	else {
   		return thisElement.getValue();
	}
}
 
開發者ID:ser316asu,項目名稱:Neukoelln_SER316,代碼行數:10,代碼來源:ProjectImpl.java

示例2: generateStickers

import nu.xom.Element; //導入方法依賴的package包/類
static String generateStickers(CalendarDate date) {
	String iurl = net.sf.memoranda.ui.AppFrame.class.getResource("resources/agenda/addsticker.gif")
			.toExternalForm();
	String iurl2 = net.sf.memoranda.ui.AppFrame.class.getResource("resources/agenda/removesticker.gif")
			.toExternalForm();
	String s = "<hr><hr><table border=\"0\" cellpadding=\"0\" width=\"100%\"><tr><td><a href=\"memoranda:importstickers\"><b>"
			+ Local.getString("IMPORT STIKER") + "</b></a></td><td><a href=\"memoranda:exportstickerst\"><b>"
			+ Local.getString("EXPORT STICKER")
			+ "</b></a><td><a href=\"memoranda:exportstickersh\"><b>"
			+ Local.getString("EXPORT STICKER HTML") + "</b></a></td></tr></table>"
			+ "<table border=\"0\" cellpadding=\"0\" width=\"100%\"><tr><td><a href=\"memoranda:addsticker\"><img align=\"left\" width=\"22\" height=\"22\" src=\""
			+ iurl
			+ "\" border=\"0\"  hspace=\"0\" vspace=\"0\" alt=\"New sticker\"></a></td><td width=\"100%\"><a href=\"memoranda:addsticker\"><b>&nbsp;"
			+ Local.getString("Add sticker") + "</b></a></td></tr></table>";
	PriorityQueue pQ = sortStickers();
	while (!pQ.Vacia()) {
		Element el = pQ.extraer();
		String id = el.getAttributeValue("id");
		String txt = el.getValue();
		s += "\n<table border=\"0\" cellpadding=\"0\" width=\"100%\"><table width=\"100%\"><tr bgcolor=\"#E0E0E0\"><td><a href=\"memoranda:editsticker#"
				+ id + "\">" + Local.getString("EDIT")
				+ "</a></td><td width=\"70%\"><a href=\"memoranda:expandsticker#" + id + "\">"
				+ Local.getString("OPEN IN A NEW WINDOW") + "</></td><td align=\"right\">" + "&nbsp;" + // without
																										// this
																										// removesticker
																										// link
																										// takes
																										// klicks
																										// from
																										// whole
																										// cell
				"<a href=\"memoranda:removesticker#" + id
				+ "\"><img align=\"left\" width=\"14\" height=\"14\" src=\"" + iurl2
				+ "\" border=\"0\"  hspace=\"0\" vspace=\"0\" alt=\"Remove sticker\"></a></td></table></tr><tr><td>"
				+ txt + "</td></tr></table>";
	}
	s += "<hr>";
	return s;
}
 
開發者ID:ser316asu,項目名稱:Neukoelln_SER316,代碼行數:40,代碼來源:AgendaGenerator.java

示例3: getDescription

import nu.xom.Element; //導入方法依賴的package包/類
public String getDescription() {
	Element thisElement = _element.getFirstChildElement("description");
	if (thisElement == null) {
		return null;
	}
	else {
   		return thisElement.getValue();
	}
}
 
開發者ID:ser316asu,項目名稱:Neukoelln_SER316,代碼行數:10,代碼來源:TaskImpl.java

示例4: generateStickers

import nu.xom.Element; //導入方法依賴的package包/類
static String generateStickers(CalendarDate date) {
	String iurl =
			net
			.sf
			.memoranda
			.ui
			.AppFrame
			.class
			.getResource("resources/agenda/addsticker.gif")
			.toExternalForm();
	String iurl2 =
			net
			.sf
			.memoranda
			.ui
			.AppFrame
			.class
			.getResource("resources/agenda/removesticker.gif")
			.toExternalForm();
	 String s = "<table border=\"0\" cellpadding=\"0\" width=\"100%\"><tr><td><center><a href=\"memoranda:importstickers\"><b>"+Local.getString("Import annotation")+"</b></a></center></td><td><center><a href=\"memoranda:exportstickerst\"><b>"+Local.getString("Export annotation as .txt")+"</b></a></center><td><center><a href=\"memoranda:exportstickersh\"><b>"+Local.getString("Export annotation as .html")+"</b></a></center></td></tr></table>"
			 +   "<table border=\"0\" cellpadding=\"10\" width=\"100%\"><tr bgcolor=\"#98FB98\"><td><center><a href=\"memoranda:addsticker\"><b>"
			+Local.getString("ADD STICKER")+"</b></a></center></td></tr></table>";
	PriorityQueue pQ = sortStickers();
	while(!pQ.Vacia()){
	Element el = pQ.extraer();
	String id = el.getAttributeValue("id");
	String txt = el.getValue();
           s += "\n<table border=\"0\" cellpadding=\"2\" width=\"100%\"><table width=\"100%\"><tr bgcolor=\"#E0E0E0\">"
           		+ "<td><center><a href=\"memoranda:editsticker#"+id+"\"><b>"+Local.getString("EDIT")+"</b></a></center></td>"
           		+ "<td><center><a href=\"memoranda:expandsticker#"+id+"\"><b>"+Local.getString("OPEN")+"</b></a></center></td>"
           		+ "<td><center><a href=\"memoranda:removesticker#"+id+"\"><b>"+Local.getString("REMOVE")+"</b></a></center></td>"
           				+ "</table></tr><tr><td>"+txt+"</td></tr></table>";
       }
       s += "<hr>";
	return s;
}
 
開發者ID:ser316asu,項目名稱:SER316-Aachen,代碼行數:37,代碼來源:AgendaGenerator.java

示例5: getDescription

import nu.xom.Element; //導入方法依賴的package包/類
/**
 * @see net.sf.memoranda.Task#getDescription()
 */
public String getDescription() {
    Element thisElement = _element.getFirstChildElement("description");
    if (thisElement == null) {
        return null;
    }
    else {
           return thisElement.getValue();
    }
}
 
開發者ID:ser316asu,項目名稱:SER316-Dresden,代碼行數:13,代碼來源:TaskImpl.java

示例6: generateStickers

import nu.xom.Element; //導入方法依賴的package包/類
static String generateStickers(CalendarDate date) {
	String iurl =
			net
			.sf
			.memoranda
			.ui
			.AppFrame
			.class
			.getResource("resources/agenda/addsticker.gif")
			.toExternalForm();
	String iurl2 =
			net
			.sf
			.memoranda
			.ui
			.AppFrame
			.class
			.getResource("resources/agenda/removesticker.gif")
			.toExternalForm();
	 String s = "<hr><hr><table border=\"0\" cellpadding=\"0\" width=\"100%\"><tr><td><a href=\"memoranda:importstickers\"><b>"+Local.getString("Import sticker")+"</b></a></td><td><a href=\"memoranda:exportstickerst\"><b>"+Local.getString("Export sticker as .txt")+"</b></a><td><a href=\"memoranda:exportstickersh\"><b>"+Local.getString("Export sticker as .html")+"</b></a></td></tr></table>"
			 +   "<table border=\"0\" cellpadding=\"0\" width=\"100%\"><tr><td><a href=\"memoranda:addsticker\"><img align=\"left\" width=\"22\" height=\"22\" src=\""				
			 + iurl
			+ "\" border=\"0\"  hspace=\"0\" vspace=\"0\" alt=\"New sticker\"></a></td><td width=\"100%\"><a href=\"memoranda:addsticker\"><b>&nbsp;"
			+Local.getString("Add sticker")+"</b></a></td></tr></table>";
	PriorityQueue pQ = sortStickers();
	while(!pQ.Vacia()){
	Element el = pQ.extraer();
	String id = el.getAttributeValue("id");
	String txt = el.getValue();
           s += "\n<table border=\"0\" cellpadding=\"0\" width=\"100%\"><table width=\"100%\"><tr bgcolor=\"#E0E0E0\"><td><a href=\"memoranda:editsticker#"+id+"\">"+Local.getString("EDIT")+"</a></td><td width=\"70%\"><a href=\"memoranda:expandsticker#"+id+"\">"+Local.getString("OPEN IN A NEW WINDOW")+"</></td><td align=\"right\">" +
                   "&nbsp;" + // without this removesticker link takes klicks from whole cell
                     "<a href=\"memoranda:removesticker#"+id+"\"><img align=\"left\" width=\"14\" height=\"14\" src=\""
                   + iurl2
                   + "\" border=\"0\"  hspace=\"0\" vspace=\"0\" alt=\"Remove sticker\"></a></td></table></tr><tr><td>"+txt+"</td></tr></table>";
       }
       s += "<hr>";
	return s;
}
 
開發者ID:ser316asu,項目名稱:SER316-Munich,代碼行數:39,代碼來源:AgendaGenerator.java

示例7: generateStickers

import nu.xom.Element; //導入方法依賴的package包/類
static String generateStickers(CalendarDate date) {
	String iurl =
			net
			.sf
			.memoranda
			.ui
			.AppFrame
			.class
			.getResource("resources/agenda/addsticker.gif")
			.toExternalForm();
	String iurl2 =
			net
			.sf
			.memoranda
			.ui
			.AppFrame
			.class
			.getResource("resources/agenda/removesticker.gif")
			.toExternalForm();
	String s = "<hr><hr><table border=\"0\" cellpadding=\"0\" width=\"100%\">"
			+ "<a href=\"memoranda:exportstickersh\"><b>"
			+ "<table border=\"0\" cellpadding=\"0\" width=\"100%\"><tr><td><a href=\"memoranda:addsticker\"><img align=\"left\" width=\"22\" height=\"22\" src=\""
			+ iurl
			+ "\" border=\"0\"  hspace=\"0\" vspace=\"0\" alt=\"New sticker\"></a></td><td width=\"100%\"><a href=\"memoranda:addsticker\"><b>&nbsp;"
			+ Local.getString("Add sticker") + "</b></a></td></tr></table>";
	PriorityQueue pQ = sortStickers();
	while(!pQ.Vacia()){
	Element el = pQ.extraer();
	String id = el.getAttributeValue("id");
	String txt = el.getValue();
           s += "\n<table border=\"0\" cellpadding=\"0\" width=\"100%\"><table width=\"100%\"><tr bgcolor=\"#E0E0E0\"><td><a href=\"memoranda:editsticker#"+id+"\">"+Local.getString("EDIT")+"</a></td><td width=\"70%\"><a href=\"memoranda:expandsticker#"+id+"\">"+Local.getString("OPEN IN A NEW WINDOW")+"</></td><td align=\"right\">" +
                   "&nbsp;" + // without this removesticker link takes klicks from whole cell
                     "<a href=\"memoranda:removesticker#"+id+"\"><img align=\"left\" width=\"14\" height=\"14\" src=\""
                   + iurl2
                   + "\" border=\"0\"  hspace=\"0\" vspace=\"0\" alt=\"Remove sticker\"></a></td></table></tr><tr><td>"+txt+"</td></tr></table>";
       }
       s += "<hr>";
	return s;
}
 
開發者ID:ser316asu,項目名稱:Dahlem_SER316,代碼行數:40,代碼來源:AgendaGenerator.java

示例8: generateStickers

import nu.xom.Element; //導入方法依賴的package包/類
static String generateStickers(CalendarDate date) {
	String iurl =
			net
			.sf
			.memoranda
			.ui
			.AppFrame
			.class
			.getResource("resources/agenda/addsticker.gif")
			.toExternalForm();
	String iurl2 =
			net
			.sf
			.memoranda
			.ui
			.AppFrame
			.class
			.getResource("resources/agenda/removesticker.gif")
			.toExternalForm();
	 String s = "<hr><hr><table border=\"0\" cellpadding=\"0\" width=\"100%\"><tr><td><a href=\"memoranda:importstickers\"><b>"+Local.getString("Import Annotation")+"</b></a></td><td><a href=\"memoranda:exportstickerst\"><b>"+Local.getString("Export Annotation as .txt")+"</b></a><td><a href=\"memoranda:exportstickersh\"><b>"+Local.getString("Export Annotation as .html")+"</b></a></td></tr></table>"
			 +   "<table border=\"0\" cellpadding=\"0\" width=\"100%\"><tr><td><a href=\"memoranda:addsticker\"><img align=\"left\" width=\"22\" height=\"22\" src=\""				
			 + iurl
			+ "\" border=\"0\"  hspace=\"0\" vspace=\"0\" alt=\"New sticker\"></a></td><td width=\"100%\"><a href=\"memoranda:addsticker\"><b>&nbsp;"
			+Local.getString("Add sticker")+"</b></a></td></tr></table>";
	PriorityQueue pQ = sortStickers();
	while(!pQ.Vacia()){
	Element el = pQ.extraer();
	String id = el.getAttributeValue("id");
	String txt = el.getValue();
           s += "\n<table border=\"0\" cellpadding=\"0\" width=\"100%\"><table width=\"100%\"><tr bgcolor=\"#E0E0E0\"><td><a href=\"memoranda:editsticker#"+id+"\">"+Local.getString("EDIT")+"</a></td><td width=\"70%\"><a href=\"memoranda:expandsticker#"+id+"\">"+Local.getString("OPEN IN A NEW WINDOW")+"</></td><td align=\"right\">" +
                   "&nbsp;" + // without this removesticker link takes klicks from whole cell
                     "<a href=\"memoranda:removesticker#"+id+"\"><img align=\"left\" width=\"14\" height=\"14\" src=\""
                   + iurl2
                   + "\" border=\"0\"  hspace=\"0\" vspace=\"0\" alt=\"Remove sticker\"></a></td></table></tr><tr><td>"+txt+"</td></tr></table>";
       }
       s += "<hr>";
	return s;
}
 
開發者ID:ser316asu,項目名稱:SER316-Ingolstadt,代碼行數:39,代碼來源:AgendaGenerator.java

示例9: getDescription

import nu.xom.Element; //導入方法依賴的package包/類
public String getDescription() {
   	Element thisElement = _element.getFirstChildElement("description");
   	if (thisElement == null) {
   		return null;
   	}
   	else {
      		return thisElement.getValue();
   	}
}
 
開發者ID:ser316asu,項目名稱:Wilmersdorf_SER316,代碼行數:10,代碼來源:TimeLogImpl.java

示例10: generateStickers

import nu.xom.Element; //導入方法依賴的package包/類
static String generateStickers(CalendarDate date) {
	String iurl =
			net
			.sf
			.memoranda
			.ui
			.AppFrame
			.class
			.getResource("resources/agenda/addsticker.gif")
			.toExternalForm();
	String iurl2 =
			net
			.sf
			.memoranda
			.ui
			.AppFrame
			.class
			.getResource("resources/agenda/removesticker.gif")
			.toExternalForm();
	 String s = "<hr><hr><table border=\"0\" cellpadding=\"0\" width=\"100%\"><tr><td><a href=\"memoranda:importstickers\"><b>"+Local.getString("Import annotation")+"</b></a></td><td><a href=\"memoranda:exportstickerst\"><b>"+Local.getString("Export annotation as .txt")+"</b></a><td><a href=\"memoranda:exportstickersh\"><b>"+Local.getString("Export annotation as .html")+"</b></a></td></tr></table>"
			 +   "<table border=\"0\" cellpadding=\"0\" width=\"100%\"><tr><td><a href=\"memoranda:addsticker\"><img align=\"left\" width=\"22\" height=\"22\" src=\""				
			 + iurl
			+ "\" border=\"0\"  hspace=\"0\" vspace=\"0\" alt=\"New sticker\"></a></td><td width=\"100%\"><a href=\"memoranda:addsticker\"><b>&nbsp;"
			+Local.getString("Add sticker")+"</b></a></td></tr></table>";
	PriorityQueue pQ = sortStickers();
	while(!pQ.Vacia()){
	Element el = pQ.extraer();
	String id = el.getAttributeValue("id");
	String txt = el.getValue();
           s += "\n<table border=\"0\" cellpadding=\"0\" width=\"100%\"><table width=\"100%\"><tr bgcolor=\"#E0E0E0\"><td><a href=\"memoranda:editsticker#"+id+"\">"+Local.getString("EDIT")+"</a></td><td width=\"70%\"><a href=\"memoranda:expandsticker#"+id+"\">"+Local.getString("OPEN IN A NEW WINDOW")+"</></td><td align=\"right\">" +
                   "&nbsp;" + // without this removesticker link takes klicks from whole cell
                     "<a href=\"memoranda:removesticker#"+id+"\"><img align=\"left\" width=\"14\" height=\"14\" src=\""
                   + iurl2
                   + "\" border=\"0\"  hspace=\"0\" vspace=\"0\" alt=\"Remove sticker\"></a></td></table></tr><tr><td>"+txt+"</td></tr></table>";
       }
       s += "<hr>";
	return s;
}
 
開發者ID:ser316asu,項目名稱:Wilmersdorf_SER316,代碼行數:39,代碼來源:AgendaGenerator.java


注:本文中的nu.xom.Element.getValue方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。