net.sourceforge.javydreamercsw.client.ui.nodes.RiskControlNode Maven / Gradle / Ivy
package net.sourceforge.javydreamercsw.client.ui.nodes;
import com.validation.manager.core.db.RiskControl;
import com.validation.manager.core.server.core.RiskControlServer;
import java.beans.IntrospectionException;
import org.openide.util.lookup.InstanceContent;
/**
*
* @author Javier A. Ortiz Bultron
*/
class RiskControlNode extends AbstractVMBeanNode {
public RiskControlNode(RiskControl rs) throws IntrospectionException {
super(rs,
null//TODO Children.create(new SubProjectChildFactory(project), true),
, new InstanceContent());
setIconBaseWithExtension("com/validation/manager/resources/icons/Papermart/Folder.png");
}
@Override
public String getName() {
return "" + getLookup().lookup(RiskControl.class).getRiskControlPK().getId();
}
@Override
public void refreshMyself() {
RiskControlServer rs = new RiskControlServer(getLookup().lookup(RiskControl.class).getRiskControlPK());
rs.update((RiskControl) getBean(), rs.getEntity());
}
}