• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java ThumbNailBuilder类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.openbravo.pos.util.ThumbNailBuilder的典型用法代码示例。如果您正苦于以下问题:Java ThumbNailBuilder类的具体用法?Java ThumbNailBuilder怎么用?Java ThumbNailBuilder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ThumbNailBuilder类属于com.openbravo.pos.util包,在下文中一共展示了ThumbNailBuilder类的18个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: JCatalog

import com.openbravo.pos.util.ThumbNailBuilder; //导入依赖的package包/类
public JCatalog(DataLogicSales dlSales, PropertiesConfig panelconfig) {

        m_dlSales = dlSales;

        this.pricevisible = "true".equals(panelconfig.getProperty("pricevisible", "true"));
        this.taxesincluded = "true".equals(panelconfig.getProperty("taxesincluded", "false"));
        this.refvisible = "true".equals(panelconfig.getProperty("refvisible", "false"));
        this.namevisible = "true".equals(panelconfig.getProperty("namevisible", "true"));
        this.stockvisible = "true".equals(panelconfig.getProperty("stockvisible", "false"));

        initComponents();

        m_jPanelImageViewer.setVisible("true".equals(panelconfig.getProperty("imageviewer", "true")));

        iTextFontSize = Integer.parseInt(panelconfig.getProperty("font-size", "12"));

        tnbbutton = new ThumbNailBuilder(Integer.parseInt(panelconfig.getProperty("img-width", "64")),
                Integer.parseInt(panelconfig.getProperty("img-height", "54")),
                iTextFontSize,
                "com/openbravo/images/package.png");
    }
 
开发者ID:nordpos,项目名称:nordpos,代码行数:22,代码来源:JCatalog.java


示例2: JPanelButtons

import com.openbravo.pos.util.ThumbNailBuilder; //导入依赖的package包/类
/** Creates new form JPanelButtons */
public JPanelButtons(String sConfigKey, JPanelTicket panelticket) {
    initComponents();
    
    // Load categories default thumbnail
    tnbmacro = new ThumbNailBuilder(16, 16, "com/openbravo/images/greenled.png");
    
    this.panelticket = panelticket;
    
    props = new Properties();
    events = new HashMap<String, String>();
    
    String sConfigRes = panelticket.getResourceAsXML(sConfigKey);
    
    if (sConfigRes != null) {
        try {
            if (m_sp == null) {
                SAXParserFactory spf = SAXParserFactory.newInstance();
                m_sp = spf.newSAXParser();
            }
            m_sp.parse(new InputSource(new StringReader(sConfigRes)), new ConfigurationHandler());

        } catch (ParserConfigurationException ePC) {
            logger.log(Level.WARNING, LocalRes.getIntString("exception.parserconfig"), ePC);
        } catch (SAXException eSAX) {
            logger.log(Level.WARNING, LocalRes.getIntString("exception.xmlfile"), eSAX);
        } catch (IOException eIO) {
            logger.log(Level.WARNING, LocalRes.getIntString("exception.iofile"), eIO);
        }
    }     

}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:33,代码来源:JPanelButtons.java


示例3: readValues

