summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/ui/AbstractField.java
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2011-11-24 11:17:37 +0200
committerArtur Signell <artur@vaadin.com>2011-11-24 11:17:37 +0200
commitf3920f9a4b2e914969c6842485efe80a22e02283 (patch)
tree8d3f89af2f7e2d85b29239aadf2eb49aa71c3b41 /src/com/vaadin/ui/AbstractField.java
parente9ee25bc83a9b982ca59a0a256ed9da86ba9af50 (diff)
parentfbe730fa4c7b4a842161bf1576ef9e5591c73966 (diff)
downloadvaadin-framework-f3920f9a4b2e914969c6842485efe80a22e02283.tar.gz
vaadin-framework-f3920f9a4b2e914969c6842485efe80a22e02283.zip
Merge branch 'master' into databinding
Diffstat (limited to 'src/com/vaadin/ui/AbstractField.java')
-rw-r--r--src/com/vaadin/ui/AbstractField.java58
1 files changed, 0 insertions, 58 deletions
diff --git a/src/com/vaadin/ui/AbstractField.java b/src/com/vaadin/ui/AbstractField.java
index 0d819d01c4..71fa32f245 100644
--- a/src/com/vaadin/ui/AbstractField.java
+++ b/src/com/vaadin/ui/AbstractField.java
@@ -18,7 +18,6 @@ import com.vaadin.data.Validatable;
import com.vaadin.data.Validator;
import com.vaadin.data.Validator.InvalidValueException;
import com.vaadin.event.Action;
-import com.vaadin.event.ActionManager;
import com.vaadin.event.ShortcutAction;
import com.vaadin.event.ShortcutListener;
import com.vaadin.terminal.CompositeErrorMessage;
@@ -131,12 +130,6 @@ public abstract class AbstractField<T> extends AbstractComponent implements
*/
private boolean validationVisible = true;
- /**
- * Keeps track of the Actions added to this component; the actual
- * handling/notifying is delegated, usually to the containing window.
- */
- private ActionManager actionManager;
-
private boolean valueWasModifiedByDataSourceDuringCommit;
/* Component basics */
@@ -1133,27 +1126,6 @@ public abstract class AbstractField<T> extends AbstractComponent implements
}
/**
- * Notifies the component that it is connected to an application.
- *
- * @see com.vaadin.ui.Component#attach()
- */
- @Override
- public void attach() {
- super.attach();
- if (actionManager != null) {
- actionManager.setViewer(getWindow());
- }
- }
-
- @Override
- public void detach() {
- super.detach();
- if (actionManager != null) {
- actionManager.setViewer((Window) null);
- }
- }
-
- /**
* Is this field required. Required fields must filled by the user.
*
* If the field is required, it is visually indicated in the user interface.
@@ -1266,36 +1238,6 @@ public abstract class AbstractField<T> extends AbstractComponent implements
requestRepaint();
}
- /*
- * Actions
- */
-
- /**
- * Gets the {@link ActionManager} used to manage the
- * {@link ShortcutListener}s added to this {@link Field}.
- *
- * @return the ActionManager in use
- */
- protected ActionManager getActionManager() {
- if (actionManager == null) {
- actionManager = new ActionManager();
- if (getWindow() != null) {
- actionManager.setViewer(getWindow());
- }
- }
- return actionManager;
- }
-
- public void addShortcutListener(ShortcutListener shortcut) {
- getActionManager().addAction(shortcut);
- }
-
- public void removeShortcutListener(ShortcutListener shortcut) {
- if (actionManager != null) {
- actionManager.removeAction(shortcut);
- }
- }
-
/**
* A ready-made {@link ShortcutListener} that focuses the given
* {@link Focusable} (usually a {@link Field}) when the keyboard shortcut is