Revision 846 org.gvsig.tools/library/trunk/org.gvsig.tools/dynform/src/org/gvsig/tools/dynform/impl/FormSetButtonBar.java
FormSetButtonBar.java | ||
---|---|---|
1 | 1 |
package org.gvsig.tools.dynform.impl; |
2 | 2 |
|
3 |
import java.awt.Color; |
|
3 | 4 |
import java.awt.Cursor; |
4 | 5 |
import java.awt.FlowLayout; |
5 | 6 |
import java.awt.event.MouseAdapter; |
... | ... | |
9 | 10 |
import java.util.Iterator; |
10 | 11 |
import java.util.Set; |
11 | 12 |
|
13 |
import javax.swing.BorderFactory; |
|
12 | 14 |
import javax.swing.Icon; |
13 | 15 |
import javax.swing.ImageIcon; |
14 | 16 |
import javax.swing.JComponent; |
... | ... | |
38 | 40 |
private static final int MAX_ACTIONS = 10; |
39 | 41 |
|
40 | 42 |
public interface FormSetListener { |
41 |
public void doActionFirst();
|
|
42 |
public void doActionPrevious();
|
|
43 |
public void doActionNext();
|
|
44 |
public void doActionLast();
|
|
45 |
public void doActionSave();
|
|
46 |
public void doActionNew();
|
|
47 |
public void doActionDelete();
|
|
48 |
public void doActionSearch();
|
|
49 |
public void doActionClose();
|
|
43 |
public boolean doActionFirst();
|
|
44 |
public boolean doActionPrevious();
|
|
45 |
public boolean doActionNext();
|
|
46 |
public boolean doActionLast();
|
|
47 |
public boolean doActionSave();
|
|
48 |
public boolean doActionNew();
|
|
49 |
public boolean doActionDelete();
|
|
50 |
public boolean doActionSearch();
|
|
51 |
public boolean doActionClose();
|
|
50 | 52 |
} |
51 | 53 |
|
52 | 54 |
private JPanel contents = null; |
... | ... | |
151 | 153 |
private void initComponents() { |
152 | 154 |
this.contents = new JPanel(); |
153 | 155 |
this.contents.setLayout( new FlowLayout(FlowLayout.LEADING, 4,4)); |
156 |
// this.contents.setBorder( BorderFactory.createLineBorder(Color.GRAY, 1)); |
|
157 |
this.records = new JLabel(); |
|
154 | 158 |
|
155 |
this.records = new JLabel(); |
|
156 |
this.contents.add(this.records); |
|
157 | 159 |
this.contents.add( createButton("First", "first.png", ActionFirst)); |
158 | 160 |
this.contents.add( createButton("Previous", "previous.png", ActionPrevious)); |
161 |
this.contents.add(this.records); |
|
159 | 162 |
this.contents.add( createButton("Next", "next.png", ActionNext)); |
160 | 163 |
this.contents.add( createButton("Last", "last.png", ActionLast)); |
161 | 164 |
this.contents.add( createButton("Save", "save.png", ActionSave)); |
Also available in: Unified diff