当前位置: 首页>>代码示例>>C#>>正文


C# ITable.addTableListener方法代码示例

本文整理汇总了C#中ITable.addTableListener方法的典型用法代码示例。如果您正苦于以下问题:C# ITable.addTableListener方法的具体用法?C# ITable.addTableListener怎么用?C# ITable.addTableListener使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ITable的用法示例。


在下文中一共展示了ITable.addTableListener方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
 }
开发者ID:NALSS,项目名称:SmartDashboard.NET,代码行数:23,代码来源:DashboardPanel.cs

示例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);
 }
开发者ID:NALSS,项目名称:SmartDashboard.NET,代码行数:15,代码来源:AbstractTableWidget.cs

示例3: tableChanged

 public override void tableChanged(ITable source, string key, ITable table, bool isNew)
 {
   int num = 0;
   if (LWSubsystem.reader != null)
     num = LWSubsystem.reader.containsWidgetOfName(this, key) ? 1 : 0;
   if (num != 0)
     return;
   table.addTableListener("~TYPE~", (ITableListener) new LWSubsystem\u00241(this, table, key), true);
 }
开发者ID:NALSS,项目名称:SmartDashboard.NET,代码行数:9,代码来源:LWSubsystem.cs


注:本文中的ITable.addTableListener方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。