Package org.zkoss.zats.mimic.operation
Interface SizeAgent
-
- All Superinterfaces:
Agent,OperationAgent
public interface SizeAgent extends OperationAgent
The agent of sizing operation. Only Window and Panel support this operation.
- Author:
- pao
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidmaximize(boolean maximized)To maximize a component's size.voidminimize(boolean minimized)To minimized component's size.voidresize(int width, int height)To resize a component.-
Methods inherited from interface org.zkoss.zats.mimic.Agent
getClient, getDelegatee
-
-
-
-
Method Detail
-
maximize
void maximize(boolean maximized)
To maximize a component's size. If the component isn't maximizable, it will throw exception.- Parameters:
maximized- true indicated maximization.
-
minimize
void minimize(boolean minimized)
To minimized component's size. If the component isn't minimizable, it will throw exception.- Parameters:
minimized- true indicated minimization.
-
resize
void resize(int width, int height)To resize a component. If a components doesn't set its width or height, we will set width to 200px and height to 100px.- Parameters:
width- new width or specify -1 if no change.height- new height or specify -1 if no change.
-
-