SizeAgent

From Documentation
Revision as of 08:54, 14 May 2012 by Hawk (talk | contribs) (Created page with "{{ZATSEssentialsPageHeader}} With <tt> SizeAgent </tt>, we can mimic maximize, minimize, and resize a ''window'' or a ''panel''. There are two flags in a ''window'' (or a ''pa...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)



With SizeAgent , we can mimic maximize, minimize, and resize a window or a panel. There are two flags in a window (or a panel) to represent maximized and minimized state respectively. When they are both "false", it represents "original size"


ComponentAgent window = desktopAgent.query("window");

//maximize
window.as(SizeAgent.class).maximize(true);

//restore to original size
window.as(SizeAgent.class).maximize(false);

//minimize
window.as(SizeAgent.class).minimize(true);

//restore to original size
window.as(SizeAgent.class).minimize(false);




Last Update : 2012/05/14

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.