Examples of MnemonicString


Examples of org.jitterbit.ui.MnemonicString

    private final WizardNameInputField field;

    private final Receiver<String> callback;

    public NameChangeUi(T item, Folder parent, Receiver<String> callback) {
        MnemonicString label = ApplicationResources.MNEMONIC_FACTORY.fromString(
                        "This is the &name given to this wizard by Jitterbit. You can rename it here.");
        field = new WizardNameInputField(label, item, parent);
        field.setSendInputChangeEvents(true);
        ChangeNotifier notifier = new ChangeNotifier();
        notifier.install(field.getInputComponent());
View Full Code Here

Examples of org.jitterbit.ui.MnemonicString

        ButtonUtils.addActionListener(new Switcher(), buttons);
        ButtonUtils.makeMutuallyExclusive(buttons);
    }

    private JToggleButton createButton(AdminConsolePart part) {
        MnemonicString text = ApplicationResources.MNEMONIC_FACTORY.fromString(part.getTitle());
        JToggleButton b = new JToggleButton(text.getText(), part.getIcon());
        ButtonUtils.applyMnemonics(b, text);
        return b;
    }
View Full Code Here

Examples of org.jitterbit.ui.MnemonicString

            super(null);
        }

        @Override
        protected JComponent getButtonLayout(JRadioButton button, OperationType type) {
            MnemonicString text = OperationTypeMnemonics.get(type);
            Icon icon = OperationTypeIcons.smallIcon(type);
            KongaLabel label = new KongaLabel(text);
            label.setIcon(icon);
            label.setLabelForButton(button);
            return BoxBuilder.horizontal().setOpaque(false).addAllWithSpace(5, button, label).container();
View Full Code Here

Examples of org.jitterbit.ui.MnemonicString

    }
   
    public void applyMnemonics() {
        EntityTypeMnemonics mnemonics = new EntityTypeMnemonics(checks.keySet(), 'C');
        for (Map.Entry<EntityType, CheckBoxCapsule> e : checks.entrySet()) {
            MnemonicString text = mnemonics.getMnemonicString(e.getKey());
            e.getValue().setText(text);
        }
    }
View Full Code Here

Examples of org.jitterbit.ui.MnemonicString

    public void layoutInGrid(TwoColumnLayout layout) {
        layout.addRow(createLabel(), selector);
    }

    private JLabel createLabel() {
        MnemonicString text = ApplicationResources.MNEMONIC_FACTORY.fromString(getString("Search.Mode.Caption"));
        KongaLabel label = new KongaLabel(text);
        label.setLabelFor(selector);
        return label;
    }
View Full Code Here

Examples of org.jitterbit.ui.MnemonicString

    private void setListLabels(ConnectedLists lists, TableRelationship r) {
        MnemonicStringCollection strings = new MnemonicStringCollection();
        strings.markCharactersAsUsed('L'/*ink*/, 'R'/*emove Link*/);
        String parentName = getNameForLabel(r.getParentObject());
        MnemonicString parentLabel = strings.autoTranslate(parentName);
        String childName = getNameForLabel(r.getChildObject());
        MnemonicString childLabel = strings.autoTranslate(childName);
        lists.setLabels(parentLabel.getRaw(), childLabel.getRaw(), WizardStyleSheet.SMALL_CAPTION_STYLE);
    }
View Full Code Here

Examples of org.jitterbit.ui.MnemonicString

     */
    public void setCaption(String text) {
        if (text == null) {
            caption.setText("");
        } else {
            MnemonicString ms = UiResourceBundle.MNEMONIC_FACTORY.fromString(text);
            LabelUtils.applyMnemonics(caption, ms);
        }
    }
View Full Code Here

Examples of org.jitterbit.ui.MnemonicString

            for (int n = 0; n < mnemonicCandidates.length; ++n) {
                Character c = mnemonicCandidates[n];
                if (isAvailable(c, allowLowerCase)) {
                    it.remove();
                    int index = adjustedName.adjustIndex(n);
                    MnemonicString mnemonic = constructMnemonicString(name, index);
                    mnemonics.put(type, mnemonic);
                    taken.add(Character.toUpperCase(c));
                    break;
                }
            }
View Full Code Here

Examples of org.jitterbit.ui.MnemonicString

    }

    private void letRemainingTypesLiveWithoutMnemonics() {
        for (EntityType t : remainingTypes) {
            String name = names.get(t);
            MnemonicString mnemonic = ApplicationResources.MNEMONIC_FACTORY.fromString(name);
            mnemonics.put(t, mnemonic);
        }
    }
View Full Code Here

Examples of org.jitterbit.ui.MnemonicString

        noSelectionErrorMessage = message;
    }

    @Override
    public void setSelectorLabel(String text) {
        MnemonicString ms = ApplicationResources.MNEMONIC_FACTORY.fromString(text);
        JLabel label = forLayout.getLabel();
        LabelUtils.applyMnemonics(label, ms);
    }
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.