Examples of ThumbNailBuilder


Examples of com.openbravo.pos.util.ThumbNailBuilder

               
    ThumbNailBuilder tnbprod;

    /** Creates a new instance of ProductRenderer */
    public ProductRenderer() {  
        tnbprod = new ThumbNailBuilder(64, 32, "com/openbravo/images/package.png");
    }
View Full Code Here

Examples of com.openbravo.pos.util.ThumbNailBuilder

        private DataLogicSystem dlSystem;
        private ThumbNailBuilder tnbbutton;
       
        public ScriptPaymentCash(DataLogicSystem dlSystem) {
            this.dlSystem = dlSystem;
            tnbbutton = new ThumbNailBuilder(64, 54, "com/openbravo/images/cash.png");
        }
View Full Code Here

Examples of com.openbravo.pos.util.ThumbNailBuilder

        private DataLogicSystem dlSystem;
        private ThumbNailBuilder tnbbutton;
       
        public ScriptPaymentCash(DataLogicSystem dlSystem) {
            this.dlSystem = dlSystem;
            tnbbutton = new ThumbNailBuilder(64, 54, "com/openbravo/images/cash.png");
        }
View Full Code Here

Examples of com.openbravo.pos.util.ThumbNailBuilder

        initComponents();
       
        m_jListCategories.addListSelectionListener(this);               
        m_jscrollcat.getVerticalScrollBar().setPreferredSize(new Dimension(35, 35));
       
        tnbcat = new ThumbNailBuilder(32, 32, "com/openbravo/images/folder.png");          
        tnbbutton = new ThumbNailBuilder(width, height, "com/openbravo/images/package.png");
      //  m_jUp.setVisible(false);
      //  m_jDown.setVisible(false);
    }
View Full Code Here

Examples of com.openbravo.pos.util.ThumbNailBuilder

        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()
View Full Code Here

Examples of com.openbravo.pos.util.ThumbNailBuilder

    /** 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>();
View Full Code Here

Examples of com.openbravo.pos.util.ThumbNailBuilder

        private DataLogicSystem dlSystem;
        private ThumbNailBuilder tnbbutton;
       
        public ScriptPaymentCash(DataLogicSystem dlSystem) {
            this.dlSystem = dlSystem;
            tnbbutton = new ThumbNailBuilder(64, 54, "com/openbravo/images/cash.png");
        }
View Full Code Here

Examples of com.openbravo.pos.util.ThumbNailBuilder

    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));       
    }   
View Full Code Here

Examples of com.openbravo.pos.util.ThumbNailBuilder

    /** 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>();
View Full Code Here

Examples of com.openbravo.pos.util.ThumbNailBuilder

    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));       
    }   
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.