Package net.helipilot50.stocktrade.framework

Examples of net.helipilot50.stocktrade.framework.TextData$qq_Resolver


        }
    }
   
    //PM:14/3/08 properties for binding the text value
    public void setText(String value){
      this.setTextValue(new TextData(value));
    }
View Full Code Here


     */
    public static Array_Of_TextData<TextData> getPrinterList(){
      PrintService[] services = PrintServiceLookup.lookupPrintServices(null, null) ;
      Array_Of_TextData<TextData> names = new Array_Of_TextData<TextData>();
      for (PrintService service : services){
        names.add(new TextData(service.getName()));
      }
      return names;
    }
View Full Code Here

              }
              else if (value instanceof TextData) {
                  model.setTextValue((TextData)value);
              }
              else if (value instanceof String) {
                  model.setTextValue(new TextData((String)value));
              }
              else {
                  model.setObjectValue(value);
              }
            }
View Full Code Here

                return new IntegerData(element.getIntegerValue());
            }
        }
        else if (TextData.class.isAssignableFrom(elementClass)) {
            try {
                TextData newValue = (TextData)elementClass.newInstance();
                newValue.setValue(element.getTextValue());
                return newValue;
            }
            catch (Exception e) {
                // Shouldn't get here, let's keep the compiler happy
                return element == null ? null : element.getTextValue();
View Full Code Here

            hiddenPages.clear();
        }

        for (int i = 0; i < pages.size(); i++) {
            JPanel page = (JPanel) pages.get(i);
            TextData caption = Caption.get(page);
            // TF:13/8/07:Panels don't have borders in tab panes
            Border b = page.getBorder();
            if (b instanceof TitledBorder) {
              ((TitledBorder)b).setTitle("");
                ((TitledBorder)b).setBorder(new EmptyBorder(0,0,0,0));
            }
            else {
                page.setBorder(null);
            }
            page.setMinimumSize(null);
            page.setPreferredSize(null);
            page.setSize(1, 1);
           
            addTab(caption.getValue(), page);
           
        }
        this.setSize(1,1);
        this.setMinimumSize(null);
        this.setPreferredSize(null);
View Full Code Here

    public static TextGraphic drawMultiLineText(JPanel form, String text,
            int startX, int startY, Font font, int horizAlign, int penColor,
            int width, int height, int visibleColumns, int visibleLines,
            boolean hasWordWrap, int lineSpacing) {
        return drawMultiLineText(form, new TextData(text), startX, startY,
                font, horizAlign, penColor, width, height, visibleColumns,
                visibleLines, hasWordWrap, lineSpacing);
    }
View Full Code Here

    public static TextGraphic drawSingleLineText(JPanel form, String text,
            int startX, int startY, Font font, int horizAlign, int vertAlign,
            int penColor, int width, int visibleColumns) {

        return drawSingleLineText(form, new TextData(text), startX, startY,
                font, horizAlign, vertAlign, penColor, width, visibleColumns);
    }
View Full Code Here

    public TextData getCaption() {
        if (caption == null) {
            Border border = getBorder();
            if ((border != null) && (border instanceof TitledBorder)) {
                String title = ((TitledBorder) border).getTitle();
                caption = (title == null) ? null : new TextData(title);
            }
        }
        return caption;
    }
View Full Code Here

    public void setCaption(String pCaption) {
        if (pCaption == null) {
            this.setCaption((TextData)null);
        }
        else {
            this.setCaption(new TextData(pCaption));
        }
    }
View Full Code Here

            this.setCaption(new TextData(pCaption));
        }
    }

    public void setCaption(TextData pCaption) {
        TextData oldValue = caption;
        caption = pCaption;
        Border border = getBorder();
        if (border != null) {
            if (border instanceof GridTitledBorder) {
                ((GridTitledBorder)border).setTitle(pCaption.toString());
View Full Code Here

TOP

Related Classes of net.helipilot50.stocktrade.framework.TextData$qq_Resolver

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.