Modified: pivot/trunk/tests/src/org/apache/pivot/tests/issues/Pivot765.java URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/issues/Pivot765.java?rev=1838293&r1=1838292&r2=1838293&view=diff ============================================================================== --- pivot/trunk/tests/src/org/apache/pivot/tests/issues/Pivot765.java (original) +++ pivot/trunk/tests/src/org/apache/pivot/tests/issues/Pivot765.java Fri Aug 17 22:27:05 2018 @@ -59,8 +59,9 @@ public class Pivot765 implements Applica public void windowOpened(Window windowArgument) { if (!menuPopulated) { Alert.alert( - "Window was opened before the menu was populated." - + "Either previewWindowOpen threw an exception, or it wasn't called before the Window was opened.", + "Window was opened before the menu was populated. " + + "Either previewWindowOpen threw an exception, " + + "or it wasn't called before the Window was opened.", windowArgument); } }
Modified: pivot/trunk/tests/src/org/apache/pivot/tests/issues/Pivot862.java URL: http://svn.apache.org/viewvc/pivot/trunk/tests/src/org/apache/pivot/tests/issues/Pivot862.java?rev=1838293&r1=1838292&r2=1838293&view=diff ============================================================================== --- pivot/trunk/tests/src/org/apache/pivot/tests/issues/Pivot862.java (original) +++ pivot/trunk/tests/src/org/apache/pivot/tests/issues/Pivot862.java Fri Aug 17 22:27:05 2018 @@ -54,13 +54,7 @@ public class Pivot862 implements Applica public void buttonPressed(Button button) { final FileBrowserSheet fileBrowserSheet = new FileBrowserSheet(); - fileBrowserSheet.setMode(FileBrowserSheet.Mode.SAVE_TO); // to - // be - // able - // to - // select - // a - // folder + fileBrowserSheet.setMode(FileBrowserSheet.Mode.SAVE_TO); // to be able to select a folder fileBrowserSheet.open(window, new SheetCloseListener() { @Override public void sheetClosed(Sheet sheet) { @@ -96,17 +90,12 @@ public class Pivot862 implements Applica System.out.println("Now opening a BrowserSheet starting from the previous selected folder: \"" + selectedFolder + "\""); FileBrowserSheet fileBrowserSheet = - // new FileBrowserSheet(FileBrowserSheet.Mode.OPEN, - // selectedFolder); // use this as a workaround ... - new FileBrowserSheet(FileBrowserSheet.Mode.OPEN); // test to see - // the wrong - // behavior + // new FileBrowserSheet(FileBrowserSheet.Mode.OPEN, selectedFolder); // use this as a workaround ... + new FileBrowserSheet(FileBrowserSheet.Mode.OPEN); // test to see the wrong behavior // new FileBrowserSheet(); // test to see the wrong behavior - fileBrowserSheet.setRootFolder(selectedFolder); // ok, but - // doesn't solve - // this issue - // ... - System.out.println("\nNote: the behavior here is right only when using the constructor with two parameters ..." + fileBrowserSheet.setRootFolder(selectedFolder); // ok, but doesn't solve this issue ... + System.out.println( + "\nNote: the behavior here is right only when using the constructor with two parameters ..." + " but in this source it's used one of other constructors.\n"); try { Modified: pivot/trunk/tutorials/src/org/apache/pivot/tutorials/KitchenSink.java URL: http://svn.apache.org/viewvc/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/KitchenSink.java?rev=1838293&r1=1838292&r2=1838293&view=diff ============================================================================== --- pivot/trunk/tutorials/src/org/apache/pivot/tutorials/KitchenSink.java (original) +++ pivot/trunk/tutorials/src/org/apache/pivot/tutorials/KitchenSink.java Fri Aug 17 22:27:05 2018 @@ -740,7 +740,8 @@ public class KitchenSink implements Appl int y, int count) { if (button == Mouse.Button.LEFT) { @SuppressWarnings("unchecked") - List<CustomTableRow> customTableData = (List<CustomTableRow>) TablesRollupStateHandler.this.customTableView.getTableData(); + List<CustomTableRow> customTableData = + (List<CustomTableRow>) TablesRollupStateHandler.this.customTableView.getTableData(); int columnIndex = TablesRollupStateHandler.this.customTableView.getColumnAt(x); if (columnIndex == 0) { Modified: pivot/trunk/tutorials/src/org/apache/pivot/tutorials/explorer/tools/ComponentInspector.java URL: http://svn.apache.org/viewvc/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/explorer/tools/ComponentInspector.java?rev=1838293&r1=1838292&r2=1838293&view=diff ============================================================================== --- pivot/trunk/tutorials/src/org/apache/pivot/tutorials/explorer/tools/ComponentInspector.java (original) +++ pivot/trunk/tutorials/src/org/apache/pivot/tutorials/explorer/tools/ComponentInspector.java Fri Aug 17 22:27:05 2018 @@ -27,7 +27,8 @@ import org.apache.pivot.wtk.Container; public abstract class ComponentInspector extends Container { private Component source = null; - private ComponentInspectorListener.Listeners componentInspectorListeners = new ComponentInspectorListener.Listeners(); + private ComponentInspectorListener.Listeners componentInspectorListeners = + new ComponentInspectorListener.Listeners(); public Component getSource() { return source; Modified: pivot/trunk/tutorials/src/org/apache/pivot/tutorials/webqueries/Expenses.java URL: http://svn.apache.org/viewvc/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/webqueries/Expenses.java?rev=1838293&r1=1838292&r2=1838293&view=diff ============================================================================== --- pivot/trunk/tutorials/src/org/apache/pivot/tutorials/webqueries/Expenses.java (original) +++ pivot/trunk/tutorials/src/org/apache/pivot/tutorials/webqueries/Expenses.java Fri Aug 17 22:27:05 2018 @@ -28,7 +28,7 @@ import org.apache.pivot.wtk.Display; /** * Query servlet tutorial client application. */ -public class Expenses implements Application { +public final class Expenses implements Application { private String hostname = null; private int port = 0; private boolean secure = false; @@ -43,12 +43,13 @@ public class Expenses implements Applica } @Override - public void startup(Display display, Map<String, String> properties) throws Exception { + public void startup(final Display display, final Map<String, String> properties) throws Exception { // Get startup properties URL origin = ApplicationContext.getOrigin(); if (origin == null) { - System.out.println("Warning: Origin null, so for this application to run you have to set the following properties: \n" - + SECURE_KEY + ", " + HOSTNAME_KEY + ", " + PORT_KEY + "\n"); + System.out.println( + "Warning: Origin null, so for this application to run you have to set the following properties:\n" + + SECURE_KEY + ", " + HOSTNAME_KEY + ", " + PORT_KEY + "\n"); System.exit(1); return; // make Eclipse's null checker happy } @@ -79,7 +80,7 @@ public class Expenses implements Applica } @Override - public boolean shutdown(boolean optional) { + public boolean shutdown(final boolean optional) { if (expensesWindow != null) { expensesWindow.close(); } @@ -99,7 +100,7 @@ public class Expenses implements Applica return secure; } - public static void main(String[] args) { + public static void main(final String[] args) { DesktopApplicationContext.main(Expenses.class, args); } Modified: pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraCalendarSkin.java URL: http://svn.apache.org/viewvc/pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraCalendarSkin.java?rev=1838293&r1=1838292&r2=1838293&view=diff ============================================================================== --- pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraCalendarSkin.java (original) +++ pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraCalendarSkin.java Fri Aug 17 22:27:05 2018 @@ -816,7 +816,8 @@ public class TerraCalendarSkin extends C } public final void setSelectionBackgroundColor(String selectionBackgroundColor) { - setSelectionBackgroundColor(GraphicsUtilities.decodeColor(selectionBackgroundColor, "selectionBackgroundColor")); + setSelectionBackgroundColor( + GraphicsUtilities.decodeColor(selectionBackgroundColor, "selectionBackgroundColor")); } public Color getHighlightColor() { @@ -846,7 +847,8 @@ public class TerraCalendarSkin extends C } public final void setHighlightBackgroundColor(String highlightBackgroundColor) { - setHighlightBackgroundColor(GraphicsUtilities.decodeColor(highlightBackgroundColor, "highlightBackgroundColor")); + setHighlightBackgroundColor( + GraphicsUtilities.decodeColor(highlightBackgroundColor, "highlightBackgroundColor")); } public Color getDividerColor() { Modified: pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraColorChooserButtonSkin.java URL: http://svn.apache.org/viewvc/pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraColorChooserButtonSkin.java?rev=1838293&r1=1838292&r2=1838293&view=diff ============================================================================== --- pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraColorChooserButtonSkin.java (original) +++ pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraColorChooserButtonSkin.java Fri Aug 17 22:27:05 2018 @@ -263,8 +263,8 @@ public class TerraColorChooserButtonSkin if (colorChooserButton.isEnabled()) { backgroundColorLocal = this.backgroundColor; - bevelColorLocal = (pressed || (colorChooserPopup.isOpen() && !colorChooserPopup.isClosing())) ? pressedBevelColor - : this.bevelColor; + bevelColorLocal = (pressed || (colorChooserPopup.isOpen() && !colorChooserPopup.isClosing())) + ? pressedBevelColor : this.bevelColor; borderColorLocal = this.borderColor; } else { backgroundColorLocal = disabledBackgroundColor; Modified: pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraExpanderSkin.java URL: http://svn.apache.org/viewvc/pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraExpanderSkin.java?rev=1838293&r1=1838292&r2=1838293&view=diff ============================================================================== --- pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraExpanderSkin.java (original) +++ pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraExpanderSkin.java Fri Aug 17 22:27:05 2018 @@ -559,7 +559,8 @@ public class TerraExpanderSkin extends E } public final void setDisabledShadeButtonColor(String disabledShadeButtonColor) { - setDisabledShadeButtonColor(GraphicsUtilities.decodeColor(disabledShadeButtonColor, "disabledShadeButtonColor")); + setDisabledShadeButtonColor( + GraphicsUtilities.decodeColor(disabledShadeButtonColor, "disabledShadeButtonColor")); } public final void setDisabledShadeButtonColor(int disabledShadeButtonColor) { Modified: pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraFormSkin.java URL: http://svn.apache.org/viewvc/pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraFormSkin.java?rev=1838293&r1=1838292&r2=1838293&view=diff ============================================================================== --- pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraFormSkin.java (original) +++ pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraFormSkin.java Fri Aug 17 22:27:05 2018 @@ -112,7 +112,8 @@ public class TerraFormSkin extends Conta Form form = (Form) getComponent(); Form.SectionSequence sections = form.getSections(); - for (int sectionIndex = 0, sectionCount = sections.getLength(); sectionIndex < sectionCount; sectionIndex++) { + for (int sectionIndex = 0, sectionCount = sections.getLength(); sectionIndex < sectionCount; + sectionIndex++) { Form.Section section = sections.get(sectionIndex); for (int fieldIndex = 0, fieldCount = section.getLength(); fieldIndex < fieldCount; fieldIndex++) { Modified: pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraScrollBarSkin.java URL: http://svn.apache.org/viewvc/pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraScrollBarSkin.java?rev=1838293&r1=1838292&r2=1838293&view=diff ============================================================================== --- pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraScrollBarSkin.java (original) +++ pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraScrollBarSkin.java Fri Aug 17 22:27:05 2018 @@ -935,7 +935,8 @@ public class TerraScrollBarSkin extends public final void setScrollButtonHighlightedBackgroundColor( String scrollButtonHighlightedBackgroundColor) { setScrollButtonHighlightedBackgroundColor( - GraphicsUtilities.decodeColor(scrollButtonHighlightedBackgroundColor, "scrollButtonHighlightedBackgroundColor")); + GraphicsUtilities.decodeColor(scrollButtonHighlightedBackgroundColor, + "scrollButtonHighlightedBackgroundColor")); } public final void setScrollButtonHighlightedBackgroundColor( Modified: pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraSplitPaneSkin.java URL: http://svn.apache.org/viewvc/pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraSplitPaneSkin.java?rev=1838293&r1=1838292&r2=1838293&view=diff ============================================================================== --- pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraSplitPaneSkin.java (original) +++ pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraSplitPaneSkin.java Fri Aug 17 22:27:05 2018 @@ -308,7 +308,8 @@ public class TerraSplitPaneSkin extends Orientation orientation = splitPane.getOrientation(); if (splitPane.getResizeMode() == SplitPane.ResizeMode.PRIMARY_REGION - && ((previousWidth != width && orientation == Orientation.HORIZONTAL) || (previousHeight != height && orientation == Orientation.VERTICAL))) { + && ((previousWidth != width && orientation == Orientation.HORIZONTAL) + || (previousHeight != height && orientation == Orientation.VERTICAL))) { SplitPane.Region primaryRegion = splitPane.getPrimaryRegion(); float splitRatio = splitPane.getSplitRatio(); Modified: pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraSuggestionPopupSkin.java URL: http://svn.apache.org/viewvc/pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraSuggestionPopupSkin.java?rev=1838293&r1=1838292&r2=1838293&view=diff ============================================================================== --- pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraSuggestionPopupSkin.java (original) +++ pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraSuggestionPopupSkin.java Fri Aug 17 22:27:05 2018 @@ -164,8 +164,8 @@ public class TerraSuggestionPopupSkin ex returnFocusToTextInput = false; suggestionPopup.close(true); - FocusTraversalDirection direction = (Keyboard.isPressed(Modifier.SHIFT)) ? FocusTraversalDirection.BACKWARD - : FocusTraversalDirection.FORWARD; + FocusTraversalDirection direction = (Keyboard.isPressed(Modifier.SHIFT)) + ? FocusTraversalDirection.BACKWARD : FocusTraversalDirection.FORWARD; textInput.transferFocus(direction); break; Modified: pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraTabPaneSkin.java URL: http://svn.apache.org/viewvc/pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraTabPaneSkin.java?rev=1838293&r1=1838292&r2=1838293&view=diff ============================================================================== --- pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraTabPaneSkin.java (original) +++ pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraTabPaneSkin.java Fri Aug 17 22:27:05 2018 @@ -1626,11 +1626,11 @@ public class TerraTabPaneSkin extends Ta public void transitionCompleted(Transition transition) { TabPane tabPaneLocal = (TabPane) getComponent(); - SelectionChangeTransition selectionChangeTransitionLocal = (SelectionChangeTransition) transition; + SelectionChangeTransition selChangeTransitionLocal = (SelectionChangeTransition) transition; int selectedIndexLocal; - if (selectionChangeTransitionLocal.expand) { - selectedIndexLocal = selectionChangeTransitionLocal.index; + if (selChangeTransitionLocal.expand) { + selectedIndexLocal = selChangeTransitionLocal.index; } else { selectedIndexLocal = -1; } Modified: pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraTreeViewSkin.java URL: http://svn.apache.org/viewvc/pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraTreeViewSkin.java?rev=1838293&r1=1838292&r2=1838293&view=diff ============================================================================== --- pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraTreeViewSkin.java (original) +++ pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraTreeViewSkin.java Fri Aug 17 22:27:05 2018 @@ -883,7 +883,8 @@ public class TerraTreeViewSkin extends C } public void setSelectionBackgroundColor(String selectionBackgroundColor) { - setSelectionBackgroundColor(GraphicsUtilities.decodeColor(selectionBackgroundColor, "selectionBackgroundColor")); + setSelectionBackgroundColor( + GraphicsUtilities.decodeColor(selectionBackgroundColor, "selectionBackgroundColor")); } public final void setSelectionBackgroundColor(int selectionBackgroundColor) { @@ -903,7 +904,8 @@ public class TerraTreeViewSkin extends C } public void setInactiveSelectionColor(String inactiveSelectionColor) { - setInactiveSelectionColor(GraphicsUtilities.decodeColor(inactiveSelectionColor, "inactiveSelectionColor")); + setInactiveSelectionColor( + GraphicsUtilities.decodeColor(inactiveSelectionColor, "inactiveSelectionColor")); } public final void setInactiveSelectionColor(int inactiveSelectionColor) { @@ -964,7 +966,8 @@ public class TerraTreeViewSkin extends C } public void setHighlightBackgroundColor(String highlightBackgroundColor) { - setHighlightBackgroundColor(GraphicsUtilities.decodeColor(highlightBackgroundColor, "highlightBackgroundColor")); + setHighlightBackgroundColor( + GraphicsUtilities.decodeColor(highlightBackgroundColor, "highlightBackgroundColor")); } public final void setHighlightBackgroundColor(int highlightBackgroundColor) { Modified: pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraVFSBrowserSheetSkin.java URL: http://svn.apache.org/viewvc/pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraVFSBrowserSheetSkin.java?rev=1838293&r1=1838292&r2=1838293&view=diff ============================================================================== --- pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraVFSBrowserSheetSkin.java (original) +++ pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraVFSBrowserSheetSkin.java Fri Aug 17 22:27:05 2018 @@ -68,7 +68,8 @@ public class TerraVFSBrowserSheetSkin ex @Override public boolean include(FileObject file) { - return (file.getName().getType() != FileType.FOLDER || (sourceFilter != null && sourceFilter.include(file))); + return (file.getName().getType() != FileType.FOLDER + || (sourceFilter != null && sourceFilter.include(file))); } } @@ -84,7 +85,8 @@ public class TerraVFSBrowserSheetSkin ex private FileSystem fileSystem = null; private boolean updatingSelection = false; private int selectedDirectoryCount = 0; - private static final Pattern HOST_PATTERN = Pattern.compile("[a-zA-Z]+://([a-zA-Z0-9\\-_\\.]+)(\\\\[a-zA-Z0-9\\-\\.]+)?:\\d+/.*"); + private static final Pattern HOST_PATTERN = + Pattern.compile("[a-zA-Z]+://([a-zA-Z0-9\\-_\\.]+)(\\\\[a-zA-Z0-9\\-\\.]+)?:\\d+/.*"); private void setHostLabel(FileObject rootDir) { Modified: pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraVFSBrowserSkin.java URL: http://svn.apache.org/viewvc/pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraVFSBrowserSkin.java?rev=1838293&r1=1838292&r2=1838293&view=diff ============================================================================== --- pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraVFSBrowserSkin.java (original) +++ pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraVFSBrowserSkin.java Fri Aug 17 22:27:05 2018 @@ -1483,10 +1483,10 @@ public class TerraVFSBrowserSkin extends fileTableView.setTableData(new ArrayList<FileObject>()); String text = searchTextInput.getText().trim(); - Filter<FileObject> disabledFileFilter = hideDisabledFiles ? ((VFSBrowser) getComponent()).getDisabledFileFilter() - : null; - Filter<FileObject> includeFileFilter = text.length() != 0 ? new IncludeFileFilter(text) - : null; + Filter<FileObject> disabledFileFilter = hideDisabledFiles + ? ((VFSBrowser) getComponent()).getDisabledFileFilter() : null; + Filter<FileObject> includeFileFilter = text.length() != 0 + ? new IncludeFileFilter(text) : null; TableView.SortDictionary sort = fileTableView.getSort(); Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/Accordion.java URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/Accordion.java?rev=1838293&r1=1838292&r2=1838293&view=diff ============================================================================== --- pivot/trunk/wtk/src/org/apache/pivot/wtk/Accordion.java (original) +++ pivot/trunk/wtk/src/org/apache/pivot/wtk/Accordion.java Fri Aug 17 22:27:05 2018 @@ -41,7 +41,7 @@ public class Accordion extends Container } @Override - public int add(Component panel) { + public int add(final Component panel) { int index = getLength(); insert(panel, index); @@ -49,7 +49,7 @@ public class Accordion extends Container } @Override - public void insert(Component panel, int index) { + public void insert(final Component panel, final int index) { Utils.checkNull(panel, "panel"); // Add the panel to the component sequence @@ -73,12 +73,12 @@ public class Accordion extends Container } @Override - public Component update(int index, Component panel) { + public Component update(final int index, final Component panel) { throw new UnsupportedOperationException(); } @Override - public int remove(Component panel) { + public int remove(final Component panel) { int index = indexOf(panel); if (index != -1) { remove(index, 1); @@ -88,7 +88,7 @@ public class Accordion extends Container } @Override - public Sequence<Component> remove(int index, int count) { + public Sequence<Component> remove(final int index, final int count) { // Remove the panels from the panel list Sequence<Component> removed = panels.remove(index, count); @@ -121,12 +121,12 @@ public class Accordion extends Container } @Override - public Component get(int index) { + public Component get(final int index) { return panels.get(index); } @Override - public int indexOf(Component panel) { + public int indexOf(final Component panel) { return panels.indexOf(panel); } @@ -152,8 +152,10 @@ public class Accordion extends Container private Button.DataRenderer headerDataRenderer = DEFAULT_HEADER_DATA_RENDERER; private AccordionListener.Listeners accordionListeners = new AccordionListener.Listeners(); - private AccordionSelectionListener.Listeners accordionSelectionListeners = new AccordionSelectionListener.Listeners(); - private AccordionAttributeListener.Listeners accordionAttributeListeners = new AccordionAttributeListener.Listeners(); + private AccordionSelectionListener.Listeners accordionSelectionListeners = + new AccordionSelectionListener.Listeners(); + private AccordionAttributeListener.Listeners accordionAttributeListeners = + new AccordionAttributeListener.Listeners(); private static final Button.DataRenderer DEFAULT_HEADER_DATA_RENDERER = new AccordionHeaderDataRenderer(); @@ -169,7 +171,7 @@ public class Accordion extends Container return selectedIndex; } - public void setSelectedIndex(int selectedIndex) { + public void setSelectedIndex(final int selectedIndex) { indexBoundsCheck("selectedIndex", selectedIndex, -1, panels.getLength() - 1); int previousSelectedIndex = this.selectedIndex; @@ -194,7 +196,7 @@ public class Accordion extends Container return headerDataRenderer; } - public void setHeaderDataRenderer(Button.DataRenderer headerDataRenderer) { + public void setHeaderDataRenderer(final Button.DataRenderer headerDataRenderer) { Utils.checkNull(headerDataRenderer, "headerDataRenderer"); Button.DataRenderer previousHeaderDataRenderer = this.headerDataRenderer; @@ -205,7 +207,7 @@ public class Accordion extends Container } @Override - public Sequence<Component> remove(int index, int count) { + public Sequence<Component> remove(final int index, final int count) { for (int i = index, n = index + count; i < n; i++) { Component component = get(i); @@ -230,11 +232,11 @@ public class Accordion extends Container return accordionAttributeListeners; } - public static Object getHeaderData(Component component) { + public static Object getHeaderData(final Component component) { return component.getAttribute(Attribute.HEADER_DATA); } - public static void setHeaderData(Component component, Object headerData) { + public static void setHeaderData(final Component component, final Object headerData) { Object previousHeaderData = component.setAttribute(Attribute.HEADER_DATA, headerData); if (previousHeaderData != headerData) { @@ -248,11 +250,11 @@ public class Accordion extends Container } } - public static String getTooltipText(Component component) { + public static String getTooltipText(final Component component) { return (String) component.getAttribute(Attribute.TOOLTIP_TEXT); } - public static void setTooltipText(Component component, String tooltipText) { + public static void setTooltipText(final Component component, final String tooltipText) { String previousTooltipText = (String) component.setAttribute(Attribute.TOOLTIP_TEXT, tooltipText); Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/ApplicationContext.java URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/ApplicationContext.java?rev=1838293&r1=1838292&r2=1838293&view=diff ============================================================================== --- pivot/trunk/wtk/src/org/apache/pivot/wtk/ApplicationContext.java (original) +++ pivot/trunk/wtk/src/org/apache/pivot/wtk/ApplicationContext.java Fri Aug 17 22:27:05 2018 @@ -1623,7 +1623,8 @@ public abstract class ApplicationContext if (focusedComponentLocal == null) { for (Application application : applications) { if (application instanceof Application.UnprocessedKeyHandler) { - Application.UnprocessedKeyHandler unprocessedKeyHandler = (Application.UnprocessedKeyHandler) application; + Application.UnprocessedKeyHandler unprocessedKeyHandler = + (Application.UnprocessedKeyHandler) application; unprocessedKeyHandler.keyTyped(keyChar); } } Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/CalendarButton.java URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/CalendarButton.java?rev=1838293&r1=1838292&r2=1838293&view=diff ============================================================================== --- pivot/trunk/wtk/src/org/apache/pivot/wtk/CalendarButton.java (original) +++ pivot/trunk/wtk/src/org/apache/pivot/wtk/CalendarButton.java Fri Aug 17 22:27:05 2018 @@ -54,8 +54,10 @@ public class CalendarButton extends Butt private Calendar.SelectedDateBindMapping selectedDateBindMapping = null; private CalendarButtonListener.Listeners calendarButtonListeners = new CalendarButtonListener.Listeners(); - private CalendarButtonSelectionListener.Listeners calendarButtonSelectionListeners = new CalendarButtonSelectionListener.Listeners(); - private CalendarButtonBindingListener.Listeners calendarButtonBindingListeners = new CalendarButtonBindingListener.Listeners(); + private CalendarButtonSelectionListener.Listeners calendarButtonSelectionListeners = + new CalendarButtonSelectionListener.Listeners(); + private CalendarButtonBindingListener.Listeners calendarButtonBindingListeners = + new CalendarButtonBindingListener.Listeners(); public static final String LANGUAGE_KEY = "language"; public static final String COUNTRY_KEY = "country"; Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/ColorChooser.java URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/ColorChooser.java?rev=1838293&r1=1838292&r2=1838293&view=diff ============================================================================== --- pivot/trunk/wtk/src/org/apache/pivot/wtk/ColorChooser.java (original) +++ pivot/trunk/wtk/src/org/apache/pivot/wtk/ColorChooser.java Fri Aug 17 22:27:05 2018 @@ -54,8 +54,10 @@ public class ColorChooser extends Contai private BindType selectedColorBindType = BindType.BOTH; private SelectedColorBindMapping selectedColorBindMapping = null; - private ColorChooserSelectionListener.Listeners colorChooserSelectionListeners = new ColorChooserSelectionListener.Listeners(); - private ColorChooserBindingListener.Listeners colorChooserBindingListeners = new ColorChooserBindingListener.Listeners(); + private ColorChooserSelectionListener.Listeners colorChooserSelectionListeners = + new ColorChooserSelectionListener.Listeners(); + private ColorChooserBindingListener.Listeners colorChooserBindingListeners = + new ColorChooserBindingListener.Listeners(); public ColorChooser() { installSkin(ColorChooser.class); @@ -75,7 +77,7 @@ public class ColorChooser extends Contai * @param selectedColor The color to select, or <tt>null</tt> to clear the * selection. */ - public void setSelectedColor(Color selectedColor) { + public void setSelectedColor(final Color selectedColor) { Color previousSelectedColor = this.selectedColor; if (previousSelectedColor != selectedColor @@ -91,7 +93,7 @@ public class ColorChooser extends Contai * @param selectedColor The color to select, or <tt>"null"</tt> to clear the * selection. */ - public void setSelectedColor(String selectedColor) { + public void setSelectedColor(final String selectedColor) { setSelectedColor(GraphicsUtilities.decodeColor(selectedColor, "selectedColor")); } @@ -107,7 +109,7 @@ public class ColorChooser extends Contai * * @param selectedColorKey The binding key for the selected color. */ - public void setSelectedColorKey(String selectedColorKey) { + public void setSelectedColorKey(final String selectedColorKey) { String previousSelectedColorKey = this.selectedColorKey; if (selectedColorKey != previousSelectedColorKey) { @@ -120,7 +122,7 @@ public class ColorChooser extends Contai return selectedColorBindType; } - public void setSelectedColorBindType(BindType selectedColorBindType) { + public void setSelectedColorBindType(final BindType selectedColorBindType) { Utils.checkNull(selectedColorBindType, "selectedColorBindType"); BindType previousSelectedColorBindType = this.selectedColorBindType; @@ -136,7 +138,7 @@ public class ColorChooser extends Contai return selectedColorBindMapping; } - public void setSelectedColorBindMapping(SelectedColorBindMapping selectedColorBindMapping) { + public void setSelectedColorBindMapping(final SelectedColorBindMapping selectedColorBindMapping) { SelectedColorBindMapping previousSelectedColorBindMapping = this.selectedColorBindMapping; if (previousSelectedColorBindMapping != selectedColorBindMapping) { @@ -151,7 +153,7 @@ public class ColorChooser extends Contai * chooser's bind key, if one is set. */ @Override - public void load(Object context) { + public void load(final Object context) { if (selectedColorKey != null && JSON.containsKey(context, selectedColorKey) && selectedColorBindType != BindType.STORE) { Object value = JSON.get(context, selectedColorKey); @@ -177,7 +179,7 @@ public class ColorChooser extends Contai * color chooser's bind key, if one is set. */ @Override - public void store(Object context) { + public void store(final Object context) { if (selectedColorKey != null && selectedColorBindType != BindType.LOAD) { JSON.put(context, selectedColorKey, (selectedColorBindMapping == null) ? selectedColor : selectedColorBindMapping.valueOf(selectedColor)); Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/ColorChooserButton.java URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/ColorChooserButton.java?rev=1838293&r1=1838292&r2=1838293&view=diff ============================================================================== --- pivot/trunk/wtk/src/org/apache/pivot/wtk/ColorChooserButton.java (original) +++ pivot/trunk/wtk/src/org/apache/pivot/wtk/ColorChooserButton.java Fri Aug 17 22:27:05 2018 @@ -43,8 +43,10 @@ public class ColorChooserButton extends private BindType selectedColorBindType = BindType.BOTH; private ColorChooser.SelectedColorBindMapping selectedColorBindMapping = null; - private ColorChooserButtonSelectionListener.Listeners colorChooserButtonSelectionListeners = new ColorChooserButtonSelectionListener.Listeners(); - private ColorChooserButtonBindingListener.Listeners colorChooserButtonBindingListeners = new ColorChooserButtonBindingListener.Listeners(); + private ColorChooserButtonSelectionListener.Listeners colorChooserButtonSelectionListeners = + new ColorChooserButtonSelectionListener.Listeners(); + private ColorChooserButtonBindingListener.Listeners colorChooserButtonBindingListeners = + new ColorChooserButtonBindingListener.Listeners(); private static final Button.DataRenderer DEFAULT_DATA_RENDERER = new ListButtonColorItemRenderer(); @@ -52,7 +54,7 @@ public class ColorChooserButton extends this(null); } - public ColorChooserButton(Object buttonData) { + public ColorChooserButton(final Object buttonData) { super(buttonData); setDataRenderer(DEFAULT_DATA_RENDERER); @@ -60,7 +62,7 @@ public class ColorChooserButton extends } @Override - protected void setSkin(org.apache.pivot.wtk.Skin skin) { + protected void setSkin(final org.apache.pivot.wtk.Skin skin) { checkSkin(skin, ColorChooserButton.Skin.class); super.setSkin(skin); @@ -78,7 +80,7 @@ public class ColorChooserButton extends * ColorChooserButton. */ @Override - public void setToggleButton(boolean toggleButton) { + public void setToggleButton(final boolean toggleButton) { throw new UnsupportedOperationException("Color chooser buttons cannot be toggle buttons."); } @@ -96,7 +98,7 @@ public class ColorChooserButton extends * @param selectedColor The color to select, or <tt>null</tt> to clear the * selection. */ - public void setSelectedColor(Color selectedColor) { + public void setSelectedColor(final Color selectedColor) { Color previousSelectedColor = this.selectedColor; if (previousSelectedColor != selectedColor @@ -112,7 +114,7 @@ public class ColorChooserButton extends * @param selectedColor A string representing a color. * @throws IllegalArgumentException if the string is {@code null}. */ - public final void setSelectedColor(String selectedColor) { + public final void setSelectedColor(final String selectedColor) { setSelectedColor(GraphicsUtilities.decodeColor(selectedColor, "selectedColor")); } @@ -128,7 +130,7 @@ public class ColorChooserButton extends * * @param selectedColorKey The binding key for the selected color. */ - public void setSelectedColorKey(String selectedColorKey) { + public void setSelectedColorKey(final String selectedColorKey) { String previousSelectedColorKey = this.selectedColorKey; if (previousSelectedColorKey != selectedColorKey) { @@ -142,7 +144,7 @@ public class ColorChooserButton extends return selectedColorBindType; } - public void setSelectedColorBindType(BindType selectedColorBindType) { + public void setSelectedColorBindType(final BindType selectedColorBindType) { Utils.checkNull(selectedColorBindType, "selectedColorBindType"); BindType previousSelectedColorBindType = this.selectedColorBindType; @@ -158,7 +160,7 @@ public class ColorChooserButton extends return selectedColorBindMapping; } - public void setSelectedColorBindMapping(ColorChooser.SelectedColorBindMapping bindMapping) { + public void setSelectedColorBindMapping(final ColorChooser.SelectedColorBindMapping bindMapping) { ColorChooser.SelectedColorBindMapping previousSelectedColorBindMapping = this.selectedColorBindMapping; if (previousSelectedColorBindMapping != bindMapping) { @@ -173,7 +175,7 @@ public class ColorChooserButton extends * picker button's bind key, if one is set. */ @Override - public void load(Object context) { + public void load(final Object context) { if (selectedColorKey != null && JSON.containsKey(context, selectedColorKey) && selectedColorBindType != BindType.STORE) { Object value = JSON.get(context, selectedColorKey); @@ -199,7 +201,7 @@ public class ColorChooserButton extends * color picker button's bind key, if one is set. */ @Override - public void store(Object context) { + public void store(final Object context) { if (selectedColorKey != null && selectedColorBindType != BindType.LOAD) { JSON.put(context, selectedColorKey, (selectedColorBindMapping == null) ? selectedColor : selectedColorBindMapping.valueOf(selectedColor)); Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/ListButton.java URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/ListButton.java?rev=1838293&r1=1838292&r2=1838293&view=diff ============================================================================== --- pivot/trunk/wtk/src/org/apache/pivot/wtk/ListButton.java (original) +++ pivot/trunk/wtk/src/org/apache/pivot/wtk/ListButton.java Fri Aug 17 22:27:05 2018 @@ -143,8 +143,10 @@ public class ListButton extends Button { private ListButtonListener.Listeners listButtonListeners = new ListButtonListener.Listeners(); private ListButtonItemListener.Listeners listButtonItemListeners = new ListButtonItemListener.Listeners(); - private ListButtonSelectionListener.Listeners listButtonSelectionListeners = new ListButtonSelectionListener.Listeners(); - private ListButtonBindingListener.Listeners listButtonBindingListeners = new ListButtonBindingListener.Listeners(); + private ListButtonSelectionListener.Listeners listButtonSelectionListeners = + new ListButtonSelectionListener.Listeners(); + private ListButtonBindingListener.Listeners listButtonBindingListeners = + new ListButtonBindingListener.Listeners(); private static final Button.DataRenderer DEFAULT_DATA_RENDERER = new ListButtonDataRenderer(); private static final ListView.ItemRenderer DEFAULT_ITEM_RENDERER = new ListViewItemRenderer(); Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/SuggestionPopup.java URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/SuggestionPopup.java?rev=1838293&r1=1838292&r2=1838293&view=diff ============================================================================== --- pivot/trunk/wtk/src/org/apache/pivot/wtk/SuggestionPopup.java (original) +++ pivot/trunk/wtk/src/org/apache/pivot/wtk/SuggestionPopup.java Fri Aug 17 22:27:05 2018 @@ -126,9 +126,12 @@ public class SuggestionPopup extends Win }; private SuggestionPopupListener.Listeners suggestionPopupListeners = new SuggestionPopupListener.Listeners(); - private SuggestionPopupItemListener.Listeners suggestionPopupItemListeners = new SuggestionPopupItemListener.Listeners(); - private SuggestionPopupSelectionListener.Listeners suggestionPopupSelectionListeners = new SuggestionPopupSelectionListener.Listeners(); - private SuggestionPopupStateListener.Listeners suggestionPopupStateListeners = new SuggestionPopupStateListener.Listeners(); + private SuggestionPopupItemListener.Listeners suggestionPopupItemListeners = + new SuggestionPopupItemListener.Listeners(); + private SuggestionPopupSelectionListener.Listeners suggestionPopupSelectionListeners = + new SuggestionPopupSelectionListener.Listeners(); + private SuggestionPopupStateListener.Listeners suggestionPopupStateListeners = + new SuggestionPopupStateListener.Listeners(); private static final ListView.ItemRenderer DEFAULT_SUGGESTION_RENDERER = new ListViewItemRenderer(); Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/TablePane.java URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/TablePane.java?rev=1838293&r1=1838292&r2=1838293&view=diff ============================================================================== --- pivot/trunk/wtk/src/org/apache/pivot/wtk/TablePane.java (original) +++ pivot/trunk/wtk/src/org/apache/pivot/wtk/TablePane.java Fri Aug 17 22:27:05 2018 @@ -649,7 +649,8 @@ public class TablePane extends Container private ColumnSequence columnSequence = new ColumnSequence(); private TablePaneListener.Listeners tablePaneListeners = new TablePaneListener.Listeners(); - private TablePaneAttributeListener.Listeners tablePaneAttributeListeners = new TablePaneAttributeListener.Listeners(); + private TablePaneAttributeListener.Listeners tablePaneAttributeListeners = + new TablePaneAttributeListener.Listeners(); public static final String RELATIVE_SIZE_INDICATOR = "*"; Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/TablePaneAttributeListener.java URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/TablePaneAttributeListener.java?rev=1838293&r1=1838292&r2=1838293&view=diff ============================================================================== --- pivot/trunk/wtk/src/org/apache/pivot/wtk/TablePaneAttributeListener.java (original) +++ pivot/trunk/wtk/src/org/apache/pivot/wtk/TablePaneAttributeListener.java Fri Aug 17 22:27:05 2018 @@ -25,7 +25,8 @@ public interface TablePaneAttributeListe /** * Table pane attribute listeners. */ - public static class Listeners extends ListenerList<TablePaneAttributeListener> implements TablePaneAttributeListener { + public static class Listeners extends ListenerList<TablePaneAttributeListener> + implements TablePaneAttributeListener { @Override public void rowSpanChanged(TablePane tablePane, Component component, int previousRowSpan) { forEach(listener -> listener.rowSpanChanged(tablePane, component, previousRowSpan)); Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/TableView.java URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/TableView.java?rev=1838293&r1=1838292&r2=1838293&view=diff ============================================================================== --- pivot/trunk/wtk/src/org/apache/pivot/wtk/TableView.java (original) +++ pivot/trunk/wtk/src/org/apache/pivot/wtk/TableView.java Fri Aug 17 22:27:05 2018 @@ -890,7 +890,8 @@ public class TableView extends Component private TableViewListener.Listeners tableViewListeners = new TableViewListener.Listeners(); private TableViewColumnListener.Listeners tableViewColumnListeners = new TableViewColumnListener.Listeners(); private TableViewRowListener.Listeners tableViewRowListeners = new TableViewRowListener.Listeners(); - private TableViewSelectionListener.Listeners tableViewSelectionListeners = new TableViewSelectionListener.Listeners(); + private TableViewSelectionListener.Listeners tableViewSelectionListeners = + new TableViewSelectionListener.Listeners(); private TableViewSortListener.Listeners tableViewSortListeners = new TableViewSortListener.Listeners(); private TableViewBindingListener.Listeners tableViewBindingListeners = new TableViewBindingListener.Listeners(); Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/TableViewHeader.java URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/TableViewHeader.java?rev=1838293&r1=1838292&r2=1838293&view=diff ============================================================================== --- pivot/trunk/wtk/src/org/apache/pivot/wtk/TableViewHeader.java (original) +++ pivot/trunk/wtk/src/org/apache/pivot/wtk/TableViewHeader.java Fri Aug 17 22:27:05 2018 @@ -44,19 +44,20 @@ public class TableViewHeader extends Com private SortMode sortMode = SortMode.NONE; private TableViewHeaderListener.Listeners tableViewHeaderListeners = new TableViewHeaderListener.Listeners(); - private TableViewHeaderPressListener.Listeners tableViewHeaderPressListeners = new TableViewHeaderPressListener.Listeners(); + private TableViewHeaderPressListener.Listeners tableViewHeaderPressListeners = + new TableViewHeaderPressListener.Listeners(); public TableViewHeader() { this(null); } - public TableViewHeader(TableView tableView) { + public TableViewHeader(final TableView tableView) { installSkin(TableViewHeader.class); setTableView(tableView); } @Override - protected void setSkin(org.apache.pivot.wtk.Skin skin) { + protected void setSkin(final org.apache.pivot.wtk.Skin skin) { checkSkin(skin, TableViewHeader.Skin.class); super.setSkin(skin); @@ -66,7 +67,7 @@ public class TableViewHeader extends Com return tableView; } - public void setTableView(TableView tableView) { + public void setTableView(final TableView tableView) { TableView previousTableView = this.tableView; if (previousTableView != tableView) { @@ -79,7 +80,7 @@ public class TableViewHeader extends Com return sortMode; } - public void setSortMode(SortMode sortMode) { + public void setSortMode(final SortMode sortMode) { Utils.checkNull(sortMode, "sortMode"); SortMode previousSortMode = this.sortMode; @@ -89,7 +90,7 @@ public class TableViewHeader extends Com } } - public void pressHeader(int index) { + public void pressHeader(final int index) { tableViewHeaderPressListeners.headerPressed(this, index); } @@ -100,7 +101,7 @@ public class TableViewHeader extends Com * @return The column index, or <tt>-1</tt> if there is no column at the * given x-coordinate. */ - public int getHeaderAt(int x) { + public int getHeaderAt(final int x) { TableViewHeader.Skin tableViewHeaderSkin = (TableViewHeader.Skin) getSkin(); return tableViewHeaderSkin.getHeaderAt(x); } @@ -111,7 +112,7 @@ public class TableViewHeader extends Com * @param index The index of the header. * @return The bounding area of the header. */ - public Bounds getHeaderBounds(int index) { + public Bounds getHeaderBounds(final int index) { TableViewHeader.Skin tableViewHeaderSkin = (TableViewHeader.Skin) getSkin(); return tableViewHeaderSkin.getHeaderBounds(index); } Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/TextInputMethodListener.java URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/TextInputMethodListener.java?rev=1838293&r1=1838292&r2=1838293&view=diff ============================================================================== --- pivot/trunk/wtk/src/org/apache/pivot/wtk/TextInputMethodListener.java (original) +++ pivot/trunk/wtk/src/org/apache/pivot/wtk/TextInputMethodListener.java Fri Aug 17 22:27:05 2018 @@ -42,12 +42,14 @@ public interface TextInputMethodListener @Deprecated public static class Adapter implements TextInputMethodListener { @Override - public AttributedCharacterIterator cancelLatestCommittedText(AttributedCharacterIterator.Attribute[] attributes) { + public AttributedCharacterIterator cancelLatestCommittedText( + AttributedCharacterIterator.Attribute[] attributes) { return null; } @Override - public AttributedCharacterIterator getCommittedText(int beginIndex, int endIndex, AttributedCharacterIterator.Attribute[] attributes) { + public AttributedCharacterIterator getCommittedText(int beginIndex, int endIndex, + AttributedCharacterIterator.Attribute[] attributes) { return null; } Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/Window.java URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/Window.java?rev=1838293&r1=1838292&r2=1838293&view=diff ============================================================================== --- pivot/trunk/wtk/src/org/apache/pivot/wtk/Window.java (original) +++ pivot/trunk/wtk/src/org/apache/pivot/wtk/Window.java Fri Aug 17 22:27:05 2018 @@ -298,7 +298,8 @@ public class Window extends Container { private WindowListener.Listeners windowListeners = new WindowListener.Listeners(); private WindowStateListener.Listeners windowStateListeners = new WindowStateListener.Listeners(); - private WindowActionMappingListener.Listeners windowActionMappingListeners = new WindowActionMappingListener.Listeners(); + private WindowActionMappingListener.Listeners windowActionMappingListeners = + new WindowActionMappingListener.Listeners(); private static WindowClassListener.Listeners windowClassListeners = new WindowClassListener.Listeners(); Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/CalendarButtonSkin.java URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/CalendarButtonSkin.java?rev=1838293&r1=1838292&r2=1838293&view=diff ============================================================================== --- pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/CalendarButtonSkin.java (original) +++ pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/CalendarButtonSkin.java Fri Aug 17 22:27:05 2018 @@ -89,8 +89,8 @@ public abstract class CalendarButtonSkin calendarPopup.close(); if (keyCode == KeyCode.TAB) { - FocusTraversalDirection direction = (Keyboard.isPressed(Modifier.SHIFT)) ? FocusTraversalDirection.BACKWARD - : FocusTraversalDirection.FORWARD; + FocusTraversalDirection direction = (Keyboard.isPressed(Modifier.SHIFT)) + ? FocusTraversalDirection.BACKWARD : FocusTraversalDirection.FORWARD; calendarButton.transferFocus(direction); } Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/CardPaneSkin.java URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/CardPaneSkin.java?rev=1838293&r1=1838292&r2=1838293&view=diff ============================================================================== --- pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/CardPaneSkin.java (original) +++ pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/CardPaneSkin.java Fri Aug 17 22:27:05 2018 @@ -738,9 +738,9 @@ public class CardPaneSkin extends Contai public void transitionCompleted(Transition transition) { CardPane cardPaneLocal = (CardPane) getComponent(); - SelectionChangeTransition selectionChangeTransitionLocal = (SelectionChangeTransition) transition; + SelectionChangeTransition selChangeTransitionLocal = (SelectionChangeTransition) transition; - int selectedIndexLocal = cardPaneLocal.indexOf(selectionChangeTransitionLocal.toCard); + int selectedIndexLocal = cardPaneLocal.indexOf(selChangeTransitionLocal.toCard); cardPaneLocal.setSelectedIndex(selectedIndexLocal); CardPaneSkin.this.selectionChangeTransition = null; } Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ColorChooserButtonSkin.java URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ColorChooserButtonSkin.java?rev=1838293&r1=1838292&r2=1838293&view=diff ============================================================================== --- pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ColorChooserButtonSkin.java (original) +++ pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/ColorChooserButtonSkin.java Fri Aug 17 22:27:05 2018 @@ -64,7 +64,8 @@ public abstract class ColorChooserButton } @Override - public boolean mouseClick(Component component, Mouse.Button button, int x, int y, int count) { + public boolean mouseClick(final Component component, final Mouse.Button button, final int x, final int y, + final int count) { component.requestFocus(); return super.mouseClick(component, button, x, y, count); } @@ -79,22 +80,21 @@ public abstract class ColorChooserButton * Choose the selected color and transfer focus backwards. */ @Override - public boolean keyPressed(Component component, int keyCode, KeyLocation keyLocation) { + public boolean keyPressed(final Component component, final int keyCode, final KeyLocation keyLocation) { ColorChooserButton colorChooserButton = (ColorChooserButton) getComponent(); switch (keyCode) { - case KeyCode.ESCAPE: { + case KeyCode.ESCAPE: colorChooserPopup.close(); break; - } case KeyCode.TAB: - case KeyCode.ENTER: { + case KeyCode.ENTER: colorChooserPopup.close(); if (keyCode == KeyCode.TAB) { - FocusTraversalDirection direction = (Keyboard.isPressed(Modifier.SHIFT)) ? FocusTraversalDirection.BACKWARD - : FocusTraversalDirection.FORWARD; + FocusTraversalDirection direction = (Keyboard.isPressed(Modifier.SHIFT)) + ? FocusTraversalDirection.BACKWARD : FocusTraversalDirection.FORWARD; colorChooserButton.transferFocus(direction); } @@ -102,11 +102,9 @@ public abstract class ColorChooserButton colorChooserButton.setSelectedColor(color); break; - } - default: { + default: break; - } } return false; @@ -115,7 +113,7 @@ public abstract class ColorChooserButton private WindowStateListener colorChooserPopupWindowStateListener = new WindowStateListener() { @Override - public void windowOpened(Window window) { + public void windowOpened(final Window window) { Display display = window.getDisplay(); display.getContainerMouseListeners().add(displayMouseListener); @@ -123,7 +121,7 @@ public abstract class ColorChooserButton } @Override - public Vote previewWindowClose(Window window) { + public Vote previewWindowClose(final Window window) { if (window.containsFocus()) { getComponent().requestFocus(); } @@ -132,14 +130,14 @@ public abstract class ColorChooserButton } @Override - public void windowCloseVetoed(Window window, Vote reason) { + public void windowCloseVetoed(final Window window, final Vote reason) { if (reason == Vote.DENY) { window.requestFocus(); } } @Override - public void windowClosed(Window window, Display display, Window owner) { + public void windowClosed(final Window window, final Display display, final Window owner) { display.getContainerMouseListeners().remove(displayMouseListener); Window componentWindow = getComponent().getWindow(); @@ -151,7 +149,8 @@ public abstract class ColorChooserButton private ComponentMouseButtonListener colorChooserMouseButtonListener = new ComponentMouseButtonListener() { @Override - public boolean mouseClick(Component component, Mouse.Button button, int x, int y, int count) { + public boolean mouseClick(final Component component, final Mouse.Button button, final int x, final int y, + final int count) { ColorChooserButton colorChooserButton = (ColorChooserButton) getComponent(); if (button == Mouse.Button.LEFT && count == 2) { @@ -167,7 +166,7 @@ public abstract class ColorChooserButton private ContainerMouseListener displayMouseListener = new ContainerMouseListener() { @Override - public boolean mouseDown(Container container, Mouse.Button button, int x, int y) { + public boolean mouseDown(final Container container, final Mouse.Button button, final int x, final int y) { ColorChooserButton colorChooserButton = (ColorChooserButton) getComponent(); Display display = (Display) container; @@ -184,8 +183,8 @@ public abstract class ColorChooserButton } @Override - public boolean mouseWheel(Container container, Mouse.ScrollType scrollType, - int scrollAmount, int wheelRotation, int x, int y) { + public boolean mouseWheel(final Container container, final Mouse.ScrollType scrollType, + final int scrollAmount, final int wheelRotation, final int x, final int y) { return true; } }; @@ -204,7 +203,7 @@ public abstract class ColorChooserButton } @Override - public void install(Component component) { + public void install(final Component component) { super.install(component); ColorChooserButton colorChooserButton = (ColorChooserButton) component; @@ -221,7 +220,7 @@ public abstract class ColorChooserButton // ComponentStateListener methods @Override - public void enabledChanged(Component component) { + public void enabledChanged(final Component component) { super.enabledChanged(component); if (!component.isEnabled()) { @@ -234,13 +233,12 @@ public abstract class ColorChooserButton } @Override - public void focusedChanged(Component component, Component obverseComponent) { + public void focusedChanged(final Component component, final Component obverseComponent) { super.focusedChanged(component, obverseComponent); repaintComponent(); - // Close the popup if focus was transferred to a component whose - // window is not the popup + // Close the popup if focus was transferred to a component whose window is not the popup if (!component.isFocused()) { pressed = false; @@ -253,7 +251,7 @@ public abstract class ColorChooserButton // ComponentMouseListener methods @Override - public void mouseOut(Component component) { + public void mouseOut(final Component component) { super.mouseOut(component); pressed = false; @@ -263,7 +261,7 @@ public abstract class ColorChooserButton // ComponentMouseButtonListener methods @Override - public boolean mouseDown(Component component, Mouse.Button button, int x, int y) { + public boolean mouseDown(final Component component, final Mouse.Button button, final int x, final int y) { boolean consumed = super.mouseDown(component, button, x, y); pressed = true; @@ -279,7 +277,7 @@ public abstract class ColorChooserButton } @Override - public boolean mouseUp(Component component, Mouse.Button button, int x, int y) { + public boolean mouseUp(final Component component, final Mouse.Button button, final int x, final int y) { boolean consumed = super.mouseUp(component, button, x, y); pressed = false; @@ -291,13 +289,12 @@ public abstract class ColorChooserButton // ComponentKeyListener methods /** - * {@link KeyCode#SPACE SPACE} Repaints the component to reflect the pressed - * state. + * {@link KeyCode#SPACE SPACE} Repaints the component to reflect the pressed state. * * @see #keyReleased(Component, int, Keyboard.KeyLocation) */ @Override - public boolean keyPressed(Component component, int keyCode, KeyLocation keyLocation) { + public boolean keyPressed(final Component component, final int keyCode, final KeyLocation keyLocation) { boolean consumed = false; if (keyCode == KeyCode.SPACE) { @@ -322,7 +319,7 @@ public abstract class ColorChooserButton * {@link KeyCode#SPACE SPACE} 'presses' the button. */ @Override - public boolean keyReleased(Component component, int keyCode, KeyLocation keyLocation) { + public boolean keyReleased(final Component component, final int keyCode, final KeyLocation keyLocation) { boolean consumed = false; if (keyCode == KeyCode.SPACE) { @@ -338,8 +335,8 @@ public abstract class ColorChooserButton // ColorChooserButtonSelectionListener methods @Override - public void selectedColorChanged(ColorChooserButton colorChooserButton, - Color previousSelectedColor) { + public void selectedColorChanged(final ColorChooserButton colorChooserButton, + final Color previousSelectedColor) { // Set the selected color as the button data Color selectedColor = colorChooserButton.getSelectedColor(); Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/LabelSkin.java URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/LabelSkin.java?rev=1838293&r1=1838292&r2=1838293&view=diff ============================================================================== --- pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/LabelSkin.java (original) +++ pivot/trunk/wtk/src/org/apache/pivot/wtk/skin/LabelSkin.java Fri Aug 17 22:27:05 2018 @@ -75,7 +75,7 @@ public class LabelSkin extends Component } @Override - public void install(Component component) { + public void install(final Component component) { super.install(component); Label label = (Label) getComponent(); @@ -83,7 +83,7 @@ public class LabelSkin extends Component } @Override - public int getPreferredWidth(int height) { + public int getPreferredWidth(final int height) { Label label = (Label) getComponent(); String text = label.getText(); @@ -113,7 +113,7 @@ public class LabelSkin extends Component } @Override - public int getPreferredHeight(int width) { + public int getPreferredHeight(final int width) { Label label = (Label) getComponent(); String text = label.getText(); @@ -214,7 +214,7 @@ public class LabelSkin extends Component } @Override - public int getBaseline(int width, int height) { + public int getBaseline(final int width, final int height) { FontRenderContext fontRenderContext = Platform.getFontRenderContext(); LineMetrics lm = font.getLineMetrics("", fontRenderContext); float ascent = lm.getAscent(); @@ -229,24 +229,20 @@ public class LabelSkin extends Component int baseline = -1; switch (verticalAlignment) { - case TOP: { + case TOP: baseline = Math.round(padding.top + ascent); break; - } - case CENTER: { + case CENTER: baseline = Math.round((height - textHeightLocal) / 2 + ascent); break; - } - case BOTTOM: { + case BOTTOM: baseline = Math.round(height - (textHeightLocal + padding.bottom) + ascent); break; - } - default: { + default: break; - } } return baseline; @@ -317,7 +313,8 @@ public class LabelSkin extends Component } } - private void appendLine(String text, int start, int end, FontRenderContext fontRenderContext) { + private void appendLine(final String text, final int start, final int end, + final FontRenderContext fontRenderContext) { StringCharacterIterator line = new StringCharacterIterator(text, start, end, start); GlyphVector glyphVector = font.createGlyphVector(fontRenderContext, line); glyphVectors.add(glyphVector); @@ -327,7 +324,7 @@ public class LabelSkin extends Component } @Override - public void paint(Graphics2D graphics) { + public void paint(final Graphics2D graphics) { Label label = (Label) this.getComponent(); int width = getWidth(); @@ -356,24 +353,17 @@ public class LabelSkin extends Component float y = 0; switch (verticalAlignment) { - case TOP: { + case TOP: y = padding.top; break; - } - - case BOTTOM: { + case BOTTOM: y = height - (textHeight + padding.bottom); break; - } - - case CENTER: { + case CENTER: y = (height - textHeight) / 2; break; - } - - default: { + default: break; - } } for (int i = 0, n = glyphVectors.getLength(); i < n; i++) { @@ -384,21 +374,17 @@ public class LabelSkin extends Component float x = 0; switch (horizontalAlignment) { - case LEFT: { + case LEFT: x = padding.left; break; - } - case RIGHT: { + case RIGHT: x = width - (lineWidth + padding.right); break; - } - case CENTER: { + case CENTER: x = (width - lineWidth) / 2; break; - } - default: { + default: break; - } } if (graphics instanceof PrintGraphics) { @@ -418,17 +404,14 @@ public class LabelSkin extends Component float offset = 0; switch (textDecoration) { - case UNDERLINE: { + case UNDERLINE: offset = y + ascent + 2; break; - } - case STRIKETHROUGH: { + case STRIKETHROUGH: offset = y + lineHeight / 2 + 1; break; - } - default: { + default: break; - } } Line2D line = new Line2D.Float(x, offset, x + lineWidth, offset); @@ -465,7 +448,7 @@ public class LabelSkin extends Component * * @param font The new font to use to render the text. */ - public void setFont(Font font) { + public void setFont(final Font font) { Utils.checkNull(font, "font"); this.font = font; @@ -477,7 +460,7 @@ public class LabelSkin extends Component * * @param font A {@linkplain ComponentSkin#decodeFont(String) font specification}. */ - public final void setFont(String font) { + public final void setFont(final String font) { Utils.checkNull(font, "font"); setFont(decodeFont(font)); @@ -488,7 +471,7 @@ public class LabelSkin extends Component * * @param font A dictionary {@linkplain Theme#deriveFont describing a font}. */ - public final void setFont(Dictionary<String, ?> font) { + public final void setFont(final Dictionary<String, ?> font) { Utils.checkNull(font, "font"); setFont(Theme.deriveFont(font)); @@ -506,7 +489,7 @@ public class LabelSkin extends Component * * @param color The new foreground color for the label text. */ - public void setColor(Color color) { + public void setColor(final Color color) { Utils.checkNull(color, "color"); this.color = color; @@ -519,7 +502,7 @@ public class LabelSkin extends Component * @param color Any of the {@linkplain GraphicsUtilities#decodeColor color * values recognized by Pivot}. */ - public final void setColor(String color) { + public final void setColor(final String color) { Utils.checkNull(color, "color"); setColor(GraphicsUtilities.decodeColor(color, "color")); @@ -537,7 +520,7 @@ public class LabelSkin extends Component * * @param color The new disabled text color. */ - public void setDisabledColor(Color color) { + public void setDisabledColor(final Color color) { Utils.checkNull(color, "disabledColor"); this.disabledColor = color; @@ -550,7 +533,7 @@ public class LabelSkin extends Component * @param color Any of the {@linkplain GraphicsUtilities#decodeColor color * values recognized by Pivot}. */ - public final void setDisabledColor(String color) { + public final void setDisabledColor(final String color) { Utils.checkNull(color, "disabledColor"); setDisabledColor(GraphicsUtilities.decodeColor(color, "disabledColor")); @@ -569,7 +552,7 @@ public class LabelSkin extends Component * @param backgroundColor The new background color for the label * (can be <tt>null</tt> to let the parent background show through). */ - public void setBackgroundColor(Color backgroundColor) { + public void setBackgroundColor(final Color backgroundColor) { this.backgroundColor = backgroundColor; repaintComponent(); } @@ -581,7 +564,7 @@ public class LabelSkin extends Component * {@linkplain GraphicsUtilities#decodeColor color values recognized by * Pivot}. */ - public final void setBackgroundColor(String backgroundColor) { + public final void setBackgroundColor(final String backgroundColor) { setBackgroundColor(GraphicsUtilities.decodeColor(backgroundColor, "backgroundColor")); } @@ -589,7 +572,7 @@ public class LabelSkin extends Component return textDecoration; } - public void setTextDecoration(TextDecoration textDecoration) { + public void setTextDecoration(final TextDecoration textDecoration) { this.textDecoration = textDecoration; repaintComponent(); } @@ -598,7 +581,7 @@ public class LabelSkin extends Component return horizontalAlignment; } - public void setHorizontalAlignment(HorizontalAlignment horizontalAlignment) { + public void setHorizontalAlignment(final HorizontalAlignment horizontalAlignment) { Utils.checkNull(horizontalAlignment, "horizontalAlignment"); this.horizontalAlignment = horizontalAlignment; @@ -609,7 +592,7 @@ public class LabelSkin extends Component return verticalAlignment; } - public void setVerticalAlignment(VerticalAlignment verticalAlignment) { + public void setVerticalAlignment(final VerticalAlignment verticalAlignment) { Utils.checkNull(verticalAlignment, "verticalAlignment"); this.verticalAlignment = verticalAlignment; @@ -630,7 +613,7 @@ public class LabelSkin extends Component * * @param padding The new value of the padding for each edge. */ - public void setPadding(Insets padding) { + public void setPadding(final Insets padding) { Utils.checkNull(padding, "padding"); this.padding = padding; @@ -643,7 +626,7 @@ public class LabelSkin extends Component * * @param padding A dictionary with keys in the set {top, left, bottom, right}. */ - public final void setPadding(Dictionary<String, ?> padding) { + public final void setPadding(final Dictionary<String, ?> padding) { setPadding(new Insets(padding)); } @@ -653,7 +636,7 @@ public class LabelSkin extends Component * * @param padding A sequence with values in the order [top, left, bottom, right]. */ - public final void setPadding(Sequence<?> padding) { + public final void setPadding(final Sequence<?> padding) { setPadding(new Insets(padding)); } @@ -663,7 +646,7 @@ public class LabelSkin extends Component * * @param padding The new single padding value to use for all edges. */ - public final void setPadding(int padding) { + public final void setPadding(final int padding) { setPadding(new Insets(padding)); } @@ -673,7 +656,7 @@ public class LabelSkin extends Component * * @param padding The new (integer) padding value to use for all edges. */ - public final void setPadding(Number padding) { + public final void setPadding(final Number padding) { setPadding(new Insets(padding)); } @@ -684,7 +667,7 @@ public class LabelSkin extends Component * @param padding A string containing an integer or a JSON dictionary with * keys left, top, bottom, and/or right. */ - public final void setPadding(String padding) { + public final void setPadding(final String padding) { setPadding(Insets.decode(padding)); } @@ -705,19 +688,19 @@ public class LabelSkin extends Component * * @param wrapText Whether or not to wrap the Label's text within its width. */ - public void setWrapText(boolean wrapText) { + public void setWrapText(final boolean wrapText) { this.wrapText = wrapText; invalidateComponent(); } // Label events @Override - public void textChanged(Label label, String previousText) { + public void textChanged(final Label label, final String previousText) { invalidateComponent(); } @Override - public void maximumLengthChanged(Label label, int previousMaximumLength) { + public void maximumLengthChanged(final Label label, final int previousMaximumLength) { invalidateComponent(); }