Examples of IntValidator


Examples of org.apache.pivot.wtk.validation.IntValidator

        int value = (Integer)dictionary.get(key);

        TextInput textInput = new TextInput();
        textInput.setTextSize(10);
        textInput.setMaximumLength(10);
        textInput.setValidator(new IntValidator());
        textInput.setText(String.valueOf(value));
        section.add(textInput);
        Form.setLabel(textInput, key);

        textInput.getComponentStateListeners().add(new ComponentStateListener.Adapter() {
View Full Code Here

Examples of org.apache.pivot.wtk.validation.IntValidator

        boxPane.add(flowPane);

        TextInput textInput = new TextInput();
        textInput.setTextSize(3);
        textInput.setMaximumLength(4);
        textInput.setValidator(new IntValidator());
        textInput.setText(String.valueOf(point.x));
        flowPane.add(textInput);

        textInput.getComponentStateListeners().add(new ComponentStateListener.Adapter() {
            @Override
            public void focusedChanged(Component component, Component obverseComponent) {
                if (!component.isFocused()) {
                    TextInput textInput = (TextInput)component;
                    Point point = (Point)dictionary.get(key);

                    try {
                        int x = Integer.parseInt(textInput.getText());
                        dictionary.put(key, new Point(x, point.y));
                    } catch (Exception exception) {
                        displayErrorMessage(exception, component.getWindow());
                        textInput.setText(String.valueOf(point.x));
                    }
                }
            }
        });

        Label label = new Label("x");
        label.getStyles().put("font", "{italic:true}");
        flowPane.add(label);

        flowPane = new FlowPane();
        flowPane.getStyles().put("alignToBaseline", true);
        flowPane.getStyles().put("horizontalSpacing", 5);
        boxPane.add(flowPane);

        textInput = new TextInput();
        textInput.setTextSize(3);
        textInput.setMaximumLength(4);
        textInput.setValidator(new IntValidator());
        textInput.setText(String.valueOf(point.y));
        flowPane.add(textInput);

        textInput.getComponentStateListeners().add(new ComponentStateListener.Adapter() {
            @Override
View Full Code Here

Examples of org.apache.pivot.wtk.validation.IntValidator

        boxPane.add(flowPane);

        TextInput textInput = new TextInput();
        textInput.setTextSize(4);
        textInput.setMaximumLength(5);
        textInput.setValidator(new IntValidator());
        textInput.setText(String.valueOf(dimensions.width));
        flowPane.add(textInput);

        textInput.getComponentStateListeners().add(new ComponentStateListener.Adapter() {
            @Override
            public void focusedChanged(Component component, Component obverseComponent) {
                if (!component.isFocused()) {
                    TextInput textInput = (TextInput)component;
                    Dimensions dimensions = (Dimensions)dictionary.get(key);

                    try {
                        int width = Integer.parseInt(textInput.getText());
                        dictionary.put(key, new Dimensions(width, dimensions.height));
                    } catch (Exception exception) {
                        displayErrorMessage(exception, component.getWindow());
                        textInput.setText(String.valueOf(dimensions.width));
                    }
                }
            }
        });

        Label label = new Label("width");
        label.getStyles().put("font", "{italic:true}");
        flowPane.add(label);

        flowPane = new FlowPane();
        flowPane.getStyles().put("alignToBaseline", true);
        flowPane.getStyles().put("horizontalSpacing", 5);
        boxPane.add(flowPane);

        textInput = new TextInput();
        textInput.setTextSize(4);
        textInput.setMaximumLength(5);
        textInput.setValidator(new IntValidator());
        textInput.setText(String.valueOf(dimensions.height));
        flowPane.add(textInput);

        textInput.getComponentStateListeners().add(new ComponentStateListener.Adapter() {
            @Override
View Full Code Here

Examples of org.apache.pivot.wtk.validation.IntValidator

        boxPane.add(flowPane);

        TextInput textInput = new TextInput();
        textInput.setTextSize(10);
        textInput.setMaximumLength(10);
        textInput.setValidator(new IntValidator());
        textInput.setText(String.valueOf(limits.min));
        flowPane.add(textInput);

        textInput.getComponentStateListeners().add(new ComponentStateListener.Adapter() {
            @Override
            public void focusedChanged(Component component, Component obverseComponent) {
                if (!component.isFocused()) {
                    TextInput textInput = (TextInput)component;
                    Limits limits = (Limits)dictionary.get(key);

                    try {
                        int min = Integer.parseInt(textInput.getText());
                        dictionary.put(key, new Limits(min, limits.max));
                    } catch (Exception exception) {
                        displayErrorMessage(exception, component.getWindow());
                        textInput.setText(String.valueOf(limits.min));
                    }
                }
            }
        });

        Label label = new Label("min");
        label.getStyles().put("font", "{italic:true}");
        flowPane.add(label);

        flowPane = new FlowPane();
        flowPane.getStyles().put("alignToBaseline", true);
        flowPane.getStyles().put("horizontalSpacing", 5);
        boxPane.add(flowPane);

        textInput = new TextInput();
        textInput.setTextSize(10);
        textInput.setMaximumLength(10);
        textInput.setValidator(new IntValidator());
        textInput.setText(String.valueOf(limits.max));
        flowPane.add(textInput);

        textInput.getComponentStateListeners().add(new ComponentStateListener.Adapter() {
            @Override
View Full Code Here

Examples of org.apache.pivot.wtk.validation.IntValidator

        boxPane.add(flowPane);

        TextInput textInput = new TextInput();
        textInput.setTextSize(4);
        textInput.setMaximumLength(4);
        textInput.setValidator(new IntValidator());
        textInput.setText(String.valueOf(insets.top));
        flowPane.add(textInput);

        textInput.getComponentStateListeners().add(new ComponentStateListener.Adapter() {
            @Override
            public void focusedChanged(Component component, Component obverseComponent) {
                if (!component.isFocused()) {
                    TextInput textInput = (TextInput)component;
                    Insets insets = (Insets)dictionary.get(key);

                    try {
                        int top = Integer.parseInt(textInput.getText());
                        dictionary.put(key, new Insets(top, insets.left, insets.bottom,
                            insets.right));
                    } catch (Exception exception) {
                        displayErrorMessage(exception, component.getWindow());
                        textInput.setText(String.valueOf(insets.top));
                    }
                }
            }
        });

        Label label = new Label("top");
        label.getStyles().put("font", "{italic:true}");
        flowPane.add(label);

        flowPane = new FlowPane();
        flowPane.getStyles().put("alignToBaseline", true);
        flowPane.getStyles().put("horizontalSpacing", 5);
        boxPane.add(flowPane);

        textInput = new TextInput();
        textInput.setTextSize(4);
        textInput.setMaximumLength(4);
        textInput.setValidator(new IntValidator());
        textInput.setText(String.valueOf(insets.left));
        flowPane.add(textInput);

        textInput.getComponentStateListeners().add(new ComponentStateListener.Adapter() {
            @Override
            public void focusedChanged(Component component, Component obverseComponent) {
                if (!component.isFocused()) {
                    TextInput textInput = (TextInput)component;
                    Insets insets = (Insets)dictionary.get(key);

                    try {
                        int left = Integer.parseInt(textInput.getText());
                        dictionary.put(key, new Insets(insets.top, left, insets.bottom,
                            insets.right));
                    } catch (Exception exception) {
                        displayErrorMessage(exception, component.getWindow());
                        textInput.setText(String.valueOf(insets.left));
                    }
                }
            }
        });

        label = new Label("left");
        label.getStyles().put("font", "{italic:true}");
        flowPane.add(label);

        flowPane = new FlowPane();
        flowPane.getStyles().put("alignToBaseline", true);
        flowPane.getStyles().put("horizontalSpacing", 5);
        boxPane.add(flowPane);

        textInput = new TextInput();
        textInput.setTextSize(4);
        textInput.setMaximumLength(4);
        textInput.setValidator(new IntValidator());
        textInput.setText(String.valueOf(insets.bottom));
        flowPane.add(textInput);

        textInput.getComponentStateListeners().add(new ComponentStateListener.Adapter() {
            @Override
            public void focusedChanged(Component component, Component obverseComponent) {
                if (!component.isFocused()) {
                    TextInput textInput = (TextInput)component;
                    Insets insets = (Insets)dictionary.get(key);

                    try {
                        int bottom = Integer.parseInt(textInput.getText());
                        dictionary.put(key, new Insets(insets.top, insets.left, bottom,
                            insets.right));
                    } catch (Exception exception) {
                        displayErrorMessage(exception, component.getWindow());
                        textInput.setText(String.valueOf(insets.bottom));
                    }
                }
            }
        });

        label = new Label("bottom");
        label.getStyles().put("font", "{italic:true}");
        flowPane.add(label);

        flowPane = new FlowPane();
        flowPane.getStyles().put("alignToBaseline", true);
        flowPane.getStyles().put("horizontalSpacing", 5);
        boxPane.add(flowPane);

        textInput = new TextInput();
        textInput.setTextSize(4);
        textInput.setMaximumLength(4);
        textInput.setValidator(new IntValidator());
        textInput.setText(String.valueOf(insets.right));
        flowPane.add(textInput);

        textInput.getComponentStateListeners().add(new ComponentStateListener.Adapter() {
            @Override
View Full Code Here

Examples of org.apache.pivot.wtk.validation.IntValidator

        boxPane.add(flowPane);

        TextInput textInput = new TextInput();
        textInput.setTextSize(10);
        textInput.setMaximumLength(10);
        textInput.setValidator(new IntValidator());
        textInput.setText(span == null ? "" : String.valueOf(span.start));
        flowPane.add(textInput);

        textInput.getComponentStateListeners().add(new ComponentStateListener.Adapter() {
            @Override
            public void focusedChanged(Component component, Component obverseComponent) {
                if (!component.isFocused()) {
                    TextInput textInput = (TextInput)component;
                    Span span = (Span)dictionary.get(key);

                    try {
                        int start = Integer.parseInt(textInput.getText());
                        dictionary.put(key, new Span(start, span == null ? start : span.end));
                    } catch (Exception exception) {
                        displayErrorMessage(exception, component.getWindow());
                        textInput.setText(span == null ? "" : String.valueOf(span.start));
                    }
                }
            }
        });

        Label label = new Label("start");
        label.getStyles().put("font", "{italic:true}");
        flowPane.add(label);

        flowPane = new FlowPane();
        flowPane.getStyles().put("alignToBaseline", true);
        flowPane.getStyles().put("horizontalSpacing", 5);
        boxPane.add(flowPane);

        textInput = new TextInput();
        textInput.setTextSize(10);
        textInput.setMaximumLength(10);
        textInput.setValidator(new IntValidator());
        textInput.setText(span == null ? "" : String.valueOf(span.end));
        flowPane.add(textInput);

        textInput.getComponentStateListeners().add(new ComponentStateListener.Adapter() {
            @Override
View Full Code Here

Examples of org.apache.pivot.wtk.validation.IntValidator

        boxPane.add(flowPane);

        TextInput textInput = new TextInput();
        textInput.setTextSize(4);
        textInput.setMaximumLength(4);
        textInput.setValidator(new IntValidator());
        textInput.setText(String.valueOf(cornerRadii.topLeft));
        flowPane.add(textInput);

        textInput.getComponentStateListeners().add(new ComponentStateListener.Adapter() {
            @Override
            public void focusedChanged(Component component, Component obverseComponent) {
                if (!component.isFocused()) {
                    TextInput textInput = (TextInput)component;
                    CornerRadii cornerRadii = (CornerRadii)dictionary.get(key);

                    try {
                        int topLeft = Integer.parseInt(textInput.getText());
                        dictionary.put(key, new CornerRadii(topLeft, cornerRadii.topRight,
                            cornerRadii.bottomLeft, cornerRadii.bottomRight));
                    } catch (Exception exception) {
                        displayErrorMessage(exception, component.getWindow());
                        textInput.setText(String.valueOf(cornerRadii.topLeft));
                    }
                }
            }
        });

        Label label = new Label("topLeft");
        label.getStyles().put("font", "{italic:true}");
        flowPane.add(label);

        flowPane = new FlowPane();
        flowPane.getStyles().put("alignToBaseline", true);
        flowPane.getStyles().put("horizontalSpacing", 5);
        boxPane.add(flowPane);

        textInput = new TextInput();
        textInput.setTextSize(4);
        textInput.setMaximumLength(4);
        textInput.setValidator(new IntValidator());
        textInput.setText(String.valueOf(cornerRadii.topRight));
        flowPane.add(textInput);

        textInput.getComponentStateListeners().add(new ComponentStateListener.Adapter() {
            @Override
            public void focusedChanged(Component component, Component obverseComponent) {
                if (!component.isFocused()) {
                    TextInput textInput = (TextInput)component;
                    CornerRadii cornerRadii = (CornerRadii)dictionary.get(key);

                    try {
                        int topRight = Integer.parseInt(textInput.getText());
                        dictionary.put(key, new CornerRadii(cornerRadii.topLeft, topRight,
                            cornerRadii.bottomLeft, cornerRadii.bottomRight));
                    } catch (Exception exception) {
                        displayErrorMessage(exception, component.getWindow());
                        textInput.setText(String.valueOf(cornerRadii.topRight));
                    }
                }
            }
        });

        label = new Label("topRight");
        label.getStyles().put("font", "{italic:true}");
        flowPane.add(label);

        flowPane = new FlowPane();
        flowPane.getStyles().put("alignToBaseline", true);
        flowPane.getStyles().put("horizontalSpacing", 5);
        boxPane.add(flowPane);

        textInput = new TextInput();
        textInput.setTextSize(4);
        textInput.setMaximumLength(4);
        textInput.setValidator(new IntValidator());
        textInput.setText(String.valueOf(cornerRadii.bottomLeft));
        flowPane.add(textInput);

        textInput.getComponentStateListeners().add(new ComponentStateListener.Adapter() {
            @Override
            public void focusedChanged(Component component, Component obverseComponent) {
                if (!component.isFocused()) {
                    TextInput textInput = (TextInput)component;
                    CornerRadii cornerRadii = (CornerRadii)dictionary.get(key);

                    try {
                        int bottomLeft = Integer.parseInt(textInput.getText());
                        dictionary.put(key, new CornerRadii(cornerRadii.topLeft,
                            cornerRadii.topRight, bottomLeft, cornerRadii.bottomRight));
                    } catch (Exception exception) {
                        displayErrorMessage(exception, component.getWindow());
                        textInput.setText(String.valueOf(cornerRadii.bottomLeft));
                    }
                }
            }
        });

        label = new Label("bottomLeft");
        label.getStyles().put("font", "{italic:true}");
        flowPane.add(label);

        flowPane = new FlowPane();
        flowPane.getStyles().put("alignToBaseline", true);
        flowPane.getStyles().put("horizontalSpacing", 5);
        boxPane.add(flowPane);

        textInput = new TextInput();
        textInput.setTextSize(4);
        textInput.setMaximumLength(4);
        textInput.setValidator(new IntValidator());
        textInput.setText(String.valueOf(cornerRadii.bottomRight));
        flowPane.add(textInput);

        textInput.getComponentStateListeners().add(new ComponentStateListener.Adapter() {
            @Override
View Full Code Here

Examples of org.apache.pivot.wtk.validation.IntValidator

        boxPane.add(flowPane);

        TextInput textInput = new TextInput();
        textInput.setTextSize(10);
        textInput.setMaximumLength(10);
        textInput.setValidator(new IntValidator());
        textInput.setText(scope == null ? "" : String.valueOf(scope.start));
        flowPane.add(textInput);

        textInput.getComponentStateListeners().add(new ComponentStateListener.Adapter() {
            @Override
            public void focusedChanged(Component component, Component obverseComponent) {
                if (!component.isFocused()) {
                    TextInput textInput = (TextInput)component;
                    Scope scope = (Scope)dictionary.get(key);

                    try {
                        int start = Integer.parseInt(textInput.getText());
                        dictionary.put(key, new Scope(start, scope == null ? start : scope.end,
                            scope == null ? start : scope.extent));
                    } catch (Exception exception) {
                        displayErrorMessage(exception, component.getWindow());
                        textInput.setText(scope == null ? "" : String.valueOf(scope.start));
                    }
                }
            }
        });

        Label label = new Label("start");
        label.getStyles().put("font", "{italic:true}");
        flowPane.add(label);

        flowPane = new FlowPane();
        flowPane.getStyles().put("alignToBaseline", true);
        flowPane.getStyles().put("horizontalSpacing", 5);
        boxPane.add(flowPane);

        textInput = new TextInput();
        textInput.setTextSize(10);
        textInput.setMaximumLength(10);
        textInput.setValidator(new IntValidator());
        textInput.setText(scope == null ? "" : String.valueOf(scope.end));
        flowPane.add(textInput);

        textInput.getComponentStateListeners().add(new ComponentStateListener.Adapter() {
            @Override
            public void focusedChanged(Component component, Component obverseComponent) {
                if (!component.isFocused()) {
                    TextInput textInput = (TextInput)component;
                    Scope scope = (Scope)dictionary.get(key);

                    try {
                        int end = Integer.parseInt(textInput.getText());
                        dictionary.put(key, new Scope(scope == null ? end : scope.start, end,
                            scope == null ? end : scope.extent));
                    } catch (Exception exception) {
                        displayErrorMessage(exception, component.getWindow());
                        textInput.setText(scope == null ? "" : String.valueOf(scope.end));
                    }
                }
            }
        });

        label = new Label("end");
        label.getStyles().put("font", "{italic:true}");
        flowPane.add(label);

        flowPane = new FlowPane();
        flowPane.getStyles().put("alignToBaseline", true);
        flowPane.getStyles().put("horizontalSpacing", 5);
        boxPane.add(flowPane);

        textInput = new TextInput();
        textInput.setTextSize(10);
        textInput.setMaximumLength(10);
        textInput.setValidator(new IntValidator());
        textInput.setText(scope == null ? "" : String.valueOf(scope.extent));
        flowPane.add(textInput);

        textInput.getComponentStateListeners().add(new ComponentStateListener.Adapter() {
            @Override
View Full Code Here

Examples of xnap.util.prefs.IntValidator

  setDefault("localPort", "6600-6700", new PortRangeValidator());
  setDefault("maxAutoconnectServers", "10");
  setDefault("maxLoginsPerNetwork", "1");
  setDefault("maxPacketsPerTick", "50");
  setDefault("maxSearchResultsPerServer", "200",
       new IntValidator(0, Integer.MAX_VALUE));
  setDefault("maxSearchServers", "5");
  setDefault("maxSharesPerServer", "500");
  setDefault("minimumShares", "0");
  setDefault("minimumSharesMessage", "Sorry, you are not allowed to"
       + " download since you do not share enough.");
View Full Code Here

Examples of xnap.util.prefs.IntValidator

  setDefault("autoJoinChannels", "#xnap");
  setDefault("autoResumeDownloads", "false");
  setDefault("autoVersionCheck", "true");
  setDefault("autoDownlodMaxSearches", "12");
  setDefault("autoDownlodSearchInterval", "900",
       new IntValidator(600));
  setDefault("beepOnChatMessage", "false");
  setDefault("blinkOnChannelJoin", "true");
  setDefault("browseTableColumns", "0;2;3;5;10");
  setDefault("buildSearchTreeOnStartup", "false");
  setDefault("captureLauncherOutput", "false");
  setDefault("channelTableColumns", "0;1;2");
  setDefault("chatBackgroundColor", "16777215");
  setDefault("chatErrorColor", "255");
  setDefault("chatFont", "Monospaced;0;12");
  setDefault("chatAwayMessage", "I'm away, please try again later.");
  setDefault("chatIgnoreMessage", "I'm ignoring you, please stop sending"
       + " messages.");
  setDefault("chatInfoColor", "51455");
  setDefault("chatMessageColor", "0");
  setDefault("chatUserColor", "16711680");
  setDefault("chatVerticalDividerLocation", "400");
  setDefault("chatGlobalVerticalDividerLocation", "400");
  setDefault("consoleFont", "Monospaced;1;12");
  setDefault("consoleForegroundColor", "51455");
  setDefault("consoleBackgroundColor", "0");
  setDefault("consoleBackgroundColor", "0");
  setDefault("correctivePixels", "0");
  setDefault("debugLogFile", FileHelper.getHomeDir() + "debug.log");
  setDefault("delIncompleteFiles", "true");
  setDefault("DocumentsDownloadDir", "");
  setDefault("downloadDir",
       FileHelper.directory(System.getProperty("user.home")));
  setDefault("downloadMaxTries", "60");
  setDefault("downloadRetryInterval", "300",
       new IntValidator(60));
  setDefault("downloadTableColumns", "0;1;2;4;5;6");
  setDefault("downloadThrottle", "0", new IntValidator(0));
  setDefault("doubleFilterMediaType", "true");
  setDefault("email", "anonymous@universe", StringValidator.EMAIL);
  setDefault("enabledPlugins", "xnap.plugin.nap.Plugin");
  setDefault("enabledGUIPlugins",
       "xnap.plugin.nap.GUIPlugin;xnap.plugin.viewer.mp3.Plugin;"
       + "xnap.plugin.viewer.image.Plugin");
  setDefault("faqURL", "http://xnap.sourceforge.net/faq.php");
  setDefault("feedbackEmail", "");
  setDefault("feedbackName", "");
  setDefault("feedbackURL", "http://xnap.sourceforge.net/feedback.php");
  setDefault("fileLauncherCmd", nativeLauncherCmd);
  setDefault("fileLauncherType", nativeLauncherType);
  setDefault("filterResults", "false");
  setDefault("firewalled", "false");
  setDefault("focusOnAllEvents", "true");
  setDefault("hotlistDividerLocation", "200");
  setDefault("hotlistTableColumns", "0;3;4;5");
  setDefault("httpProxyHost", "");
  setDefault("httpProxyPort", "0");
  setDefault("ImagesDownloadDir", "");
  setDefault("incompleteDir", "");
  setDefault("language", "");
  setDefault("lastUpdateCheck", "0");
  setDefault("libraryHorizontalDividerLocation", "220");
  setDefault("libraryTableColumns", "0;3;4;6");
  setDefault("libraryVerticalDividerLocation", "200");
  setDefault("libraryTreeNodes",
       "downloads;incompletes;home;root;shares");
  setDefault("limitDownloads", "false");
  setDefault("limitDownloadAttempts", "false");
  setDefault("limitUploads", "true");
  setDefault("limitDownloadsPerUser", "true");
  setDefault("limitUploadsPerUser", "true");
  setDefault("linkType", "0");
  setDefault("logTransfersToFile", "false");
  setDefault("lookAndFeel",
       "com.incors.plaf.kunststoff.KunststoffLookAndFeel");
  setDefault("maxDownloads", "20", new IntValidator(0));
  setDefault("maxDownloadsPerUser", "3", new IntValidator(0));
  setDefault("maxConsoleLines", "100", new IntValidator(1));
  setDefault("maxOpenWithCommands", "5");
  setDefault("maxSwarmedConnects", "1");
  setDefault("maxUploads", "5", new IntValidator(1));
  setDefault("maxUploadsPerUser", "1", new IntValidator(0));
  setDefault("maxSearchResults", "200");
  setDefault("mp3PlayerCmd", "");
  setDefault("mp3PlayerType", "other");
  setDefault("openWithCommands", "");
  setDefault("password", StringHelper.randomString(8),
       StringValidator.REGULAR_STRING);
  setDefault("prefsWindowHeight", "520");
  setDefault("prefsWindowWidth", "640");
  setDefault("progressRunningColor", "11513855");
  setDefault("progressFinishedColor", "65280");
  setDefault("rememberFeedback", "true");
  setDefault("removeDuplicateResults", "true");
  setDefault("searchBitrate", "0");
  setDefault("searchCompare", "0");
  setDefault("searchDividerLocation", "200");
  setDefault("searchHistorySize", "30");
  setDefault("searchMediaType", "0");
  setDefault("searchTableColumns", "0;2;3;5;6;10");
  setDefault("searchTableSortedColumn", "-11");
  setDefault("sendChatAwayMessage", "false");
  setDefault("sendChatIgnoreMessage", "true");
  setDefault("PrintServerNotificationsInChatWindow", "false");
  setDefault("SoftwareDownloadDir", "");
  setDefault("shareFullPath", "true");
  setDefault("showChatMsgTime", "true");
  setDefault("showCloseDialog", "true");
  setDefault("showCmdlToolbar", "false");
  setDefault("showCopyDialog", "true");
  setDefault("showDeleteDownloadsDialog", "true");
  setDefault("showDeleteFilesDialog", "true");
  setDefault("showIcons", "true");
  setDefault("showMainToolbar", "true");
  setDefault("showMoveDialog", "true");
  setDefault("showShareDialog", "true");
  setDefault("showSearchOptions", "true");
  setDefault("showSplash", "true");
  setDefault("showToolTips", !Updater.hasMacOSXToolTipsBug() + "");
  setDefault("socksProxyHost", "");
  setDefault("socksProxyPort", "0");
  setDefault("theme", "xnap.gui.theme.PlainTheme");
  setDefault("transferDividerLocation", "220");
  setDefault("transferLogFile", FileHelper.getHomeDir() + "transfer.log");
  setDefault("throttleDownloads", "false");
  setDefault("throttleUploads", "false");
  setDefault("updaterInterval", "3600", new IntValidator(60));
  setDefault("updateURL",
       "http://xnap.sourceforge.net/updates/LATEST_VERSION.txt");
  setDefault("uploadDirs", "");
  setDefault("uploadTableColumns", "0;1;2;4;5;6");
  setDefault("uploadThrottle", "0", new IntValidator(0));
  setDefault("useEmacsKeyBindings", "false");
  setDefault("username", StringHelper.randomString(8),
       StringValidator.REGULAR_STRING);
  setDefault("useHttpProxy", "false");
  setDefault("userTableColumns", "0;1");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.