105 changed files with 5401 additions and 5076 deletions
File diff suppressed because one or more lines are too long
@ -0,0 +1,30 @@
|
||||
package com.fr.design.dialog; |
||||
|
||||
import javax.swing.JPanel; |
||||
|
||||
/** |
||||
* Created by kerry on 2017/10/25. |
||||
*/ |
||||
public abstract class AttrScrollPane extends BasicScrollPane { |
||||
private static final int OVER_WIDTH = 10; |
||||
|
||||
@Override |
||||
public void populateBean(Object ob) { |
||||
|
||||
} |
||||
|
||||
@Override |
||||
protected String title4PopupWindow() { |
||||
return null; |
||||
} |
||||
|
||||
@Override |
||||
protected int getOverWidth() { |
||||
return OVER_WIDTH; |
||||
} |
||||
|
||||
@Override |
||||
protected boolean hideBarWidth() { |
||||
return true; |
||||
} |
||||
} |
@ -0,0 +1,38 @@
|
||||
package com.fr.design.widget.ui.designer.component; |
||||
|
||||
import com.fr.design.gui.icombobox.UIComboBox; |
||||
import com.fr.design.layout.FRGUIPaneFactory; |
||||
import javax.swing.JPanel; |
||||
import java.awt.BorderLayout; |
||||
import java.util.Vector; |
||||
|
||||
/** |
||||
* Created by kerry on 2017/10/23. |
||||
*/ |
||||
public class FontSizeComboPane extends JPanel{ |
||||
private static final int MAX_FONT_SIZE = 100; |
||||
private UIComboBox comboBox; |
||||
public FontSizeComboPane(){ |
||||
initComponent(); |
||||
} |
||||
public void initComponent(){ |
||||
this.setLayout(FRGUIPaneFactory.createBorderLayout()); |
||||
Vector<Integer> integerList = new Vector<Integer>(); |
||||
for (int i = 1; i < MAX_FONT_SIZE; i++) { |
||||
integerList.add(i); |
||||
} |
||||
comboBox = new UIComboBox(integerList); |
||||
comboBox.setEditable(true); |
||||
this.add(comboBox, BorderLayout.CENTER); |
||||
} |
||||
|
||||
public int getValue() { |
||||
return Integer.valueOf(comboBox.getSelectedItem().toString()); |
||||
} |
||||
|
||||
public void setValue(int fontSize) { |
||||
comboBox.setSelectedItem(fontSize); |
||||
} |
||||
|
||||
|
||||
} |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue