Package DisplayProject.controls

Examples of DisplayProject.controls.MultiLineTextField


        }
        return qq__SpecInstTF;
    }

    public void setqq__SpecInstTF(MultiLineTextField value) {
        MultiLineTextField oldValue = qq__SpecInstTF;
        qq__SpecInstTF = value;
        this.qq_Listeners.firePropertyChange("qq__SpecInstTF", oldValue, value);
    }
View Full Code Here


        }
        return qq_Status;
    }

    public void setqq_Status(MultiLineTextField value) {
        MultiLineTextField oldValue = qq_Status;
        qq_Status = value;
        this.qq_Listeners.firePropertyChange("qq_Status", oldValue, value);
    }
View Full Code Here

       
        // --------------------------------------------------------------------
        // Expand text fields
        // --------------------------------------------------------------------
        else if (comp instanceof MultiLineTextField) {
          MultiLineTextField tf = (MultiLineTextField)comp;
         
          if (tf.getParent() != null && tf.getParent().getParent() instanceof JScrollPane) {
            JScrollPane sp = (JScrollPane)tf.getParent().getParent();
            sp.setSize(tf.getPreferredSize());
            sp.setMinimumSize(tf.getPreferredSize());
            sp.setPreferredSize(tf.getPreferredSize());

            if (removeScrollBars) {
                    sp.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
                    sp.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER);
                }
          }
            Container parent = tf.getParent();

            while (parent != null) {
                if (parent instanceof JFrame) {
                    ((JFrame)parent).validate();
                    ((JFrame)parent).pack();
View Full Code Here

        }
        return qq_theBra_description;
    }

    public void setqq_theBra_description(MultiLineTextField value) {
        MultiLineTextField oldValue = qq_theBra_description;
        qq_theBra_description = value;
        this.qq_Listeners.firePropertyChange("qq_theBra_description", oldValue, value);
    }
View Full Code Here

    private boolean printingRemoveScrollBars;

    public TextFieldCellRenderer(JScrollPane pScrollPane) {
      // CraigM:25/07/2008 - Force any pending actions on the widget through (like colour changes), so when we clone the widget, we get the latest info
      UIutils.processGUIActions(pScrollPane);
        MultiLineTextField tf = (MultiLineTextField)pScrollPane.getViewport().getComponent(0);

        this.sp = new JScrollPane(tf.cloneComponent());
        ArrayFieldCellHelper.setUpCellRenderer(pScrollPane, this.sp); // CraigM: 28/03/2008
        this.sp.setPreferredSize(pScrollPane.getPreferredSize());
        this.sp.setMinimumSize(pScrollPane.getMinimumSize());
        this.sp.setSize(pScrollPane.getSize());
        this.sp.setHorizontalScrollBarPolicy(pScrollPane.getHorizontalScrollBarPolicy());
View Full Code Here

                this.getMultiLineTextField().setBackgroundTemporarily(SystemColor.window);
            }
        }
       
        if (this.isPrinting && this.sp.getViewport().getComponentCount() > 0) {
          MultiLineTextField tf = this.getMultiLineTextField();
        sp.setSize(tf.getPreferredSize());
        sp.setMinimumSize(tf.getPreferredSize());
        sp.setPreferredSize(tf.getPreferredSize());
       
        if (printingRemoveScrollBars) {
          sp.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
          sp.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER);
        }
View Full Code Here

     */
    public BufferedImage getImage(int width) {
    int height = this.sp.getMinimumSize().height;
    // TF:27/11/2009:Changed this to use the passed width
//    int width = this.sp.getMinimumSize().width;
        MultiLineTextField tf = (MultiLineTextField)this.sp.getViewport().getComponent(0);

    if (this.spPainter == null) {
      MultiLineTextField newTF = TextEditFactory.newTextField("painter", tf.getRows(), tf.getColumns());
        this.spPainter = new JScrollPane(newTF);
        this.spPainter.setHorizontalScrollBarPolicy(this.sp.getHorizontalScrollBarPolicy());
        this.spPainter.setVerticalScrollBarPolicy(this.sp.getVerticalScrollBarPolicy());
        newTF.setForeground(tf.getForeground());
        newTF.setBackground(tf.getBackground());
      }
   
    return ArrayFieldCellHelper.createBufferedImage(this.spPainter, width, height);
    }
View Full Code Here

        }
        return qq__SpecInstTF;
    }

    public void setqq__SpecInstTF(MultiLineTextField value) {
        MultiLineTextField oldValue = qq__SpecInstTF;
        qq__SpecInstTF = value;
        this.qq_Listeners.firePropertyChange("qq__SpecInstTF", oldValue, value);
    }
View Full Code Here

        }
        return qq_text;
    }

    public void setqq_text(MultiLineTextField value) {
        MultiLineTextField oldValue = qq_text;
        qq_text = value;
        this.qq_Listeners.firePropertyChange("qq_text", oldValue, value);
    }
View Full Code Here

        }
        return qq_sometext;
    }

    public void setqq_sometext(MultiLineTextField value) {
        MultiLineTextField oldValue = qq_sometext;
        qq_sometext = value;
        this.qq_Listeners.firePropertyChange("qq_sometext", oldValue, value);
    }
View Full Code Here

TOP

Related Classes of DisplayProject.controls.MultiLineTextField

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.