Package org.jitterbit.ui.property

Examples of org.jitterbit.ui.property.Binding.syncUi()


        setMainPanel(c);
    }

    private void installWaitIndication() {
        Binding b = new WaitStateBinding(model.<Boolean>getProperty(StructureFileSelectionModel.BUSY), getWaitService());
        b.syncUi();
    }

    private void startDownloadOfExistingStructures() {
        structureFileManager.initialize();
    }
View Full Code Here


        if (uploadLocalFileChoice != null) {
            buttons.put(FileInputMode.LOCAL, uploadLocalFileChoice);
        }
        buttons.put(FileInputMode.FROM_SAMPLE_FILE, fromSampleFileChoice);
        Binding modeBinding = RadioButtonEnumBinding.forButtons(model.getInputModeProperty(), buttons);
        modeBinding.syncUi();
        if (localFileSelector != null) {
            Binding localFileBinding = new FileSelectorBinding(localFileSelector, model.getLocalFileProperty());
            localFileBinding.syncUi();
        }
    }
View Full Code Here

        buttons.put(FileInputMode.FROM_SAMPLE_FILE, fromSampleFileChoice);
        Binding modeBinding = RadioButtonEnumBinding.forButtons(model.getInputModeProperty(), buttons);
        modeBinding.syncUi();
        if (localFileSelector != null) {
            Binding localFileBinding = new FileSelectorBinding(localFileSelector, model.getLocalFileProperty());
            localFileBinding.syncUi();
        }
    }

    public void useForEdi() {
        existingStructureChoice.setText("&Select an existing transaction set from the server");
View Full Code Here

        setMainPanel(c);
    }

    private void installWaitIndication() {
        Binding b = new WaitStateBinding(model.<Boolean>getProperty(StructureFileSelectionModel.BUSY), getWaitService());
        b.syncUi();
    }

    private void startDownloadOfExistingStructures() {
        structureFileManager.initialize();
    }
View Full Code Here

        layoutPage();
    }

    private void bindProperties() {
        Binding b = new WaitStateBinding(model.<Boolean> getProperty(OperationLogModel.TALKING_TO_SERVER), this);
        b.syncUi();
    }

    private void layoutPage() {
        JSplitPane split = createSplitPane();
        setDisplayPanel(split);
View Full Code Here

        layoutPage();
    }

    private void installWaitIndication() {
        Binding waitHandler = createWaitHandler();
        waitHandler.syncUi();
        addResource(new DisposableWindowElementResource(waitHandler));
    }

    private Binding createWaitHandler() {
        Property<Boolean> property = consoleView.getModel().getProperty(ProjectConsoleModel.TALKING_TO_SERVER);
View Full Code Here

        return grid;
    }

    private void bindOkButton(KongaDialog dialog) {
        Binding okEnabler = new ComponentEnabledBinding(model, XsdGeneratorModel.VALID_SETTINGS, dialog.getOKButton());
        okEnabler.syncUi();
        bindings.add(okEnabler);
    }


    private static class RootNameField extends TextInputField2 {
View Full Code Here

        KongaDialog dialog = new KongaDialog(UiUtils.getActiveWindow(), "File name conflict");
        dialog.standardLayout(ui, KongaDialog.CONTINUE_CANCEL);
        dialog.setContinueButtonAsDefault();
        dialog.setFocusedComponent(ui);
        Binding binding = new ComponentEnabledBinding(model, XsdGeneratorModel.VALID_SETTINGS, dialog.getContinueButton());
        binding.syncUi();
        return dialog;
    }


    private class Ui implements UiProvider {
View Full Code Here

    }

    private void installWaitIndication(PluginPositionSelectionService selectionService, Dialog dialog) {
        Property<Boolean> busy = selectionService.getModel().getProperty(PluginPositionSelectorModel.BUSY);
        Binding b = new WaitStateBinding(busy, dialog);
        b.syncUi();
    }


    private static class Dialog extends WizardStyleDialog {
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.