blob: f57b2c0d67cf1d12df72a51b1333a1a2511c39bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
/*
@VaadinApache2LicenseForJavaFiles@
*/
package com.vaadin.shared.ui.absolutelayout;
import java.util.HashMap;
import java.util.Map;
import com.vaadin.shared.Connector;
import com.vaadin.shared.ui.AbstractLayoutState;
public class AbsoluteLayoutState extends AbstractLayoutState {
// Maps each component to a position
private Map<String, String> connectorToCssPosition = new HashMap<String, String>();
public String getConnectorPosition(Connector connector) {
return connectorToCssPosition.get(connector.getConnectorId());
}
public Map<String, String> getConnectorToCssPosition() {
return connectorToCssPosition;
}
public void setConnectorToCssPosition(
Map<String, String> componentToCssPosition) {
connectorToCssPosition = componentToCssPosition;
}
}
|