|
|
@ -43,33 +43,24 @@ public abstract class UIAction implements Action { |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
public final boolean isEnabled() { |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// UIAction is not mutable, this does nothing.
|
|
|
|
// UIAction is not mutable, this does nothing.
|
|
|
|
|
|
|
|
@Override |
|
|
|
public void putValue(String key, Object value) {} |
|
|
|
public void putValue(String key, Object value) {} |
|
|
|
|
|
|
|
|
|
|
|
// UIAction is not mutable, this does nothing.
|
|
|
|
// UIAction is not mutable, this does nothing.
|
|
|
|
public void setEnabled(boolean b) {} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Cover method for <code>isEnabled(null)</code>. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public final boolean isEnabled() { |
|
|
|
|
|
|
|
return accept(null); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Subclasses that need to conditionalize the enabled state should override this. Be aware that |
|
|
|
|
|
|
|
* <code>sender</code> may be null. |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @param sender Widget enabled state is being asked for, may be null. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public boolean accept(Object sender) { |
|
|
|
public void setEnabled(boolean b) {} |
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// UIAction is not mutable, this does nothing.
|
|
|
|
// UIAction is not mutable, this does nothing.
|
|
|
|
|
|
|
|
@Override |
|
|
|
public void addPropertyChangeListener(PropertyChangeListener listener) {} |
|
|
|
public void addPropertyChangeListener(PropertyChangeListener listener) {} |
|
|
|
|
|
|
|
|
|
|
|
// UIAction is not mutable, this does nothing.
|
|
|
|
// UIAction is not mutable, this does nothing.
|
|
|
|
|
|
|
|
@Override |
|
|
|
public void removePropertyChangeListener(PropertyChangeListener listener) {} |
|
|
|
public void removePropertyChangeListener(PropertyChangeListener listener) {} |
|
|
|
} |
|
|
|
} |
|
|
|