SizeAgent"

From Documentation
(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...")
 
Line 3: Line 3:
  
  
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 ''panel'') to represent maximized and minimized state respectively. When they are both "false", it represents "original size"
+
With <tt> SizeAgent </tt>, we can mimic to 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". When
  
  

Revision as of 00:53, 15 May 2012



With SizeAgent , we can mimic to 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". When


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/15

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