Example #1
0
 @Override
 public void updateDetails(HashMap<String, Object> ruleDetails) {
   super.updateDetails(ruleDetails);
   moduleFromPanelComponent.update(ruleDetails.get("moduleFromId"));
   enabledPanelComponent.update(ruleDetails.get("enabled"));
   descriptionPanelComponent.update(ruleDetails.get("description"));
 }
Example #2
0
 @Override
 public boolean hasValidData() {
   boolean hasValidData = true;
   hasValidData = hasValidData && moduleFromPanelComponent.hasValidData();
   hasValidData = hasValidData && enabledPanelComponent.hasValidData();
   hasValidData = hasValidData && descriptionPanelComponent.hasValidData();
   return hasValidData;
 }
Example #3
0
  @Override
  public HashMap<String, Object> saveToHashMap() {
    HashMap<String, Object> ruleDetails = super.saveToHashMap();

    ruleDetails.put("moduleFromId", moduleFromPanelComponent.getValue());
    ruleDetails.put("enabled", enabledPanelComponent.getValue());
    ruleDetails.put("description", descriptionPanelComponent.getValue());

    return ruleDetails;
  }