Create your own awesome maps

Even on the go

with our free apps for iPhone, iPad and Android

Get Started

Already have an account?
Log In

UI by Mind Map: UI
0.0 stars - 0 reviews range from 0 to 5

UI

透過此方法的好處: 統一由UI控制 每隔2分鐘, 快速呼叫底下Component去執行update指令 只有一個Timer, 但是卻掌控所有的update 不用再去care clearInterval的問題, Tab 切換, activeTab就會自動被呼叫update, 舊有的Tab 就會自動被忽略. 

consoleComp

tblComp

tblComp.update()

執行(3), yes...go continue

tblComp.isRefreshing = false

tblComp.interval = 20000

tblComp.lastRefreshTime=0

mainPanel

執行(3), yes...go continue

mainPanel.update()

呼叫底下的childObject, 逐一執行 self.update

mainPanel.interval = 0

mainPanel.update = {}

UI.activeTabRefresh

每隔 UI.interval執行一次.

UI.interval = 2000(ms)

UI.timer;

UI.isNeedToRefresh

Return Boolead (True Or False) comp.isInit == True comp.updat, method is defined comp.isRefreshing == false comp.lastRefreshTime + comp.inteval < now

htmlComp

htmlComp.update()

執行(3), yes...go continue