/** * Finds the actions, and initialises them with the model provided * @param model * @return */ public List<ScuflModelActionSPI>getScuflModelActions(ScuflModel model) { List<ScuflModelActionSPI> actions=findComponents(); for (ScuflModelActionSPI action : actions) { action.setModel(model); } return actions; }
private void cancelButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cancelButtonActionPerformed this.password=null; this.username=null; this.setVisible(false); }//GEN-LAST:event_cancelButtonActionPerformed
/** * Get all registered ProcessorActionSPI instances */ public List getAllActions() { return instance().findComponents(); }
public void onDispose() { AbstractProcessorAction.this.frameClosing(); } public ImageIcon getIcon() {
public String getName() { try { return AbstractProcessorAction.this.getDescription(); } catch(NullPointerException ex) { return ""; } } }
/** * Return a static instance of the registry loaded with all available * instances of the ProcessorActionSPI */ public static synchronized ProcessorActionRegistry instance() { if (instance == null) { instance = new ProcessorActionRegistry(); } return instance; }
public void onDispose() { action.frameClosing(); } }