forked from FR-Global/plugin-event-manager
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.
50 lines
1.2 KiB
50 lines
1.2 KiB
package com.fr.plugin.event.manager.ui; |
|
|
|
import com.fr.design.dialog.BasicPane; |
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
import com.fr.plugin.event.manager.data.MyTree; |
|
|
|
import java.awt.BorderLayout; |
|
import java.util.List; |
|
|
|
/** |
|
* @author Joe |
|
* Created by Joe on 12/13/2020 |
|
*/ |
|
public class CellWidgetPane extends BasicPane { |
|
private List<MyTree> cellWidgetTrees; |
|
private EventConfigPane eventConfigPane; |
|
|
|
public CellWidgetPane(List<MyTree> cellWidgetTrees) { |
|
this.cellWidgetTrees = cellWidgetTrees; |
|
initComponentPane(); |
|
} |
|
|
|
private void initComponentPane() { |
|
this.setLayout(FRGUIPaneFactory.createBorderLayout()); |
|
initEventConfigPane(); |
|
this.add(eventConfigPane, BorderLayout.CENTER); |
|
} |
|
|
|
private void initEventConfigPane() { |
|
// 初始化事件面板 |
|
if (cellWidgetTrees.size() > 0) { |
|
eventConfigPane = new EventConfigPane(cellWidgetTrees.get(0)); |
|
} else { |
|
eventConfigPane = new EventConfigPane(new MyTree()); |
|
} |
|
} |
|
|
|
public String tabTitle() { |
|
return "Cell Widget"; |
|
} |
|
|
|
@Override |
|
protected String title4PopupWindow() { |
|
return "cell widget"; |
|
} |
|
|
|
public void update() { |
|
|
|
} |
|
}
|
|
|