当前位置: 首页>>代码示例>>Java>>正文


Java JCalendarDialog类代码示例

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


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

示例1: btnEndDateActionPerformed

import com.openbravo.beans.JCalendarDialog; //导入依赖的package包/类
private void btnEndDateActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEndDateActionPerformed
        Date date;
        try {
            date = (Date) Formats.TIMESTAMP.parseValue(m_jEndDate.getText());
        } catch (BasicException e) {
            date = null;
        }
        date = JCalendarDialog.showCalendarTimeHours(this, date);
        if (date != null) {
            if (IsValidEndDate(date)) {
                m_jEndDate.setText(Formats.TIMESTAMP.formatValue(date));
            } else {
                MessageInf msg = new MessageInf(MessageInf.SGN_WARNING, AppLocal.getIntString("message.invalidenddate"));
                msg.show(this);
            }
        }
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:18,代码来源:LeavesView.java

示例2: btnStartDateActionPerformed

import com.openbravo.beans.JCalendarDialog; //导入依赖的package包/类
private void btnStartDateActionPerformed(java.awt.event.ActionEvent evt) {
        Date date;
        try {
            date = (Date) Formats.TIMESTAMP.parseValue(m_jStartDate.getText());
        } catch (BasicException e) {
            date = null;
        }
        date = JCalendarDialog.showCalendarTimeHours(this, date);
        if (date != null) {
            if (IsValidStartDate(date)) {
                m_jStartDate.setText(Formats.TIMESTAMP.formatValue(date));
            } else {
                MessageInf msg = new MessageInf(MessageInf.SGN_WARNING, AppLocal.getIntString("message.invalidstartdate"));
                msg.show(this);
            }
        }
}
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:18,代码来源:LeavesView.java

示例3: btnValidFromActionPerformed

import com.openbravo.beans.JCalendarDialog; //导入依赖的package包/类
private void btnValidFromActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnValidFromActionPerformed

    Date date;
    try {
        date = (Date) Formats.TIMESTAMP.parseValue(m_jStartDate.getText());
    } catch (BasicException e) {
        date = null;
    }
    date = JCalendarDialog.showCalendarTimeHours(this, date);
    if (date != null) {


        DateFormat formatter_date;
        formatter_date = new SimpleDateFormat("yyyyMMdd");

        DateFormat formatter_heure;
        formatter_heure = new SimpleDateFormat("HH");

        String _date = formatter_date.format(date);
        String _heure = formatter_heure.format(date);
        m_jStartDate.setText(Formats.STRING.formatValue(_date));
        m_jStartHour.setText(Formats.STRING.formatValue(_heure));
    }

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

示例4: btnValidToActionPerformed

import com.openbravo.beans.JCalendarDialog; //导入依赖的package包/类
private void btnValidToActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnValidToActionPerformed

    Date date;
    try {
        date = (Date) Formats.TIMESTAMP.parseValue(m_jEndDate.getText());
    } catch (BasicException e) {
        date = null;
    }
    date = JCalendarDialog.showCalendarTimeHours(this, date);
    if (date != null) {


        DateFormat formatter_date;
        formatter_date = new SimpleDateFormat("yyyyMMdd");

        DateFormat formatter_heure;
        formatter_heure = new SimpleDateFormat("HH");

        String _date = formatter_date.format(date);
        String _heure = formatter_heure.format(date);

        m_jEndDate.setText(Formats.STRING.formatValue(_date));
        m_jEndHour.setText(Formats.STRING.formatValue(_heure));
    }
    }
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:26,代码来源:PromoEditor.java

示例5: m_jbtndateActionPerformed

import com.openbravo.beans.JCalendarDialog; //导入依赖的package包/类
private void m_jbtndateActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_m_jbtndateActionPerformed

        Date date;
        try {
            date = (Date) Formats.TIMESTAMP.parseValue(m_jdate.getText());
        } catch (BasicException e) {
            date = null;
        }
        date = JCalendarDialog.showCalendarTime(this, date);
        if (date != null) {
            m_jdate.setText(Formats.TIMESTAMP.formatValue(date));
        }
        java.awt.EventQueue.invokeLater(new Runnable() {
            @Override
            public void run() {
                m_jKeyFactory.requestFocus();
            }
        });
    }
 
开发者ID:nordpos,项目名称:nordpos,代码行数:20,代码来源:StockManagement.java

