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.
30 lines
714 B
30 lines
714 B
package com.fr.plugin.event.manager.data; |
|
|
|
import com.fr.design.designer.creator.XCreator; |
|
import com.fr.design.designer.creator.XCreatorUtils; |
|
import com.fr.form.ui.Widget; |
|
|
|
import javax.swing.Icon; |
|
|
|
/** |
|
* @author Joe |
|
* Created by Joe on 12/14/2020 |
|
*/ |
|
public class MyWidget extends MyNode { |
|
protected Widget widget; |
|
|
|
public MyWidget(Widget widget) { |
|
this.widget = widget; |
|
this.nodeName = widget.getWidgetName(); |
|
XCreator creator = XCreatorUtils.createXCreator(widget); |
|
this.icon = XCreatorUtils.getCreatorIcon(creator); |
|
} |
|
|
|
public Widget getWidget() { |
|
return widget; |
|
} |
|
|
|
public void setWidget(Widget widget) { |
|
this.widget = widget; |
|
} |
|
}
|
|
|