Package pivot.wtk

Examples of pivot.wtk.TextInput$TextInputListenerList


        // Calculate the text bounds
        Bounds textBounds = itemRenderer.getTextBounds();

        if (textBounds != null) {
            textInput = new TextInput();
            Insets padding = (Insets)textInput.getStyles().get("padding");

            // Calculate the bounds of what we're editing
            Bounds editBounds = new Bounds(itemBounds);
            editBounds.x += textBounds.x - (padding.left + 1);
View Full Code Here


        // Get the text bounds
        Bounds textBounds = nodeRenderer.getTextBounds();

        if (textBounds != null) {
            textInput = new TextInput();
            Insets padding = (Insets)textInput.getStyles().get("padding");

            // Calculate the bounds of what we're editing
            Bounds editBounds = new Bounds(nodeBounds);
            editBounds.x += textBounds.x - (padding.left + 1);
View Full Code Here

        frame1.setTitle("File Browser Test");
        frame1.setPreferredSize(480, 640);
        frame1.open(display);

        FlowPane flowPane2 = new FlowPane();
        flowPane2.add(new TextInput());
        frame2 = new Frame(flowPane2);
        frame2.setTitle("Frame 2");
        frame2.setPreferredSize(240, 80);
        frame2.open(display);

        FlowPane flowPane3 = new FlowPane();
        flowPane3.add(new TextInput());
        frame3 = new Frame(flowPane3);
        frame3.setTitle("Frame 3");
        frame3.setPreferredSize(240, 80);
        frame3.open(display);
    }
View Full Code Here

        Bounds cellBounds = tableView.getCellBounds(rowIndex, columnIndex);
        tableView.scrollAreaToVisible(cellBounds);
        cellBounds = tableView.getVisibleArea(cellBounds);

        // Create the text input
        textInput = new TextInput();
        textInput.setText(cellData == null ? "" : cellData.toString());
        textInput.setPreferredWidth(cellBounds.width);
        textInput.getComponentKeyListeners().add(textInputKeyHandler);

        // Create and open the popup
View Full Code Here

        // Get the text bounds
        Bounds textBounds = nodeRenderer.getTextBounds();

        if (textBounds != null) {
            textInput = new TextInput();
            Insets padding = (Insets)textInput.getStyles().get("padding");

            // Calculate the bounds of what we're editing
            Bounds editBounds = new Bounds(nodeBounds.x + textBounds.x - (padding.left + 1),
                nodeBounds.y, nodeBounds.width - textBounds.x + (padding.left + 1),
View Full Code Here

            String columnName = tableViewColumns.get(i).getName();
            Component editorComponent = cellEditors.get(columnName);

            // Default to a TextInput editor
            if (editorComponent == null) {
                TextInput editorTextInput = new TextInput();
                editorTextInput.setTextKey(columnName);
                editorComponent = editorTextInput;
            }

            // Add the editor component to the table pane
            tablePaneRow.add(editorComponent);
View Full Code Here

        // Calculate the text bounds
        Bounds textBounds = itemRenderer.getTextBounds();

        if (textBounds != null) {
            textInput = new TextInput();
            Insets padding = (Insets)textInput.getStyles().get("padding");

            // Calculate the bounds of what we're editing
            Bounds editBounds = new Bounds(itemBounds.x + textBounds.x - (padding.left + 1),
                itemBounds.y, itemBounds.width - textBounds.x + (padding.left + 1),
View Full Code Here

    @Override
    public void install(Component component) {
        super.install(component);

        TextInput textInput = (TextInput)component;
        textInput.getTextInputListeners().add(this);
        textInput.getTextInputCharacterListeners().add(this);
        textInput.getTextInputSelectionListeners().add(this);

        textInput.setCursor(Cursor.TEXT);

        selectionChanged(textInput, 0, 0);
    }
View Full Code Here

        selectionChanged(textInput, 0, 0);
    }

    @Override
    public void uninstall() {
        TextInput textInput = (TextInput)getComponent();
        textInput.getTextInputListeners().remove(this);
        textInput.getTextInputCharacterListeners().remove(this);
        textInput.getTextInputSelectionListeners().remove(this);

        textInput.setCursor(Cursor.DEFAULT);

        super.uninstall();
    }
View Full Code Here

        super.uninstall();
    }

    public int getPreferredWidth(int height) {
        TextInput textInput = (TextInput)getComponent();
        int textSize = textInput.getTextSize();

        // TODO Localize?
        // TODO Recalculate only when font changes
        String testString = "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz";
View Full Code Here

TOP

Related Classes of pivot.wtk.TextInput$TextInputListenerList

Copyright © 2018 www.massapicom. 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.