本文整理汇总了C#中ITable.addSubTableListener方法的典型用法代码示例。如果您正苦于以下问题:C# ITable.addSubTableListener方法的具体用法?C# ITable.addSubTableListener怎么用?C# ITable.addSubTableListener使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ITable
的用法示例。
在下文中一共展示了ITable.addSubTableListener方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DashboardPanel
public DashboardPanel(DashboardFrame frame, ITable table)
{
base.\u002Ector();
DashboardPanel dashboardPanel = this;
this.backPane = new JPanel();
this.elements = new LinkedList();
this.fields = (Map) new HashMap();
this.hiddenFields = (Set) new HashSet();
this.editable = false;
this.listener = new DashboardPanel.RobotListener(this, (DashboardPanel.\u0031) null);
this.subsystems = new ArrayList();
this.frame = frame;
this.table = table;
this.glassPane = new GlassPane(frame, this);
((Container) this).add((Component) this.glassPane);
((Container) this).add((Component) this.backPane);
((Container) this.backPane).setLayout((LayoutManager) new DashboardPanel.DashboardLayout(this, (DashboardPanel.\u0031) null));
((Component) this.backPane).setFocusable(true);
((Container) this).setLayout((LayoutManager) new DashboardPanel.DashboardLayout(this, (DashboardPanel.\u0031) null));
this.setEditable(this.editable);
table.addTableListener((ITableListener) this.listener, true);
table.addSubTableListener((ITableListener) this.listener);
}
示例2: setValue
public override void setValue(object value)
{
if (!(value is ITable))
return;
ITable table = (ITable) value;
if (table != null)
table.removeTableListener((ITableListener) this);
this.table = table;
if (table == null)
return;
table.addTableListener((ITableListener) this, true);
if (!this.listenSubtables)
return;
table.addSubTableListener((ITableListener) this);
}