Examples of KongaTextField


Examples of org.jitterbit.ui.widget.text.KongaTextField

        changeNotifier = new ChangeNotifier();
        field.getInputComponent().getDocument().addDocumentListener(changeNotifier);
    }
   
    private IntegerInputField createInputField(String label, int length) {
        KongaTextField comp = new KongaTextField(length);
        comp.setFixedSize(true);
        comp.setDocument(new IntegerDocument());
        JLabel jlabel = (label != null && label.length() > 0) ? new JLabel(label) : null;
        return new IntegerInputField(label, comp, Integer.MIN_VALUE, Integer.MAX_VALUE, jlabel);
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.text.KongaTextField

            caption = new KongaLabel(Strings.mnemonic("StringSearch.Field.Caption"));
            caption.setAlignmentX(Component.LEFT_ALIGNMENT);
        }

        private void createField() {
            field = new KongaTextField(20);
            field.setAlignmentX(Component.LEFT_ALIGNMENT);
            caption.setLabelFor(field);
            field.getDocument().addDocumentListener(new DocumentContentChangeListener() {

                @Override
View Full Code Here

Examples of org.jitterbit.ui.widget.text.KongaTextField

            renameNewButton = b;
        }
       
       
        private void createTextField(FileStoreFile existingFile, JComponent parent, GridBagConstraints gbc) {
            newNameField = new KongaTextField(new File(existingFile.getPath()).getName(), 30);
            newNameField.addFocusListener(new FocusAdapter() {

                @Override
                public void focusGained(FocusEvent e) {
                    renameNewButton.setSelected(true);
View Full Code Here

Examples of org.jitterbit.ui.widget.text.KongaTextField

        TextStyles.DefaultMonoSpaced.makeOver(area);
        return area;
    }

    private JTextField createValueField(String text) {
        KongaTextField field = new KongaTextField(text);
        field.setEditable(false);
        field.setSelectAllWhenFocused(true);
        return field;
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.text.KongaTextField

        public Prompt(Window owner, int lineCount) {
            this.dlg = new KongaDialog(owner, "Go to Line");
            this.lineCount = lineCount;
            this.messageLabel = new JLabel(" ");
            this.field = new KongaTextField();
        }
View Full Code Here

Examples of org.jitterbit.ui.widget.text.KongaTextField

        private final NameValidator nameValidator;

        private String message;

        public NameInputField(String name, NameValidator nameValidator) {
            super(name, new KongaTextField(20), new JLabel(name));
            this.nameValidator = nameValidator;
            setSelectAllWhenFocused(true);
        }
View Full Code Here

Examples of org.jitterbit.ui.widget.text.KongaTextField

    public void requestFocus() {
        startField.requestFocus();
    }

    private DateInputField createDateField(String label, Date date) {
        KongaTextField wrappee = new KongaTextField(20);
        wrappee.setSelectAllWhenFocused(true);
        DateInputField f = new DateInputField(label, DATE_FORMAT, wrappee, new JLabel(label));
        f.setDate(date);
        return f;
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.text.KongaTextField

    private final JButton zoomOutButton;

    public GraphZoomer(Graph2D graph) {
        this.graph = graph;
        value = (int) (graph.getZoomLevel() * 100);
        valueField = new KongaTextField(5);
        valueField.setSelectAllWhenFocused(true);
        zoomInButton = new JButton("+");
        zoomOutButton = new JButton("-");
        ButtonUtils.addActionListener(new ButtonListener(), zoomInButton, zoomOutButton);
        addFieldListener();
View Full Code Here

Examples of org.jitterbit.ui.widget.text.KongaTextField

    public void setOffset(Point p) {
        offset = new Point(p);
    }

    protected JTextField createTextField(Object node) {
        KongaTextField field = new KongaTextField();
        field.setSelectAllWhenFocused(true);
        return field;
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.text.KongaTextField

        list.addSelectionListener(new SelectionRouter());
        return list;
    }

    private KongaTextField createSearchField() {
        KongaTextField f = new KongaTextField();
        f.getDocument().addDocumentListener(new DocumentContentChangeListener() {

            @Override
            public void contentChanged(DocumentEvent e) {
                editorList.setFilter(new Filter(searchField.getText()));
                editorList.selectFirst();
            }
        });
        f.addActionListener(selector);
        Action keyDown = new AbstractAction() {

            @Override
            public void actionPerformed(ActionEvent e) {
                editorList.requestFocus();
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.