Change-Id: I380d6afbc6b30d817ea6cca3d6b4634ab12522b1tags/7.1.0.beta1
* | * | ||||
*/ | */ | ||||
protected void onError() { | protected void onError() { | ||||
VConsole.error("Push connection using " | |||||
+ getConfig().getTransport() | |||||
VConsole.error("Push connection using " + getConfig().getTransport() | |||||
+ " failed!"); | + " failed!"); | ||||
} | } | ||||
&& elementUnderMouse == lastMouseDownTarget) { | && elementUnderMouse == lastMouseDownTarget) { | ||||
mouseUpPreviewMatched = true; | mouseUpPreviewMatched = true; | ||||
} else { | } else { | ||||
VConsole.log("Ignoring mouseup from " | |||||
+ elementUnderMouse + " when mousedown was on " | |||||
+ lastMouseDownTarget); | |||||
VConsole.log("Ignoring mouseup from " + elementUnderMouse | |||||
+ " when mousedown was on " + lastMouseDownTarget); | |||||
} | } | ||||
} | } | ||||
} | } |
package com.vaadin.client.ui; | package com.vaadin.client.ui; | ||||
import com.google.gwt.core.client.Scheduler; | |||||
import com.google.gwt.core.client.Scheduler.ScheduledCommand; | |||||
import com.google.gwt.dom.client.Document; | |||||
import com.google.gwt.dom.client.Element; | import com.google.gwt.dom.client.Element; | ||||
import com.google.gwt.dom.client.NativeEvent; | |||||
import com.google.gwt.event.dom.client.ClickEvent; | import com.google.gwt.event.dom.client.ClickEvent; | ||||
import com.google.gwt.event.dom.client.ClickHandler; | import com.google.gwt.event.dom.client.ClickHandler; | ||||
import com.google.gwt.event.dom.client.MouseEvent; | |||||
import com.google.gwt.user.client.DOM; | import com.google.gwt.user.client.DOM; | ||||
import com.google.gwt.user.client.Event; | import com.google.gwt.user.client.Event; | ||||
import com.google.gwt.user.client.ui.Button; | import com.google.gwt.user.client.ui.Button; | ||||
import com.vaadin.client.BrowserInfo; | import com.vaadin.client.BrowserInfo; | ||||
import com.vaadin.client.MouseEventDetailsBuilder; | import com.vaadin.client.MouseEventDetailsBuilder; | ||||
import com.vaadin.client.Util; | import com.vaadin.client.Util; | ||||
import com.vaadin.client.VConsole; | |||||
import com.vaadin.shared.MouseEventDetails; | import com.vaadin.shared.MouseEventDetails; | ||||
import com.vaadin.shared.ui.button.ButtonServerRpc; | import com.vaadin.shared.ui.button.ButtonServerRpc; | ||||
} | } | ||||
} | } | ||||
public void updateMaximizeRestoreClassName(boolean visible, WindowMode windowMode) { | |||||
public void updateMaximizeRestoreClassName(boolean visible, | |||||
WindowMode windowMode) { | |||||
String className; | String className; | ||||
if (windowMode == WindowMode.MAXIMIZED) { | if (windowMode == WindowMode.MAXIMIZED) { | ||||
className = CLASSNAME + "-restorebox"; | className = CLASSNAME + "-restorebox"; |
import java.text.SimpleDateFormat; | import java.text.SimpleDateFormat; | ||||
import java.util.Calendar; | import java.util.Calendar; | ||||
import java.util.Collection; | import java.util.Collection; | ||||
import java.util.Collections; | |||||
import java.util.Date; | import java.util.Date; | ||||
import java.util.HashMap; | import java.util.HashMap; | ||||
import java.util.List; | |||||
import java.util.Locale; | import java.util.Locale; | ||||
import java.util.Map; | import java.util.Map; | ||||
import java.util.TimeZone; | import java.util.TimeZone; |
private Page page = new Page(this); | private Page page = new Page(this); | ||||
private LoadingIndicatorConfiguration loadingIndicatorConfiguration = new LoadingIndicatorConfigurationImpl(this); | |||||
private LoadingIndicatorConfiguration loadingIndicatorConfiguration = new LoadingIndicatorConfigurationImpl( | |||||
this); | |||||
/** | /** | ||||
* Scroll Y position. | * Scroll Y position. | ||||
private boolean closing = false; | private boolean closing = false; | ||||
private TooltipConfiguration tooltipConfiguration = new TooltipConfigurationImpl(this); | |||||
private TooltipConfiguration tooltipConfiguration = new TooltipConfigurationImpl( | |||||
this); | |||||
/** | /** | ||||
* Creates a new empty UI without a caption. The content of the UI must be | * Creates a new empty UI without a caption. The content of the UI must be |
*/ | */ | ||||
package com.vaadin.shared.ui.datefield; | package com.vaadin.shared.ui.datefield; | ||||
public class InlineDateFieldState extends TextualDateFieldState { | public class InlineDateFieldState extends TextualDateFieldState { | ||||
{ | { | ||||
primaryStyleName = "v-inline-datefield"; | primaryStyleName = "v-inline-datefield"; |
} | } | ||||
InputSource source = null; | InputSource source = null; | ||||
// Can we find the scss from the file system? | // Can we find the scss from the file system? | ||||
ScssStylesheetResolver resolver = new FilesystemResolver(); | ScssStylesheetResolver resolver = new FilesystemResolver(); | ||||
source = resolver.resolve(identifier); | source = resolver.resolve(identifier); |
}); | }); | ||||
secondDelay = createIntegerTextField("Second delay (ms)", | secondDelay = createIntegerTextField("Second delay (ms)", | ||||
getState().loadingIndicatorConfiguration.secondDelay); | getState().loadingIndicatorConfiguration.secondDelay); | ||||
secondDelay | |||||
.addValueChangeListener(new Property.ValueChangeListener() { | |||||
@Override | |||||
public void valueChange(ValueChangeEvent event) { | |||||
getLoadingIndicatorConfiguration().setSecondDelay( | |||||
(Integer) secondDelay.getConvertedValue()); | |||||
} | |||||
}); | |||||
secondDelay.addValueChangeListener(new Property.ValueChangeListener() { | |||||
@Override | |||||
public void valueChange(ValueChangeEvent event) { | |||||
getLoadingIndicatorConfiguration().setSecondDelay( | |||||
(Integer) secondDelay.getConvertedValue()); | |||||
} | |||||
}); | |||||
thirdDelay = createIntegerTextField("Third delay (ms)", | thirdDelay = createIntegerTextField("Third delay (ms)", | ||||
getState().loadingIndicatorConfiguration.thirdDelay); | getState().loadingIndicatorConfiguration.thirdDelay); | ||||
thirdDelay | |||||
.addValueChangeListener(new Property.ValueChangeListener() { | |||||
@Override | |||||
public void valueChange(ValueChangeEvent event) { | |||||
getLoadingIndicatorConfiguration().setThirdDelay( | |||||
(Integer) thirdDelay.getConvertedValue()); | |||||
} | |||||
}); | |||||
thirdDelay.addValueChangeListener(new Property.ValueChangeListener() { | |||||
@Override | |||||
public void valueChange(ValueChangeEvent event) { | |||||
getLoadingIndicatorConfiguration().setThirdDelay( | |||||
(Integer) thirdDelay.getConvertedValue()); | |||||
} | |||||
}); | |||||
getLayout() | |||||
.addComponents(firstDelay, secondDelay, thirdDelay); | |||||
getLayout().addComponents(firstDelay, secondDelay, thirdDelay); | |||||
HorizontalLayout hl = new HorizontalLayout(); | HorizontalLayout hl = new HorizontalLayout(); | ||||
hl.setMargin(true); | hl.setMargin(true); |
maxWidth.addValueChangeListener(new Property.ValueChangeListener() { | maxWidth.addValueChangeListener(new Property.ValueChangeListener() { | ||||
@Override | @Override | ||||
public void valueChange(ValueChangeEvent event) { | public void valueChange(ValueChangeEvent event) { | ||||
getTooltipConfiguration() | |||||
.setMaxWidth((Integer) maxWidth.getConvertedValue()); | |||||
getTooltipConfiguration().setMaxWidth( | |||||
(Integer) maxWidth.getConvertedValue()); | |||||
} | } | ||||
}); | }); | ||||
openDelay = createIntegerTextField("Open delay", | openDelay = createIntegerTextField("Open delay", |
package com.vaadin.tests.layouts; | package com.vaadin.tests.layouts; | ||||
import com.vaadin.annotations.Theme; | |||||
import com.vaadin.server.VaadinRequest; | import com.vaadin.server.VaadinRequest; | ||||
import com.vaadin.ui.Alignment; | import com.vaadin.ui.Alignment; | ||||
import com.vaadin.ui.HorizontalLayout; | import com.vaadin.ui.HorizontalLayout; |
package com.vaadin.tests.minitutorials.broadcastingmessages; | |||||
/* | /* | ||||
* Copyright 2000-2013 Vaadin Ltd. | * Copyright 2000-2013 Vaadin Ltd. | ||||
* | * | ||||
* the License. | * the License. | ||||
*/ | */ | ||||
package com.vaadin.tests.minitutorials.broadcastingmessages; | |||||
import java.util.ArrayList; | import java.util.ArrayList; | ||||
import java.util.List; | import java.util.List; |
package com.vaadin.tests.minitutorials.broadcastingmessages; | package com.vaadin.tests.minitutorials.broadcastingmessages; | ||||
import com.vaadin.server.VaadinRequest; | import com.vaadin.server.VaadinRequest; | ||||
import com.vaadin.tests.minitutorials.broadcastingmessages.Broadcaster.BroadcastListener; | import com.vaadin.tests.minitutorials.broadcastingmessages.Broadcaster.BroadcastListener; | ||||
import com.vaadin.ui.Button; | import com.vaadin.ui.Button; |
public void start(long testDuration, int payloadSize) { | public void start(long testDuration, int payloadSize) { | ||||
testStart = System.currentTimeMillis(); | testStart = System.currentTimeMillis(); | ||||
testEnd = testStart + testDuration; | testEnd = testStart + testDuration; | ||||
getRpcProxy(RoundTripTesterRpc.class).ping(1, generatePayload(payloadSize)); | |||||
getRpcProxy(RoundTripTesterRpc.class).ping(1, | |||||
generatePayload(payloadSize)); | |||||
} | } | ||||
private String generatePayload(int payloadSize) { | private String generatePayload(int payloadSize) { |