split event listeners and made xml elements for event en actions on back/frontend
This commit is contained in:
parent
3d0d609462
commit
a51eeeb254
26 changed files with 559 additions and 123 deletions
|
|
@ -98,6 +98,13 @@ public class SwingVascFrontend extends AbstractVascFrontend {
|
|||
this.parent=parent;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.VascFrontend#getFrontendType()
|
||||
*/
|
||||
public String getFrontendType() {
|
||||
return "swing";
|
||||
}
|
||||
|
||||
/**
|
||||
* Add swing implmented ui components
|
||||
*/
|
||||
|
|
@ -686,15 +693,12 @@ class SpringUtilities {
|
|||
* @param yPad
|
||||
* y padding between cells
|
||||
*/
|
||||
public static void makeGrid(Container parent, int rows, int cols,
|
||||
int initialX, int initialY, int xPad, int yPad) {
|
||||
public static void makeGrid(Container parent, int rows, int cols,int initialX, int initialY, int xPad, int yPad) {
|
||||
SpringLayout layout;
|
||||
try {
|
||||
layout = (SpringLayout) parent.getLayout();
|
||||
} catch (ClassCastException exc) {
|
||||
System.err
|
||||
.println("The first argument to makeGrid must use SpringLayout.");
|
||||
return;
|
||||
throw new IllegalArgumentException("parent container has not StringLayout layoutmanager.");
|
||||
}
|
||||
|
||||
Spring xPadSpring = Spring.constant(xPad);
|
||||
|
|
@ -788,15 +792,12 @@ class SpringUtilities {
|
|||
* @param yPad
|
||||
* y padding between cells
|
||||
*/
|
||||
public static void makeCompactGrid(Container parent, int rows, int cols,
|
||||
int initialX, int initialY, int xPad, int yPad) {
|
||||
public static void makeCompactGrid(Container parent, int rows, int cols,int initialX, int initialY, int xPad, int yPad) {
|
||||
SpringLayout layout;
|
||||
try {
|
||||
layout = (SpringLayout) parent.getLayout();
|
||||
} catch (ClassCastException exc) {
|
||||
System.err
|
||||
.println("The first argument to makeCompactGrid must use SpringLayout.");
|
||||
return;
|
||||
throw new IllegalArgumentException("parent container has not StringLayout layoutmanager.");
|
||||
}
|
||||
|
||||
//Align all cells in each column and make them the same width.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue