Skip to content

Commit

Permalink
App: Rufs update
Browse files Browse the repository at this point in the history
* ColorPicker, MessageInf, PrepareSentence, Session, Rondutils
  • Loading branch information
poolborges committed Apr 22, 2023
1 parent 114faad commit b5f0563
Show file tree
Hide file tree
Showing 38 changed files with 1,801 additions and 1,755 deletions.
9 changes: 8 additions & 1 deletion kriolos-opos-app/nbactions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,17 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<actionName>CUSTOM-JasperDesignViewer</actionName>
<displayName>JasperDesignViewer</displayName>
<goals>
<goal>compile</goal>
<goal>exec:java</goal>
<goal>-Dexec.mainClass="net.sf.jasperreports.view.JasperDesignViewer"</goal>
<goal>-Dexec.args="-XML -Fsrc/main/resources/com/openbravo/reports/products.jrxml"</goal>
</goals>
</action>
<action>
<actionName>CUSTOM-RunSwingx</actionName>
<displayName>run-SwingX</displayName>
<goals>
<goal>exec:java</goal>
<goal>-Dexec.mainClass="org.jdesktop.swingx.color.EyeDropperColorChooserPanel"</goal>
</goals>
</action>
</actions>
2 changes: 1 addition & 1 deletion kriolos-opos-app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>kriolos-opos-i18n</artifactId>
<artifactId>kriolos-opos-i18n_pt</artifactId>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.

package com.openbravo.pos.customers;
package com.openbravo.pos.businesspartner;

import com.openbravo.pos.domain.entity.businesspartner.BusinessPartner;
import com.openbravo.pos.resources.ImageResources;

import java.awt.Component;
Expand All @@ -25,16 +26,18 @@

