1 23 24 package org.apache.slide.event; 25 26 import org.apache.slide.util.Configuration; 27 28 31 32 public abstract class AbstractEventMethod { 33 private static char SEPARATOR = ':'; 34 private String group, name, id; 35 private boolean enabled = Configuration.fireEvents(); 36 37 protected AbstractEventMethod(String group, String name) { 38 this.group = group; 39 this.name = name; 40 this.id = group + SEPARATOR + name; 41 } 42 43 public boolean isEnabled() { 44 return enabled; 45 } 46 47 public void setEnabled(boolean enabled) { 48 this.enabled = enabled; 49 } 50 51 public String getName() { 52 return name; 53 } 54 55 public String getGroup() { 56 return group; 57 } 58 59 public String getId() { 60 return id; 61 } 62 } | Popular Tags |