本文整理了Java中com.lowagie.text.Phrase.isEmpty()
方法的一些代码示例,展示了Phrase.isEmpty()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Phrase.isEmpty()
方法的具体详情如下:
包路径:com.lowagie.text.Phrase
类名称:Phrase
方法名:isEmpty
[英]Checks is this Phrase
contains no or 1 empty Chunk
.
[中]检查是否该Phrase
不包含或包含1个空Chunk
。
代码示例来源:origin: es.gob.afirma/afirma-crypto-pdf-itext
/**
* Checks if the <CODE>Cell</CODE> is empty.
*
* @return <CODE>false</CODE> if there are non-empty <CODE>Element</CODE>s in the <CODE>Cell</CODE>.
*/
public boolean isEmpty() {
switch(size()) {
case 0:
return true;
case 1:
Element element = (Element) arrayList.get(0);
switch (element.type()) {
case Element.CHUNK:
return ((Chunk) element).isEmpty();
case Element.ANCHOR:
case Element.PHRASE:
case Element.PARAGRAPH:
return ((Phrase) element).isEmpty();
case Element.LIST:
return ((List) element).isEmpty();
}
return false;
default:
return false;
}
}
代码示例来源:origin: com.github.librepdf/openpdf
/**
* Checks if the <CODE>Cell</CODE> is empty.
*
* @return <CODE>false</CODE> if there are non-empty <CODE>Element</CODE>s in the <CODE>Cell</CODE>.
*/
public boolean isEmpty() {
switch(size()) {
case 0:
return true;
case 1:
Element element = (Element) arrayList.get(0);
switch (element.type()) {
case Element.CHUNK:
return ((Chunk) element).isEmpty();
case Element.ANCHOR:
case Element.PHRASE:
case Element.PARAGRAPH:
return ((Phrase) element).isEmpty();
case Element.LIST:
return ((List) element).isEmpty();
}
return false;
default:
return false;
}
}
代码示例来源:origin: fr.opensagres.xdocreport.itext-gae/itext-gae
/**
* Checks if the <CODE>Cell</CODE> is empty.
*
* @return <CODE>false</CODE> if there are non-empty <CODE>Element</CODE>s in the <CODE>Cell</CODE>.
*/
public boolean isEmpty() {
switch(size()) {
case 0:
return true;
case 1:
Element element = (Element) arrayList.get(0);
switch (element.type()) {
case Element.CHUNK:
return ((Chunk) element).isEmpty();
case Element.ANCHOR:
case Element.PHRASE:
case Element.PARAGRAPH:
return ((Phrase) element).isEmpty();
case Element.LIST:
return ((List) element).isEmpty();
}
return false;
default:
return false;
}
}
代码示例来源:origin: es.gob.afirma/afirma-crypto-pdf-itext
setLeading(p.getLeading());
if (p.isEmpty()) return;
arrayList.add(element);
return;
代码示例来源:origin: fr.opensagres.xdocreport.itext-gae/itext-gae
setLeading(p.getLeading());
if (p.isEmpty()) return;
arrayList.add(element);
return;
代码示例来源:origin: com.github.librepdf/openpdf
setLeading(p.getLeading());
if (p.isEmpty()) return;
arrayList.add(element);
return;
内容来源于网络,如有侵权,请联系作者删除!