示例6: btnDateStartActionPerformed

import com.openbravo.beans.JCalendarDialog; //导入依赖的package包/类
private void btnDateStartActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDateStartActionPerformed
    Date date;
        try {
            date = (Date) Formats.TIMESTAMP.parseValue(jTxtStartDate.getText());
        } catch (BasicException e) {
            date = null;
        }        
        date = JCalendarDialog.showCalendarTimeHours(this, date);
        if (date != null) {
            jTxtStartDate.setText(Formats.TIMESTAMP.formatValue(date));
        }
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:13,代码来源:JTicketsFinder.java

示例7: btnDateEndActionPerformed

import com.openbravo.beans.JCalendarDialog; //导入依赖的package包/类
private void btnDateEndActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDateEndActionPerformed
Date date;
        try {
            date = (Date) Formats.TIMESTAMP.parseValue(jTxtEndDate.getText());
        } catch (BasicException e) {
            date = null;
        }        
        date = JCalendarDialog.showCalendarTimeHours(this, date);
        if (date != null) {
            jTxtEndDate.setText(Formats.TIMESTAMP.formatValue(date));
        }
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:13,代码来源:JTicketsFinder.java

示例8: m_jbtndateActionPerformed

import com.openbravo.beans.JCalendarDialog; //导入依赖的package包/类
private void m_jbtndateActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_m_jbtndateActionPerformed
    
    Date date;
    try {
        date = (Date) Formats.TIMESTAMP.parseValue(m_jdate.getText());
    } catch (BasicException e) {
        date = null;
    }        
    date = JCalendarDialog.showCalendarTime(this, date);
    if (date != null) {
        m_jdate.setText(Formats.TIMESTAMP.formatValue(date));
    }
    
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:15,代码来源:StockDiaryEditor.java

示例9: btnValidFromActionPerformed

import com.openbravo.beans.JCalendarDialog; //导入依赖的package包/类
private void btnValidFromActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnValidFromActionPerformed

        Date date;
        try {
            date = (Date) Formats.TIMESTAMP.parseValue(txtValidFrom.getText());
        } catch (BasicException e) {
            date = null;
        }
        date = JCalendarDialog.showCalendarTimeHours(this, date);
        if (date != null) {
            txtValidFrom.setText(Formats.TIMESTAMP.formatValue(date));
        }
}
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:14,代码来源:TaxEditor.java

示例10: btnDateStartActionPerformed

import com.openbravo.beans.JCalendarDialog; //导入依赖的package包/类
private void btnDateStartActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDateStartActionPerformed

        Date date;
        try {
            date = (Date) Formats.TIMESTAMP.parseValue(jTxtStartDate.getText());
        } catch (BasicException e) {
            date = null;
        }        
        date = JCalendarDialog.showCalendarTimeHours(this, date);
        if (date != null) {
            jTxtStartDate.setText(Formats.TIMESTAMP.formatValue(date));
        }             
    }
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:14,代码来源:JParamsDatesInterval.java

示例11: btnDateEndActionPerformed

import com.openbravo.beans.JCalendarDialog; //导入依赖的package包/类
private void btnDateEndActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnDateEndActionPerformed

        Date date;
        try {
            date = (Date) Formats.TIMESTAMP.parseValue(jTxtEndDate.getText());
        } catch (BasicException e) {
            date = null;
        }        
        date = JCalendarDialog.showCalendarTimeHours(this, date);
        if (date != null) {
            jTxtEndDate.setText(Formats.TIMESTAMP.formatValue(date));
        }          
    }
 
开发者ID:iMartinezMateu,项目名称:openbravo-pos,代码行数:14,代码来源:JParamsDatesInterval.java

示例12: m_jbtndateActionPerformed

import com.openbravo.beans.JCalendarDialog; //导入依赖的package包/类
private void m_jbtndateActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_m_jbtndateActionPerformed

        Date date;
        try {
            date = (Date) Formats.TIMESTAMP.parseValue(m_jdate.getText());
        } catch (BasicException e) {
            date = null;
        }
        date = JCalendarDialog.showCalendarTime(this, date);
        if (date != null) {
            m_jdate.setText(Formats.TIMESTAMP.formatValue(date));
        }
    }
 
开发者ID:gnoopy,项目名称:wifepos,代码行数:14,代码来源:StockManagement.java


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