/**
*
* @author JG uniCenta
* @author JG uniCenta, poolborges
*/
public class CustomerRenderer extends DefaultListCellRenderer {
public class BusinessPartnerListCellRenderer<BusinessPartner> extends DefaultListCellRenderer {

private final Icon icocustomer;
private final Icon icon;

/** Creates a new instance of CustomerRenderer */
public CustomerRenderer() {
/**
* Creates a new instance of CustomerRenderer
*/
public BusinessPartnerListCellRenderer() {

icocustomer = ImageResources.ICON_CUSTOMER.getIcon();
icon = ImageResources.ICON_CUSTOMER.getIcon();

}

Expand All @@ -43,7 +46,7 @@ public Component getListCellRendererComponent(JList list, Object value,
int index, boolean isSelected, boolean cellHasFocus) {
super.getListCellRendererComponent(list, null, index, isSelected, cellHasFocus);

setIcon(icocustomer);
setIcon(icon);
setText(value.toString());

return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ private void init(DataLogicCustomers dlCustomers) {

lpr = new ListProviderCreator(dlCustomers.getCustomerList(), this);

jListBPartner.setCellRenderer(new CustomerRenderer());
jListBPartner.setCellRenderer(new BusinessPartnerListCellRenderer());

getRootPane().setDefaultButton(jcmdOK);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
<Form version="1.2" maxVersion="1.2" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">
<Properties>
<Property name="defaultCloseOperation" type="int" value="0"/>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[800, 600]"/>
</Property>
<Property name="size" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[0, 0]"/>
</Property>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ public void run() {
private void initComponents() {

setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
setPreferredSize(new java.awt.Dimension(800, 600));
setSize(new java.awt.Dimension(0, 0));

setSize(new java.awt.Dimension(808, 794));
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
<AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,-88,0,0,2,-23"/>
<AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,-102,0,0,2,-104"/>
</AuxValues>

<Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/>
Expand Down Expand Up @@ -173,6 +173,17 @@
</Layout>
<SubComponents>
<Component class="com.openbravo.editor.JEditorKeys" name="m_jKeys">
<Properties>
<Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[250, 250]"/>
</Property>
<Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[250, 250]"/>
</Property>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[250, 250]"/>
</Property>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="m_jKeysActionPerformed"/>
</Events>
Expand All @@ -184,24 +195,33 @@
<EmptyBorder bottom="5" left="5" right="5" top="5"/>
</Border>
</Property>
<Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[164, 100]"/>
</Property>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[170, 100]"/>
</Property>
</Properties>

<Layout class="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout"/>
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignBoxLayout">
<Property name="axis" type="int" value="1"/>
</Layout>
<SubComponents>
<Component class="com.openbravo.editor.JEditorString" name="editorcard">
<Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Arial" size="14" style="0"/>
</Property>
<Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[2147483647, 30]"/>
</Property>
<Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[100, 30]"/>
</Property>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[200, 30]"/>
<Dimension value="[100, 30]"/>
</Property>
</Properties>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
<GridBagConstraints gridX="-1" gridY="-1" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/>
</Constraint>
</Constraints>
</Component>
<Component class="javax.swing.JButton" name="jButton1">
<Properties>
Expand All @@ -210,8 +230,15 @@
</Property>
<Property name="focusPainted" type="boolean" value="false"/>
<Property name="focusable" type="boolean" value="false"/>
<Property name="horizontalTextPosition" type="int" value="0"/>
<Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">
<Insets value="[8, 14, 8, 14]"/>
<Insets value="[14, 14, 8, 14]"/>
</Property>
<Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[104, 44]"/>
</Property>
<Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[104, 44]"/>
</Property>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[110, 45]"/>
Expand All @@ -221,11 +248,6 @@
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jButton1ActionPerformed"/>
</Events>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription">
<GridBagConstraints gridX="1" gridY="0" gridWidth="1" gridHeight="1" fill="1" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="5" insetsBottom="0" insetsRight="0" anchor="10" weightX="1.0" weightY="1.0"/>
</Constraint>
</Constraints>
</Component>
</SubComponents>
</Container>
Expand Down Expand Up @@ -277,7 +299,7 @@
</Group>
</Group>
<Group type="102" alignment="0" attributes="0">
<EmptySpace min="-2" pref="18" max="-2" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<Component id="txtMaxdebt" min="-2" max="-2" attributes="0"/>
Expand All @@ -297,7 +319,7 @@
</Group>
</Group>
</Group>
<EmptySpace pref="12" max="32767" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
Expand Down Expand Up @@ -393,6 +415,9 @@
<Font name="Arial" size="14" style="0"/>
</Property>
<Property name="focusable" type="boolean" value="false"/>
<Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[64, 30]"/>
</Property>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[0, 30]"/>
</Property>
Expand Down Expand Up @@ -476,6 +501,9 @@
<Font name="Arial" size="14" style="0"/>
</Property>
<Property name="focusable" type="boolean" value="false"/>
<Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[64, 30]"/>
</Property>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[0, 30]"/>
</Property>
Expand Down Expand Up @@ -520,6 +548,9 @@
<Font name="Arial" size="14" style="0"/>
</Property>
<Property name="focusable" type="boolean" value="false"/>
<Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[64, 30]"/>
</Property>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
<Dimension value="[150, 30]"/>
</Property>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,6 @@ private void printTicket(String resname, TicketInfo ticket, CustomerInfoExt cust
*/
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
java.awt.GridBagConstraints gridBagConstraints;

jPanel2 = new javax.swing.JPanel();
jPanel6 = new javax.swing.JPanel();
Expand Down Expand Up @@ -366,6 +365,9 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {

jPanel4.setLayout(new javax.swing.BoxLayout(jPanel4, javax.swing.BoxLayout.Y_AXIS));

m_jKeys.setMaximumSize(new java.awt.Dimension(250, 250));
m_jKeys.setMinimumSize(new java.awt.Dimension(250, 250));
m_jKeys.setPreferredSize(new java.awt.Dimension(250, 250));
m_jKeys.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
m_jKeysActionPerformed(evt);
Expand All @@ -374,31 +376,31 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
jPanel4.add(m_jKeys);

jPanel5.setBorder(javax.swing.BorderFactory.createEmptyBorder(5, 5, 5, 5));
jPanel5.setLayout(new java.awt.GridBagLayout());
jPanel5.setMinimumSize(new java.awt.Dimension(164, 100));
jPanel5.setPreferredSize(new java.awt.Dimension(170, 100));
jPanel5.setLayout(new javax.swing.BoxLayout(jPanel5, javax.swing.BoxLayout.Y_AXIS));

editorcard.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
editorcard.setPreferredSize(new java.awt.Dimension(200, 30));
jPanel5.add(editorcard, new java.awt.GridBagConstraints());
editorcard.setMaximumSize(new java.awt.Dimension(2147483647, 30));
editorcard.setMinimumSize(new java.awt.Dimension(100, 30));
editorcard.setPreferredSize(new java.awt.Dimension(100, 30));
jPanel5.add(editorcard);

jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/openbravo/images/ok.png"))); // NOI18N
jButton1.setFocusPainted(false);
jButton1.setFocusable(false);
jButton1.setMargin(new java.awt.Insets(8, 14, 8, 14));
jButton1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
jButton1.setMargin(new java.awt.Insets(14, 14, 8, 14));
jButton1.setMaximumSize(new java.awt.Dimension(104, 44));
jButton1.setMinimumSize(new java.awt.Dimension(104, 44));
jButton1.setPreferredSize(new java.awt.Dimension(110, 45));
jButton1.setRequestFocusEnabled(false);
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 1;
gridBagConstraints.gridy = 0;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
gridBagConstraints.weightx = 1.0;
gridBagConstraints.weighty = 1.0;
gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 0);
jPanel5.add(jButton1, gridBagConstraints);
jPanel5.add(jButton1);

jPanel4.add(jPanel5);

Expand All @@ -421,6 +423,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
txtCard.setEditable(false);
txtCard.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
txtCard.setFocusable(false);
txtCard.setMinimumSize(new java.awt.Dimension(64, 30));
txtCard.setPreferredSize(new java.awt.Dimension(0, 30));
txtCard.setRequestFocusEnabled(false);

Expand Down Expand Up @@ -456,6 +459,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
txtName.setEditable(false);
txtName.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
txtName.setFocusable(false);
txtName.setMinimumSize(new java.awt.Dimension(64, 30));
txtName.setPreferredSize(new java.awt.Dimension(0, 30));
txtName.setRequestFocusEnabled(false);

Expand All @@ -475,6 +479,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
txtTaxId.setEditable(false);
txtTaxId.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
txtTaxId.setFocusable(false);
txtTaxId.setMinimumSize(new java.awt.Dimension(64, 30));
txtTaxId.setPreferredSize(new java.awt.Dimension(150, 30));
txtTaxId.setRequestFocusEnabled(false);

Expand Down Expand Up @@ -521,7 +526,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
.addComponent(txtNotes, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txtPrePay, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))))
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(18, 18, 18)
.addContainerGap()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(txtMaxdebt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
Expand All @@ -535,7 +540,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(txtCurdate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
.addContainerGap(12, Short.MAX_VALUE))
.addContainerGap())
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
Expand Down
Loading

0 comments on commit b5f0563

Please sign in to comment.