public String getOperatorName() { Object value = getValue("operatorName"); if (value instanceof String) { return (String) value; } return null; }
public void setTargetProductNameSuffix(String targetProductNameSuffix) { putValue("targetProductNameSuffix", targetProductNameSuffix); }
protected ModelessDialog createOperatorDialog() { DefaultSingleTargetProductDialog productDialog = new DefaultSingleTargetProductDialog(getOperatorName(), getAppContext(), getDialogTitle(), getHelpId()); if (getTargetProductNameSuffix() != null) { productDialog.setTargetProductNameSuffix(getTargetProductNameSuffix()); } return productDialog; } }
public static DefaultOperatorAction create(Map<String, Object> properties) { DefaultOperatorAction action = new DefaultOperatorAction(); for (Map.Entry<String, Object> entry : properties.entrySet()) { if (KNOWN_KEYS.contains(entry.getKey())) { action.putValue(entry.getKey(), entry.getValue()); } } return action; }
@Override public void actionPerformed(ActionEvent e) { if (dialog == null) { dialog = createOperatorDialog(); } dialog.show(); }
public String getDialogTitle() { Object value = getValue("dialogTitle"); if (value instanceof String) { return (String) value; } return null; }
public void setOperatorName(String operatorName) { putValue("operatorName", operatorName); }
public String getTargetProductNameSuffix() { Object value = getValue("targetProductNameSuffix"); if (value instanceof String) { return (String) value; } return null; }
public void setDialogTitle(String dialogTitle) { putValue("dialogTitle", dialogTitle); }