Examples of XTextField


Examples of com.sshtools.common.ui.XTextField

        gbc.anchor = GridBagConstraints.WEST;
        promptReply = new JTextComponent[prompts.length];

        for (int i = 0; i < prompts.length; i++) {
            if (prompts[i].echo()) {
                promptReply[i] = new XTextField(prompts[i].getResponse(), 15);
            } else {
                promptReply[i] = new JPasswordField(prompts[i].getResponse(), 15);
            }

            System.out.println("Creating prompt " + prompts[i].getPrompt() +
View Full Code Here

Examples of com.sshtools.common.ui.XTextField

        //  File
        inputFileLabel = new JLabel("Input File");
        UIUtil.jGridBagAdd(keyPanel, inputFileLabel, gbc, 1);
        gbc.insets = normalInsets;
        gbc.weightx = 1.0;
        inputFile = new XTextField(20);
        UIUtil.jGridBagAdd(keyPanel, inputFile, gbc, GridBagConstraints.RELATIVE);
        inputFileLabel.setLabelFor(inputFile);
        gbc.weightx = 0.0;
        browseInput = new JButton("Browse");
        browseInput.setMnemonic('b');
        browseInput.addActionListener(this);
        UIUtil.jGridBagAdd(keyPanel, browseInput, gbc,
            GridBagConstraints.REMAINDER);

        //  File
        gbc.insets = indentedInsets;
        outputFileLabel = new JLabel("Output File");
        UIUtil.jGridBagAdd(keyPanel, outputFileLabel, gbc, 1);
        gbc.insets = normalInsets;
        gbc.weightx = 1.0;
        outputFile = new XTextField(20);
        UIUtil.jGridBagAdd(keyPanel, outputFile, gbc,
            GridBagConstraints.RELATIVE);
        gbc.weightx = 0.0;
        outputFileLabel.setLabelFor(outputFile);
        browseOutput = new JButton("Browse");
View Full Code Here

Examples of com.sshtools.common.ui.XTextField

        //  File
        inputFileLabel = new JLabel("Input File");
        UIUtil.jGridBagAdd(keyPanel, inputFileLabel, gbc, 1);
        gbc.insets = normalInsets;
        gbc.weightx = 1.0;
        inputFile = new XTextField(20);
        UIUtil.jGridBagAdd(keyPanel, inputFile, gbc, GridBagConstraints.RELATIVE);
        inputFileLabel.setLabelFor(inputFile);
        gbc.weightx = 0.0;
        browseInput = new JButton("Browse");
        browseInput.setMnemonic('b');
        browseInput.addActionListener(this);
        UIUtil.jGridBagAdd(keyPanel, browseInput, gbc,
            GridBagConstraints.REMAINDER);

        //  File
        gbc.insets = indentedInsets;
        outputFileLabel = new JLabel("Output File");
        UIUtil.jGridBagAdd(keyPanel, outputFileLabel, gbc, 1);
        gbc.insets = normalInsets;
        gbc.weightx = 1.0;
        outputFile = new XTextField(20);
        UIUtil.jGridBagAdd(keyPanel, outputFile, gbc,
            GridBagConstraints.RELATIVE);
        gbc.weightx = 0.0;
        outputFileLabel.setLabelFor(outputFile);
        browseOutput = new JButton("Browse");
View Full Code Here

Examples of com.sshtools.common.ui.XTextField

        gbc.anchor = GridBagConstraints.WEST;
        promptReply = new JTextComponent[prompts.length];

        for (int i = 0; i < prompts.length; i++) {
            if (prompts[i].echo()) {
                promptReply[i] = new XTextField(prompts[i].getResponse(), 15);
            } else {
                promptReply[i] = new JPasswordField(prompts[i].getResponse(), 15);
            }

            System.out.println("Creating prompt " + prompts[i].getPrompt() +
View Full Code Here

Examples of com.sun.star.text.XTextField

        XTextFieldsSupplier xTFS = (XTextFieldsSupplier)
                 UnoRuntime.queryInterface(XTextFieldsSupplier.class,xTextDocument);
        ArrayList<XDependentTextField> xDTF=new ArrayList();
         /* Create either OOOREsult or OOOError and add to list of OOOElements */
        XEnumeration xEnum = xTFS.getTextFields().createEnumeration();
        XTextField xTF;
        while (xEnum.hasMoreElements()){
//            xDTF.add( (XDependentTextField) xEnum.nextElement())) ;
//            Logger.getLogger("com.CompPad").log(Level.FINE,"nextelement: "+((XTextField)((Any)xEnum.nextElement()).getObject()).getPresentation(true));
           
            xTF= (XTextField)((Any)xEnum.nextElement()).getObject();
View Full Code Here

Examples of com.sun.star.text.XTextField

    XTextField makeMetaField() throws Exception
    {
        Object xMeta = m_xDocFactory.createInstance(
                "com.sun.star.text.textfield.MetadataField");
        XTextField xContent = (XTextField)
            UnoRuntime.queryInterface(XTextField.class, xMeta);
        return xContent;
    }
View Full Code Here

Examples of com.sun.star.text.XTextField

    {
        try
        {
            // Use the text document's factory to create a DateTime text field,
            // and access it's XTextField interface
            XTextField xDateField = (XTextField) UnoRuntime.queryInterface (
                XTextField.class, mxDocFactory.createInstance (
                    "com.sun.star.text.TextField.DateTime" ) );

            // Insert it at the end of the document
            mxDocText.insertTextContent ( mxDocText.getEnd(), xDateField, false );
View Full Code Here

Examples of com.sun.star.text.XTextField

        XText xDocText = m_xDoc.getText();
        XTextCursor xDocTextCursor = xDocText.createTextCursor();
        xDocTextCursor.goRight((short)1, false);
        xDocTextCursor.goRight((short)3, true);

        XTextField xMetaField = inserter.makeMetaField();

        xDocText.insertTextContent(xDocTextCursor, xMetaField, true);

        XMetadatable xMetadatable = (XMetadatable)
            UnoRuntime.queryInterface(XMetadatable.class, xMetaField);
        xMetadatable.ensureMetadataReference();

        xGraph.addStatement(xMetadatable, xOdfPrefix, xPrefix);
        xGraph.addStatement(xMetadatable, xOdfSuffix, xSuffix);
        assure("getPresentation(): wrong",
            "fooabcbar".equals(xMetaField.getPresentation(false)));
        inserter.insertRange( new Range(0, 0, text) );
    }
View Full Code Here

Examples of com.sun.star.text.XTextField

        XText xDocText = m_xDoc.getText();
        XTextCursor xDocTextCursor = xDocText.createTextCursor();
        xDocTextCursor.goRight((short)1, false);
        xDocTextCursor.goRight((short)3, true);

        XTextField xMetaField = inserter.makeMetaField();

        xDocText.insertTextContent(xDocTextCursor, xMetaField, true);

        XPropertySet xPropertySet = (XPropertySet)
            UnoRuntime.queryInterface(XPropertySet.class, xMetaField);
View Full Code Here

Examples of com.sun.star.text.XTextField

            try
            {
                    // Use the text document's factory to create a DateTime text field,
                    // and access it's
                    // XTextField interface
                    XTextField xDateField = (XTextField) UnoRuntime.queryInterface (
                            XTextField.class, mxDocFactory.createInstance (
                                    "com.sun.star.text.TextField.DateTime" ) );

                    // Insert it at the end of the document
                    mxDocText.insertTextContent ( mxDocText.getEnd(), xDateField, false );
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.