1 2 23 24 package net.fenyo.gnetwatch.targets; 25 26 import net.fenyo.gnetwatch.*; 27 import net.fenyo.gnetwatch.GUI.*; 28 import net.fenyo.gnetwatch.actions.*; 29 import net.fenyo.gnetwatch.data.*; 30 31 import org.apache.commons.logging.Log; 32 import org.apache.commons.logging.LogFactory; 33 34 39 40 public class TargetInterface extends Target { 41 private static Log log = LogFactory.getLog(TargetInterface.class); 42 43 private String interface_name; 45 51 public TargetInterface(final String name, final String interface_name) throws AlgorithmException { 53 super(name); 54 this.interface_name = interface_name; 55 setItem(interface_name); 56 } 57 58 63 protected final void initialize(final GUI gui) { 65 super.initialize(gui); 66 if (gui != null) setImageInterface(); 67 } 68 69 protected String getInterfaceName() { 70 return interface_name; 71 } 72 73 78 public boolean canManageThisChild(final VisualElement visual_element) { 79 if (Target.class.isInstance(visual_element)) return true; 80 return false; 81 } 82 83 } 86 | Popular Tags |