public void initializeDefaults() { unmarshalPlugins(); getChbActivar() .setSelected(((Extension) Launcher.getExtension(extension.getClassName())).getActive()); getJTextField().setText(String.valueOf(extension.getPriority())); getJTextArea() .setText( format( ((Extension) Launcher.getExtension(extension.getClassName())).getDescription(), 40)); }
public void initializeValues() { getChbActivar() .setSelected(((Extension) Launcher.getExtension(extension.getClassName())).getActive()); getJTextField().setText(String.valueOf(extension.getPriority())); getJTextArea() .setText( format( ((Extension) Launcher.getExtension(extension.getClassName())).getDescription(), 40)); chkSelected = getChbActivar().isSelected(); txtPriority = extension.getPriority(); }
public void storeValues() throws StoreException { int pri; try { pri = Integer.parseInt(getJTextField().getText()); } catch (Exception e) { throw new StoreException(PluginServices.getText(this, "invalid_priority_value"), e); } extension.setActive(chbActivar.isSelected()); extension.setPriority(pri); // Se escribe el config de los plugins marshalPlugins(); }
public String getTitle() { return extension.getClassName(); }