本文整理了Java中org.openide.nodes.Node.setValue()
方法的一些代码示例,展示了Node.setValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.setValue()
方法的具体详情如下:
包路径:org.openide.nodes.Node
类名称:Node
方法名:setValue
暂无
代码示例来源:origin: org.netbeans.api/org-openide-nodes
@Override
public void setValue(String attributeName, Object value) {
if (delegating(DELEGATE_SET_VALUE)) {
original.setValue(attributeName, value);
} else {
super.setValue(attributeName, value);
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
public void setValue(String attributeName, Object value) {
if (delegating (DELEGATE_SET_VALUE)) {
original.setValue (attributeName, value);
} else {
super.setValue (attributeName, value);
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
public void setValue(String attributeName, Object value) {
if (delegating (DELEGATE_SET_VALUE)) {
original.setValue (attributeName, value);
} else {
super.setValue (attributeName, value);
}
}
代码示例来源:origin: stackoverflow.com
public void pushLeft(Thing thing) {
Node newNode = new Node();
newNode.setValue(thing); //or just newNode.value = thing;
if(this.isEmpty())
{
this.first = this.last = newNode;
this.n=1;
}
else
{
this.first.previous = newNode;
newNode.next = this.first;
this.first = newNode;
this.n++;
}
}
代码示例来源:origin: stackoverflow.com
Node n1 = new Node();
Node n2 = new Node();
n1.setValue(1);
n2.setValue(2);
n1.setRight(n2);
代码示例来源:origin: stackoverflow.com
Node node = new Node();
node.setId( "id-1" );
node.setValue( "value-1" );
JAXBContext jc = JAXBContext.newInstance( Node.class );
Marshaller m = jc.createMarshaller();
m.marshal( wrap( "", "myvalue", node ), System.out );
代码示例来源:origin: stackoverflow.com
public void add(int value) {
if(first == null) {
first = new Node(value, null);
first.setNext(first);
} else {
// Remember the current first
Node oldFirst = first;
// Make a copy of the first node the "new first"
first = new Node(first.getValue(), first.getNext());
// Copy the new value into the "old first",
// and make its next point to the "new first"
oldFirst.setValue(value);
oldFirst.setNext(first);
}
System.out.println("Added: " + value);
size++;
}
内容来源于网络,如有侵权,请联系作者删除!