import com.openbravo.pos.util.ThumbNailBuilder; //导入依赖的package包/类
public void readValues(DataRead dr) throws BasicException {
    m_sID = dr.getString(1);
    m_sName = dr.getString(2);
    BufferedImage img = ImageUtils.readImage(dr.getBytes(3));
    ThumbNailBuilder tnbcat = new ThumbNailBuilder(32, 32, defimg);
    m_container = new JPanelDrawing(img);
    m_icon = new ImageIcon(tnbcat.getThumbNail(img));        
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:9,代码来源:Floor.java


示例4: JCatalog

import com.openbravo.pos.util.ThumbNailBuilder; //导入依赖的package包/类
public JCatalog(DataLogicSales dlSales, boolean pricevisible, boolean taxesincluded, int width, int height) {
    
    m_dlSales = dlSales;
    this.pricevisible = pricevisible;
    this.taxesincluded = taxesincluded;
    
    initComponents();
    
    m_jListCategories.addListSelectionListener(this);                
    m_jscrollcat.getVerticalScrollBar().setPreferredSize(new Dimension(35, 35));
    
    tnbcat = new ThumbNailBuilder(32, 32, "com/openbravo/images/folder_yellow.png");           
    tnbbutton = new ThumbNailBuilder(width, height, "com/openbravo/images/package.png");
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:15,代码来源:JCatalog.java


示例5: JPanelButtons

import com.openbravo.pos.util.ThumbNailBuilder; //导入依赖的package包/类
/** Creates new form JPanelButtons
 * @param sConfigKey
 * @param panelticket */
public JPanelButtons(String sConfigKey, JPanelTicket panelticket) {
    initComponents();
    
    // Load categories default thumbnail
    tnbmacro = new ThumbNailBuilder(24, 24, "com/openbravo/images/run_script.png");
    
    this.panelticket = panelticket;
    
    props = new Properties();
    events = new HashMap<>();
    
    String sConfigRes = panelticket.getResourceAsXML(sConfigKey);
    
    if (sConfigRes != null) {
        try {
            if (m_sp == null) {
                SAXParserFactory spf = SAXParserFactory.newInstance();
                m_sp = spf.newSAXParser();
            }
            m_sp.parse(new InputSource(new StringReader(sConfigRes)), new ConfigurationHandler());

        } catch (ParserConfigurationException ePC) {
            logger.log(Level.WARNING, LocalRes.getIntString("exception.parserconfig"), ePC);
        } catch (SAXException eSAX) {
            logger.log(Level.WARNING, LocalRes.getIntString("exception.xmlfile"), eSAX);
        } catch (IOException eIO) {
            logger.log(Level.WARNING, LocalRes.getIntString("exception.iofile"), eIO);
        }
    }     

}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:35,代码来源:JPanelButtons.java


示例6: readValues

import com.openbravo.pos.util.ThumbNailBuilder; //导入依赖的package包/类
/**
 *
 * @param dr
 * @throws BasicException
 */
@Override
public void readValues(DataRead dr) throws BasicException {
    m_sID = dr.getString(1);
    m_sName = dr.getString(2);
    BufferedImage img = ImageUtils.readImage(dr.getBytes(3));
    ThumbNailBuilder tnbcat = new ThumbNailBuilder(32, 32, defimg);
    m_container = new JPanelDrawing(img);
    m_icon = new ImageIcon(tnbcat.getThumbNail(img));        
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:15,代码来源:Floor.java


示例7: ScriptPaymentCash

import com.openbravo.pos.util.ThumbNailBuilder; //导入依赖的package包/类
/**
         *
         * @param dlSystem
         */
        public ScriptPaymentCash(DataLogicSystem dlSystem) {
//added 19.04.13 JDL        
            AppConfig m_config =  new AppConfig(new File((System.getProperty("user.home")), AppLocal.APP_ID + ".properties"));        
            m_config.load();
            this.m_config = m_config;
        
            this.dlSystem = dlSystem;
            tnbbutton = new ThumbNailBuilder(64, 50, "com/openbravo/images/cash.png");
        }
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:14,代码来源:JPaymentCashPos.java


示例8: OrderCustomerList

import com.openbravo.pos.util.ThumbNailBuilder; //导入依赖的package包/类
/**
     * Creates new form CustomersList
     * @param dlCustomers
     * @param app
     * @param panelticket
     */
    public OrderCustomerList(DataLogicCustomers dlCustomers, AppView app, TicketsEditor panelticket) {
        this.application = app;
        this.panelticket = panelticket;
        this.dataLogicCustomers = dlCustomers;
        this.dataLogicReceipts = (DataLogicReceipts) application.getBean("com.openbravo.pos.sales.DataLogicReceipts");
        tnbbutton = new ThumbNailBuilder(90, 98);

//        orderSynchroniseHelper = new OrdersSynchroniseHelper(application, dataLogicReceipts, panelticket.getActiveTicket());

        initComponents();
    }
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:18,代码来源:OrderCustomerList.java


示例9: JPanelButtons

import com.openbravo.pos.util.ThumbNailBuilder; //导入依赖的package包/类
/**
 * Creates new form JPanelButtons
 */
public JPanelButtons(String sConfigRes, JPanelTicket panelticket) {
    initComponents();

    // Load categories default thumbnail
    tnbmacro = new ThumbNailBuilder(16, 16, 12, "com/openbravo/images/greenled.png");

    this.panelticket = panelticket;

    events = new HashMap<String, String>();

    if (sConfigRes != null) {
        try {
            if (m_sp == null) {
                SAXParserFactory spf = SAXParserFactory.newInstance();
                m_sp = spf.newSAXParser();
            }
            m_sp.parse(new InputSource(new StringReader(sConfigRes)), new ConfigurationHandler());

        } catch (ParserConfigurationException ePC) {
            logger.log(Level.WARNING, LocalRes.getIntString("exception.parserconfig"), ePC);
        } catch (SAXException eSAX) {
            logger.log(Level.WARNING, LocalRes.getIntString("exception.xmlfile"), eSAX);
        } catch (IOException eIO) {
            logger.log(Level.WARNING, LocalRes.getIntString("exception.iofile"), eIO);
        }
    }

}
 
开发者ID:nordpos,项目名称:nordpos,代码行数:32,代码来源:JPanelButtons.java


示例10: readValues

import com.openbravo.pos.util.ThumbNailBuilder; //导入依赖的package包/类
public void readValues(DataRead dr) throws BasicException {
    m_sID = dr.getString(1);
    m_sName = dr.getString(2);
    BufferedImage img = ImageUtils.readImage(dr.getBytes(3));
    ThumbNailBuilder tnbcat = new ThumbNailBuilder(32, 32, 12, defimg);
    m_container = new JPanelDrawing(img);
    m_icon = new ImageIcon(tnbcat.getThumbNail(img));        
}
 
开发者ID:nordpos,项目名称:nordpos,代码行数:9,代码来源:Floor.java


示例11: ProductRenderer

import com.openbravo.pos.util.ThumbNailBuilder; //导入依赖的package包/类
/** Creates a new instance of ProductRenderer */
public ProductRenderer() {   
    tnbprod = new ThumbNailBuilder(64, 32, "com/openbravo/images/package.png");
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:5,代码来源:ProductRenderer.java


示例12: init

import com.openbravo.pos.util.ThumbNailBuilder; //导入依赖的package包/类
public void init(Session s){

        m_sInitScript = "/com/openbravo/pos/scripts/" + s.DB.getName();

        m_version = new PreparedSentence(s, "SELECT VERSION FROM APPLICATIONS WHERE ID = ?", SerializerWriteString.INSTANCE, SerializerReadString.INSTANCE);
        m_dummy = new StaticSentence(s, "SELECT * FROM PEOPLE WHERE 1 = 0");
         
        final ThumbNailBuilder tnb = new ThumbNailBuilder(32, 32, "com/openbravo/images/yast_sysadmin.png");        
        peopleread = new SerializerRead() {
            public Object readValues(DataRead dr) throws BasicException {
                return new AppUser(
                        dr.getString(1),
                        dr.getString(2),
                        dr.getString(3),
                        dr.getString(4),
                        dr.getString(5),
                        new ImageIcon(tnb.getThumbNail(ImageUtils.readImage(dr.getBytes(6)))));                
            }
        };

        m_peoplevisible = new StaticSentence(s
            , "SELECT ID, NAME, APPPASSWORD, CARD, ROLE, IMAGE FROM PEOPLE WHERE VISIBLE = " + s.DB.TRUE()
            , null
            , peopleread);

        m_peoplebycard = new PreparedSentence(s
            , "SELECT ID, NAME, APPPASSWORD, CARD, ROLE, IMAGE FROM PEOPLE WHERE CARD = ? AND VISIBLE = " + s.DB.TRUE()
            , SerializerWriteString.INSTANCE
            , peopleread);
         
        m_resourcebytes = new PreparedSentence(s
            , "SELECT CONTENT FROM RESOURCES WHERE NAME = ?"
            , SerializerWriteString.INSTANCE
            , SerializerReadBytes.INSTANCE);
        
        Datas[] resourcedata = new Datas[] {Datas.STRING, Datas.STRING, Datas.INT, Datas.BYTES};
        m_resourcebytesinsert = new PreparedSentence(s
                , "INSERT INTO RESOURCES(ID, NAME, RESTYPE, CONTENT) VALUES (?, ?, ?, ?)"
                , new SerializerWriteBasic(resourcedata));
        m_resourcebytesupdate = new PreparedSentence(s
                , "UPDATE RESOURCES SET NAME = ?, RESTYPE = ?, CONTENT = ? WHERE NAME = ?"
                , new SerializerWriteBasicExt(resourcedata, new int[] {1, 2, 3, 1}));
        
        m_rolepermissions = new PreparedSentence(s
                , "SELECT PERMISSIONS FROM ROLES WHERE ID = ?"
            , SerializerWriteString.INSTANCE
            , SerializerReadBytes.INSTANCE);     
        
        m_changepassword = new StaticSentence(s
                , "UPDATE PEOPLE SET APPPASSWORD = ? WHERE ID = ?"
                ,new SerializerWriteBasic(new Datas[] {Datas.STRING, Datas.STRING}));

        m_sequencecash = new StaticSentence(s,
                "SELECT MAX(HOSTSEQUENCE) FROM CLOSEDCASH WHERE HOST = ?",
                SerializerWriteString.INSTANCE,
                SerializerReadInteger.INSTANCE);
        m_activecash = new StaticSentence(s
            , "SELECT HOST, HOSTSEQUENCE, DATESTART, DATEEND FROM CLOSEDCASH WHERE MONEY = ?"
            , SerializerWriteString.INSTANCE
            , new SerializerReadBasic(new Datas[] {Datas.STRING, Datas.INT, Datas.TIMESTAMP, Datas.TIMESTAMP}));            
        m_insertcash = new StaticSentence(s
                , "INSERT INTO CLOSEDCASH(MONEY, HOST, HOSTSEQUENCE, DATESTART, DATEEND) " +
                  "VALUES (?, ?, ?, ?, ?)"
                , new SerializerWriteBasic(new Datas[] {Datas.STRING, Datas.STRING, Datas.INT, Datas.TIMESTAMP, Datas.TIMESTAMP}));
            
        m_locationfind = new StaticSentence(s
                , "SELECT NAME FROM LOCATIONS WHERE ID = ?"
                , SerializerWriteString.INSTANCE
                , SerializerReadString.INSTANCE);   
        
        resetResourcesCache();        
    }
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:73,代码来源:DataLogicSystem.java


示例13: ScriptPaymentCash

import com.openbravo.pos.util.ThumbNailBuilder; //导入依赖的package包/类
public ScriptPaymentCash(DataLogicSystem dlSystem) {
    this.dlSystem = dlSystem;
    tnbbutton = new ThumbNailBuilder(64, 54, "com/openbravo/images/cash.png");
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:5,代码来源:JPaymentCashPos.java


示例14: ProductRenderer

import com.openbravo.pos.util.ThumbNailBuilder; //导入依赖的package包/类
/** Creates a new instance of ProductRenderer */
public ProductRenderer() {   
    System.out.println("---------- 4 ProductRenderer");
    tnbprod = new ThumbNailBuilder(48,48, "com/openbravo/images/package.png");      
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:6,代码来源:ProductRenderer.java


示例15: JCatalog

import com.openbravo.pos.util.ThumbNailBuilder; //导入依赖的package包/类
/**
     *
     * @param dlSales
     * @param pricevisible
     * @param taxesincluded
     * @param width
     * @param height
     */
    public JCatalog(DataLogicSales dlSales, boolean pricevisible, boolean taxesincluded, int width, int height) {
        
        m_dlSales = dlSales;
        this.pricevisible = pricevisible;
        this.taxesincluded = taxesincluded;
        
        initComponents();
        
        m_jListCategories.addListSelectionListener(this);
//        m_jListCategories.getPreferredScrollableViewportSize().setSize(400, height);
        
        m_jscrollcat.getVerticalScrollBar().setPreferredSize(new Dimension(48, 48));
        
        tnbcat = new ThumbNailBuilder(48, 48, "com/openbravo/images/category.png");  
        tnbsubcat = new ThumbNailBuilder(width, height, "com/openbravo/images/subcategory.png"); 
        tnbbutton = new ThumbNailBuilder(width, height, "com/openbravo/images/package.png");

    }
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:27,代码来源:JCatalog.java


示例16: ProductRenderer

import com.openbravo.pos.util.ThumbNailBuilder; //导入依赖的package包/类
/** Creates a new instance of ProductRenderer */
public ProductRenderer() {   
    tnbprod = new ThumbNailBuilder(48,48, "com/openbravo/images/package.png");      
}
 
开发者ID:sbandur84,项目名称:micro-Blagajna,代码行数:5,代码来源:ProductRenderer.java


示例17: ProductRenderer

import com.openbravo.pos.util.ThumbNailBuilder; //导入依赖的package包/类
/** Creates a new instance of ProductRenderer */
public ProductRenderer() {   
    tnbprod = new ThumbNailBuilder(64, 32, 12, "com/openbravo/images/package.png");
}
 
开发者ID:nordpos,项目名称:nordpos,代码行数:5,代码来源:ProductRenderer.java


示例18: ScriptPaymentCash

import com.openbravo.pos.util.ThumbNailBuilder; //导入依赖的package包/类
public ScriptPaymentCash(DataLogicSystem dlSystem) {
    this.dlSystem = dlSystem;
    tnbbutton = new ThumbNailBuilder(72,72, 12, "com/openbravo/images/cash.png");
}
 
开发者ID:nordpos,项目名称:nordpos,代码行数:5,代码来源:JPaymentCashPos.java



注:本文中的com.openbravo.pos.util.ThumbNailBuilder类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java ConnectHttp类代码示例发布时间:2022-05-23
下一篇:
Java IJvmDeclaredTypeAcceptor类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap