-
FEATURED COMPONENTS
First time here? Check out the FAQ!
This is my code
<window id="chatW" border="none" mode="overlapped"
viewModel="@id('vm') @init('zul.chat.chattest.ChatController')"
binder="@init(queueScope='application')"
minimizable="true"
onClick="@command('showChat')"
title="${labels.conversation }" apply="org.zkoss.bind.BindComposer"
onMinimize="@command('minimize')">
</window>
and method minimize in Controller
@Command("minimize")
@NotifyChange("minimizedWindow")
public void minimize(
@ContextParam(ContextType.TRIGGER_EVENT) MinimizeEvent event) {
System.out.println("in minimize event" + event);
event.stopPropagation();
}
And when i click on minimize button window disapear. How i can stop this event?
I'm wondering why you need to do that. It is a default behavior so Making the minimizable of the windows's property as false is straightforward. if you really want to do that, just simply do like following.
((Window)event.getTarget()).setMinimized(false);
Asked: 2014-10-07 07:48:53 +0800
Seen: 12 times
Last updated: Oct 14 '14
do you mean ZK 7.0.1 ??
JerryChen ( 2014-10-08 01:57:20 +0800 )edityes. i mean 7.0.1
sentinal ( 2014-10-09 10:37:21 +0800 )edit