Exemplo n.º 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"));
 }
Exemplo n.º 2
0
 @Override
 public boolean hasValidData() {
   boolean hasValidData = true;
   hasValidData = hasValidData && moduleFromPanelComponent.hasValidData();
   hasValidData = hasValidData && enabledPanelComponent.hasValidData();
   hasValidData = hasValidData && descriptionPanelComponent.hasValidData();
   return hasValidData;
 }
Exemplo n.º 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;
  }