public void updateStatus(String str) { if (pane == null) return; for (int i = 0; i < pane.getComponentCount(); i++) { Component comp = pane.getComponent(i); if (comp instanceof StatusListenerIF) ((StatusListenerIF) comp).updateStatus(str); } }
public void updateValue() { bNeedUpdate = false; if (pane == null) return; for (int i = 0; i < pane.getComponentCount(); i++) { Component comp = pane.getComponent(i); if (comp instanceof ExpListenerIF) ((ExpListenerIF) comp).updateValue(); } }
public void updateAllValue() { if (pane == null) return; bNeedUpdate = false; int nums = pane.getComponentCount(); for (int i = 0; i < nums; i++) { Component comp = pane.getComponent(i); if (comp instanceof VObjIF) { VObjIF obj = (VObjIF) comp; obj.updateValue(); } } }
public void setViewPort(int id) { if (pane == null) return; // ButtonIF vif = Util.getViewArea().getActiveVp(); ButtonIF vif = Util.getViewArea().getExp(id); if (vif == null) return; int nums = pane.getComponentCount(); for (int i = 0; i < nums; i++) { Component comp = pane.getComponent(i); if (comp instanceof VObjIF) { VObjIF obj = (VObjIF) comp; obj.setVnmrIF(vif); } } }