forked from fanruan/design
kerry
7 years ago
8 changed files with 12 additions and 131 deletions
@ -1,40 +0,0 @@
|
||||
package com.fr.design.widget.ui.designer.custom; |
||||
|
||||
import com.fr.design.gui.itextfield.UITextField; |
||||
import com.fr.general.Inter; |
||||
|
||||
import javax.swing.*; |
||||
import java.awt.*; |
||||
|
||||
/** |
||||
* Created by ibm on 2017/8/1. |
||||
*/ |
||||
public class WidgetValueField implements WidgetValuePane{ |
||||
private UITextField dataSource; |
||||
private UITextField field; |
||||
|
||||
public WidgetValueField(){ |
||||
dataSource = new UITextField(); |
||||
field = new UITextField(); |
||||
} |
||||
|
||||
public JComponent createWidgetValuePane(){ |
||||
JPanel jPanel = new JPanel(); |
||||
jPanel.setLayout(new BorderLayout(1,7)); |
||||
jPanel.add(dataSource, BorderLayout.NORTH); |
||||
jPanel.add(field, BorderLayout.CENTER); |
||||
return jPanel; |
||||
} |
||||
|
||||
public String markTitle(){ |
||||
return Inter.getLocText("FR-Designer_Widget_Field"); |
||||
} |
||||
|
||||
public void update(){ |
||||
//todo
|
||||
} |
||||
|
||||
public void populate(){ |
||||
//todo
|
||||
} |
||||
} |
@ -1,33 +0,0 @@
|
||||
package com.fr.design.widget.ui.designer.custom; |
||||
|
||||
import com.fr.design.gui.itextfield.UITextField; |
||||
import com.fr.general.Inter; |
||||
|
||||
import javax.swing.*; |
||||
|
||||
/** |
||||
* Created by ibm on 2017/8/1. |
||||
*/ |
||||
public class WidgetValueFormula implements WidgetValuePane{ |
||||
private UITextField uiTextField; |
||||
|
||||
public WidgetValueFormula(){ |
||||
uiTextField = new UITextField(); |
||||
} |
||||
|
||||
public JComponent createWidgetValuePane(){ |
||||
return uiTextField; |
||||
} |
||||
|
||||
public String markTitle(){ |
||||
return Inter.getLocText("FR-Designer_Widget_Formula"); |
||||
} |
||||
|
||||
public void update(){ |
||||
|
||||
} |
||||
|
||||
public void populate(){ |
||||
|
||||
} |
||||
} |
@ -1,17 +0,0 @@
|
||||
package com.fr.design.widget.ui.designer.custom; |
||||
|
||||
import javax.swing.*; |
||||
|
||||
/** |
||||
* Created by ibm on 2017/8/1. |
||||
*/ |
||||
public interface WidgetValuePane{ |
||||
|
||||
JComponent createWidgetValuePane(); |
||||
|
||||
String markTitle(); |
||||
|
||||
void update(); |
||||
|
||||
void populate(); |
||||
} |
@ -1,33 +0,0 @@
|
||||
package com.fr.design.widget.ui.designer.custom; |
||||
|
||||
import com.fr.design.gui.itextfield.UITextField; |
||||
import com.fr.general.Inter; |
||||
|
||||
import javax.swing.*; |
||||
|
||||
/** |
||||
* Created by ibm on 2017/8/1. |
||||
*/ |
||||
public class WidgetValueString implements WidgetValuePane{ |
||||
private UITextField uiTextField; |
||||
|
||||
public WidgetValueString(){ |
||||
uiTextField = new UITextField(); |
||||
} |
||||
|
||||
public JComponent createWidgetValuePane(){ |
||||
return uiTextField; |
||||
} |
||||
|
||||
public String markTitle(){ |
||||
return Inter.getLocText("FR-Designer_Widget_String"); |
||||
} |
||||
|
||||
public void update(){ |
||||
|
||||
} |
||||
|
||||
public void populate(){ |
||||
|
||||
} |
||||
} |
Loading…
Reference in new issue