本文整理匯總了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();
}
}
示例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> "
+ 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\">" + " " + // 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;
}
示例3: getDescription
import nu.xom.Element; //導入方法依賴的package包/類
public String getDescription() {
Element thisElement = _element.getFirstChildElement("description");
if (thisElement == null) {
return null;
}
else {
return thisElement.getValue();
}
}
示例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;
}
示例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();
}
}
示例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> "
+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\">" +
" " + // 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;
}
示例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> "
+ 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\">" +
" " + // 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;
}
示例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> "
+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\">" +
" " + // 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;
}
示例9: getDescription
import nu.xom.Element; //導入方法依賴的package包/類
public String getDescription() {
Element thisElement = _element.getFirstChildElement("description");
if (thisElement == null) {
return null;
}
else {
return thisElement.getValue();
}
}
示例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> "
+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\">" +
" " + // 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;
}