* @since 5.4
* @deprecated Moved to com.vaadin.client.componentlocator.ComponentLocator
*/
-public class ComponentLocator extends com.vaadin.client.componentlocator.ComponentLocator {
+public class ComponentLocator extends
+ com.vaadin.client.componentlocator.ComponentLocator {
/**
* Construct a ComponentLocator for the given ApplicationConnection.
*
- * @param client ApplicationConnection instance for the application.
+ * @param client
+ * ApplicationConnection instance for the application.
*/
public ComponentLocator(ApplicationConnection client) {
super(client);
private static final String SUBPART_FOOTER = "footer";
private static final String SUBPART_ROW = "row";
private static final String SUBPART_COL = "col";
- /** Matches header[ix] - used for extracting the index of the targeted header cell */
+ /**
+ * Matches header[ix] - used for extracting the index of the targeted header
+ * cell
+ */
private static final RegExp SUBPART_HEADER_REGEXP = RegExp
.compile(SUBPART_HEADER + "\\[(\\d+)\\]");
- /** Matches footer[ix] - used for extracting the index of the targeted footer cell */
+ /**
+ * Matches footer[ix] - used for extracting the index of the targeted footer
+ * cell
+ */
private static final RegExp SUBPART_FOOTER_REGEXP = RegExp
.compile(SUBPART_FOOTER + "\\[(\\d+)\\]");
/** Matches row[ix] - used for extracting the index of the targeted row */
+ "\\[(\\d+)]");
/** Matches col[ix] - used for extracting the index of the targeted column */
private static final RegExp SUBPART_ROW_COL_REGEXP = RegExp
- .compile(SUBPART_ROW + "\\[(\\d+)\\]/" + SUBPART_COL + "\\[(\\d+)\\]");
+ .compile(SUBPART_ROW + "\\[(\\d+)\\]/" + SUBPART_COL
+ + "\\[(\\d+)\\]");
@Override
public Element getSubPartElement(String subPart) {
+ Util.escapeAttribute(client
.translateVaadinUri(moreItemUIDL
.getStringAttribute("icon")))
- + "\" class=\"" + ImageIcon.CLASSNAME + "\" alt=\"\" />");
+ + "\" class=\"" + ImageIcon.CLASSNAME
+ + "\" alt=\"\" />");
}
String moreItemText = moreItemUIDL.getStringAttribute("text");
}
}
- private static abstract class BaseItemAddOrRemoveEvent extends
- EventObject implements Serializable {
+ private static abstract class BaseItemAddOrRemoveEvent extends EventObject
+ implements Serializable {
protected Object itemId;
protected int index;
protected int count;
* of added items.
* </p>
*/
- protected static class BaseItemAddEvent extends
- BaseItemAddOrRemoveEvent implements
- Container.Indexed.ItemAddEvent {
+ protected static class BaseItemAddEvent extends BaseItemAddOrRemoveEvent
+ implements Container.Indexed.ItemAddEvent {
public BaseItemAddEvent(Container source, Object itemId, int index,
int count) {
* number of removed items.
* </p>
*/
- protected static class BaseItemRemoveEvent extends
- BaseItemAddOrRemoveEvent implements
- Container.Indexed.ItemRemoveEvent {
+ protected static class BaseItemRemoveEvent extends BaseItemAddOrRemoveEvent
+ implements Container.Indexed.ItemRemoveEvent {
- public BaseItemRemoveEvent(Container source, Object itemId,
- int index, int count) {
+ public BaseItemRemoveEvent(Container source, Object itemId, int index,
+ int count) {
super(source, itemId, index, count);
}
*/
protected void fireItemsAdded(int firstPosition, ITEMIDTYPE firstItemId,
int numberOfItems) {
- BaseItemAddEvent addEvent = new BaseItemAddEvent(this,
- firstItemId, firstPosition, numberOfItems);
+ BaseItemAddEvent addEvent = new BaseItemAddEvent(this, firstItemId,
+ firstPosition, numberOfItems);
fireItemSetChange(addEvent);
}
uiConnectorTracker.setWritingResponse(true);
try {
- writer.write("\"" + ApplicationConstants.SERVER_SYNC_ID
- + "\": " + uiConnectorTracker.getCurrentSyncId() + ", ");
+ writer.write("\"" + ApplicationConstants.SERVER_SYNC_ID + "\": "
+ + uiConnectorTracker.getCurrentSyncId() + ", ");
writer.write("\"changes\" : ");
public void testValueConversion() {
Date testDate = new Date(100, 0, 1);
long time = testDate.getTime();
- assertEquals(testDate, converter.convertToModel(new java.sql.Date(time),
- java.sql.Date.class, Locale.ENGLISH));
+ assertEquals(testDate, converter.convertToModel(
+ new java.sql.Date(time), java.sql.Date.class, Locale.ENGLISH));
}
}
Assert.assertEquals(2, causes.length);
}
+
public void testBeanValidationNotAddedTwice() {
// See ticket #11045
BeanFieldGroup<BeanToValidate> fieldGroup = new BeanFieldGroup<BeanToValidate>(
private final String caption;
private final boolean hideTime;
- public GenericEvent(Date start, Date end, String caption, boolean hideTime) {
+ public GenericEvent(Date start, Date end, String caption,
+ boolean hideTime) {
this.start = start;
this.end = end;
this.caption = caption;
}
- CalendarEvent shortEventHidden = new GenericEvent(makeDate(2013, 1, 2, 8, 0), makeDate(2013, 1, 2, 8, 30), "Short event", true);
- CalendarEvent longEventHidden = new GenericEvent(makeDate(2013, 1, 2, 10, 0), makeDate(2013, 1, 2, 12, 0), "Long event", true);
- CalendarEvent shortEvent = new GenericEvent(makeDate(2013, 1, 3, 8, 0), makeDate(2013, 1, 3, 8, 30), "Short event", false);
- CalendarEvent longEvent = new GenericEvent(makeDate(2013, 1, 3, 10, 0), makeDate(2013, 1, 3, 12, 0), "Long event", false);
+ CalendarEvent shortEventHidden = new GenericEvent(
+ makeDate(2013, 1, 2, 8, 0), makeDate(2013, 1, 2, 8, 30),
+ "Short event", true);
+ CalendarEvent longEventHidden = new GenericEvent(
+ makeDate(2013, 1, 2, 10, 0), makeDate(2013, 1, 2, 12, 0),
+ "Long event", true);
+ CalendarEvent shortEvent = new GenericEvent(makeDate(2013, 1, 3, 8, 0),
+ makeDate(2013, 1, 3, 8, 30), "Short event", false);
+ CalendarEvent longEvent = new GenericEvent(makeDate(2013, 1, 3, 10, 0),
+ makeDate(2013, 1, 3, 12, 0), "Long event", false);
@Override
protected void setup(VaadinRequest request) {
juc.set(year, month, day, hour, minute);
return juc.getTime();
}
+
private Date makeDate(int year, int month, int day) {
java.util.Calendar juc = java.util.Calendar.getInstance();
juc.set(year, month, day);
@Test
public void runTests() {
openTestURL();
- Assert.assertEquals("1. All tests run",
- vaadinElementById("Log_row_0").getText());
+ Assert.assertEquals("1. All tests run", vaadinElementById("Log_row_0")
+ .getText());
}
}
\ No newline at end of file
|| nwInterface.isVirtual()) {
continue;
}
- Enumeration<InetAddress> addresses = nwInterface.getInetAddresses();
+ Enumeration<InetAddress> addresses = nwInterface
+ .getInetAddresses();
while (addresses.hasMoreElements()) {
InetAddress address = addresses.nextElement();
if (address.isLoopbackAddress()) {