TASKPM/ganttzk-demo-webapp/src/main/webapp/common/components/twowayselector.zul

62 lines
No EOL
2 KiB
Text

<!--
This file is part of ###PROJECT_NAME###
Copyright (C) 2009 Fundación para o Fomento da Calidade Industrial e
Desenvolvemento Tecnolóxico de Galicia
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<zk>
<zscript>
<![CDATA[
top = self;
]]>
</zscript>
<vbox>
<hbox>
<listbox id="assignedObjects"
model="@{top.assignedObjects}"
itemRenderer="@{top.renderer}"
multiple="true" checkmark="true" height="200px">
<listhead>
<listheader label="@{top.assignedTitle}" />
</listhead>
</listbox>
<vbox style="margin-top:80px">
<button id="assignButton" label="&lt;&lt;"
onClick="top.assign(unassignedObjects);" />
<button id="unassignButton" label="&gt;&gt;"
onClick="top.unassign(assignedObjects);" />
</vbox>
<listbox id="unassignedObjects"
model="@{top.unassignedObjects}"
itemRenderer="@{top.renderer}"
multiple="true" checkmark="true" height="200px">
<listhead>
<listheader label="@{top.unassignedTitle}" />
</listhead>
</listbox>
</hbox>
</vbox>
</zk>