Author: jleroux
Date: Thu Jul 27 07:11:01 2006
New Revision: 426081
URL:
http://svn.apache.org/viewvc?rev=426081&view=revLog:
The journal (part of the screen where bought items show) was not scrollable. This is now possible.
Modified:
incubator/ofbiz/trunk/applications/pos/screens/default/includes/journal.xml
incubator/ofbiz/trunk/applications/pos/src/org/ofbiz/pos/component/Journal.java
Modified: incubator/ofbiz/trunk/applications/pos/screens/default/includes/journal.xml
URL:
http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/pos/screens/default/includes/journal.xml?rev=426081&r1=426080&r2=426081&view=diff==============================================================================
--- incubator/ofbiz/trunk/applications/pos/screens/default/includes/journal.xml (original)
+++ incubator/ofbiz/trunk/applications/pos/screens/default/includes/journal.xml Thu Jul 27 07:11:01 2006
@@ -23,8 +23,8 @@
<Edit name="oper_date" x="244" y="2" w="86" h="50" style="opinfo" border="0" alignment="Center"/>
<Edit name="oper_total" x="332" y="2" w="80" h="50" style="optotal" border="0" alignment="Right"/>
</Panel>
- <Panel name="journal_panel" x="0" y="55" w="412" h="637">
+ <ScrollPane name="journal_panel" x="0" y="55" w="412" h="637">
<Table name="jtable" x="2" y="2" w="410" h="625" style="journal"/>
- </Panel>
+ </ScrollPane>
</Components>
</XPage>
Modified: incubator/ofbiz/trunk/applications/pos/src/org/ofbiz/pos/component/Journal.java
URL:
http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/pos/src/org/ofbiz/pos/component/Journal.java?rev=426081&r1=426080&r2=426081&view=diff==============================================================================
--- incubator/ofbiz/trunk/applications/pos/src/org/ofbiz/pos/component/Journal.java (original)
+++ incubator/ofbiz/trunk/applications/pos/src/org/ofbiz/pos/component/Journal.java Thu Jul 27 07:11:01 2006
@@ -15,11 +15,10 @@
*/
package org.ofbiz.pos.component;
-import javax.swing.JScrollPane;
import java.util.Locale;
import net.xoetrope.swing.XTable;
-import net.xoetrope.swing.XPanel;
+import net.xoetrope.swing.XScrollPane;
import net.xoetrope.xui.data.XModel;
import org.ofbiz.pos.PosTransaction;
@@ -41,17 +40,16 @@
private static int[] width = { 100, 170, 60, 80, 0};
private Locale defaultLocale = Locale.getDefault();
- protected XPanel jpanel = null;
+ protected XScrollPane jpanel = null;
protected XTable jtable = null;
protected String style = null;
public Journal(PosScreen page) {
this.jtable = (XTable) page.findComponent("jtable");
- this.jpanel = (XPanel) page.findComponent("journal_panel");
+ this.jpanel = (XScrollPane) page.findComponent("journal_panel");
this.jpanel.setVisible(false);
-
- // set the table as selectable
- jtable.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
+
+ // set the table as selectable
jtable.setInteractiveTable(true);
jtable.setFocusable(false);