Commit c3f0b056 authored by Dumoulin Nicolas's avatar Dumoulin Nicolas
Browse files

actions removed (unused for instance)

parent 074c466d
......@@ -17,8 +17,6 @@
package fr.cemagref.ohoui.ui.swing.panels;
import fr.cemagref.ohoui.structure.OhObject;
import java.util.ArrayList;
import java.util.Collection;
/**
* Defines common behavior for editors for an object.
......@@ -31,12 +29,16 @@ public abstract class AbstractOhEditor<T, P> {
protected OhObject<T> object;
protected P panel;
protected Collection<OUIPanelAndAction> links = new ArrayList<OUIPanelAndAction>();
public AbstractOhEditor(OhObject object) {
this.object = object;
}
/**
* Gets the object edited. This method doesn't achieve any update relative
* to the edited value.
* @return
*/
public OhObject<T> getOhObject() {
return object;
}
......@@ -55,14 +57,6 @@ public abstract class AbstractOhEditor<T, P> {
return panel;
}
public void addLink(AbstractOhEditor<?, P> target, String action) {
links.add(new OUIPanelAndAction<P>(target, action));
}
public Collection<OUIPanelAndAction> getLinks() {
return links;
}
public final void setEnabled(boolean enabled) {
enableComponent(enabled);
// recursively enable/disable container and its enclosing container and
......@@ -76,14 +70,4 @@ public abstract class AbstractOhEditor<T, P> {
protected abstract void recursivelyEnableComponent(P container, boolean enabled);
public static class OUIPanelAndAction<C> {
public AbstractOhEditor<?, C> link;
public String action;
public OUIPanelAndAction(AbstractOhEditor<?, C> ouipanel, String action) {
this.action = action;
this.link = ouipanel;
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment