You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
888 B
36 lines
888 B
package com.tptj.demo.hg.cell.property.provider; |
|
|
|
import com.fr.design.cell.AbstractCellElementPropertyPane; |
|
import com.fr.design.designer.TargetComponent; |
|
import com.fr.design.mainframe.ElementCasePane; |
|
|
|
import java.awt.*; |
|
|
|
/** |
|
* @author 秃破天际 |
|
* @version 10.0 |
|
* Created by 秃破天际 on 2021-06-03 |
|
**/ |
|
public class DemoComponent extends AbstractCellElementPropertyPane { |
|
private KeyEditor editor; |
|
public DemoComponent(){ |
|
this.setLayout(new BorderLayout()); |
|
editor = new KeyEditor(); |
|
add(editor, BorderLayout.CENTER); |
|
} |
|
|
|
@Override |
|
public void populate(TargetComponent component) { |
|
if(component instanceof ElementCasePane){ |
|
editor.populate((ElementCasePane)component); |
|
} |
|
validate(); |
|
repaint(); |
|
} |
|
|
|
@Override |
|
protected String title4PopupWindow() { |
|
return null; |
|
} |
|
|
|
}
|
|
|