...
None
Examples
Code Block |
---|
| xml | xml |
---|
title | A Basic toolbar definition |
---|
linenumbers | true |
---|
| xml |
---|
|
<toolbar>
<item action="com.cohga.html.client.actions.zoomInAction"/>
<item action="com.cohga.html.client.actions.zoomOutAction"/>
<item>-</item>
<item action="com.cohga.html.client.map.initialExtentAction"/>
<item action="com.cohga.html.client.map.fullExtentAction"/>
<item action="com.cohga.html.client.map.refreshMapAction"/>
<item>-></item> <!-- move this off to the right -->
<item component="com.cohga.html.client.components.loadingComponent"/>
<item>|</item> <!-- put the next items on their own line -->
<item action="com.cohga.html.client.actions.reportAction"/>
<item action="com.cohga.html.client.actions.gridAction"/>
</toolbar>
|
Code Block |
xml |
---|
| xml |
---|
title | Adding a toolbar to a layout region |
---|
linenumbers | true |
---|
| xml |
---|
|
<client:config>
<perspective>
<layout>
<west>
<name>toc</name>
<type>fit</type>
<west>
<center>
<name>map</toolbar>
<type>fit</type>
<toolbar>
<item action="com.cohga.dms.ShowSelected"/>
<item action="com.cohga.dms.ShowAllSelected"/>
</toolbar>
</center>
</layout>
....
</perspective>
</client:config>
|
Code Block |
xml |
---|
| xml |
---|
title | Adding a toolbar to the application |
---|
linenumbers | true |
---|
| xml |
---|
|
<client:config>
<toolbar>
<item action="com.cohga.dms.ShowSelected"/>
<item action="com.cohga.dms.ShowAllSelected"/>
</toolbar>
<perspective>
<layout>
<west>
<name>toc</name>
<type>fit</type>
<west>
<center>
<name>map</toolbar>
<type>fit</type>
</center>
</layout>
....
</perspective>
</client:config>
|
Here is the sample of the select tools inside the toogle button
Code Block |
---|
| xml | xml |
---|
title | Creating a sub-toolbar |
---|
linenumbers | true |
---|
| xml |
---|
|
<item action="weave.toggleToolbar">
<iconCls>icon-selectfeatures</iconCls>
<toolbar>
<item action="com.cohga.html.client.map.select.rect.newAction"/>
<item action="com.cohga.html.client.map.select.rect.addAction"/>
<item action="com.cohga.html.client.map.select.rect.removeAction"/>
<item action="com.cohga.html.client.map.select.rect.refineAction"/>
<item>-</item>
<item action="com.cohga.html.client.map.select.circle.newAction"/>
<item action="com.cohga.html.client.map.select.circle.addAction"/>
<item action="com.cohga.html.client.map.select.circle.removeAction"/>
<item action="com.cohga.html.client.map.select.circle.refineAction"/>
<item>-</item>
<item action="com.cohga.html.client.map.select.polyline.newAction"/>
<item action="com.cohga.html.client.map.select.polyline.addAction"/>
<item action="com.cohga.html.client.map.select.polyline.removeAction"/>
<item action="com.cohga.html.client.map.select.polyline.refineAction"/>
<itemitem>
<item action="com.cohga.html.client.map.select.polygon.newAction"/>
<item action="com.cohga.html.client.map.select.polygon.addAction"/>
<item action="com.cohga.html.client.map.select.polygon.removeAction"/>
<item action="com.cohga.html.client.map.select.polygon.refineAction"/>
<itemitem>
<item action="com.cohga.html.client.map.select.clearAction"/>
<item action="com.cohga.html.client.map.select.clearAllAction"/>
<itemitem>
<item action="com.cohga.html.client.map.select.zoomAction"/>
<itemitem>
<item action="com.cohga.html.client.actions.bufferAction"/>
</toolbar>
</item>
|
Code Block |
---|
| xml | xml |
---|
title | And maybe a Navigation Group |
---|
linenumbers | true |
---|
| xml |
---|
|
<item action="weave.toggleToolbar">
<iconCls>icon-world</iconCls>
<align>tl-bl</align>
<pressed>true</pressed>
<toolbar>
<item action="weave.previousExtent"/>
<item action="weave.nextExtent"/>
<item action="weave.initialExtent"/>
<item action="weave.fullExtent"/>
<item action="weave.zoomIn"/>
<item action="weave.zoomOut"/>
<item action="weave.pan" isDefault="true"/>
<item action="weave.refreshMap"/>
</toolbar>
</item>
|
...