Java Doc for ToolProxy.java in  » GIS » udig-1.1 » net » refractions » udig » project » ui » internal » tool » display » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » udig 1.1 » net.refractions.udig.project.ui.internal.tool.display 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.refractions.udig.project.ui.internal.tool.display.ModalItem
      net.refractions.udig.project.ui.internal.tool.display.ToolProxy

ToolProxy
public class ToolProxy extends ModalItem implements ModalTool,ActionTool(Code)
The tool proxy allows tools to be loaded lazily. It acts as a proxy for a tool as far as the Map editors are concerned.
author:
   Jesse Eichar
version:
   $Revision: 1.9 $

Inner Class :public static class CursorLoader

Field Summary
final static  intACTION
    
final static  intBACKGROUND
    
final static  intMODAL
    
 StringdefaultCursorID
    
 IConfigurationElementelement
     Configuration from extension registry for this tool.
 LockenabledLock
    
 booleanhasControl
    
 Tooltool
     The actual tool implementation.
 IToolContexttoolContext
     The current tool context.
 inttype
    

Constructor Summary
public  ToolProxy(IExtension extension, IConfigurationElement tool, ToolManager toolManager)
    

Method Summary
public  voidaddListener(ToolLifecycleListener listener)
    
public  voiddispose()
    
public  IActiongetAction()
    
protected  ModalItemgetActiveItem()
    
public  StringgetCategoryId()
     Returns ID of tool category from extention registry.
public  IToolContextgetContext()
    
public  StringgetCursorID()
    
protected  ModalItemgetDefaultItem()
    
public  IHandlergetHandler(String commandId)
    
public  StringgetMenuPath()
    
 ModalToolgetModalTool()
    
 ActionToolgetModelessTool()
    
public  ObjectgetProperty(String key)
    
public  IMapEditorSelectionProvidergetSelectionProvider()
    
public  intgetStyle()
    
public  ToolgetTool()
    
public  intgetType()
    
public  booleanisActive()
    
public  booleanisDisposed()
    
public  booleanisEnabled()
    
public  booleanisOnToolbar()
    
public  voidnotifyResultObtained(boolean result)
    
 CursorLoaderparseCursor(IConfigurationElement toolDef)
    
public  voidremoveListener(ToolLifecycleListener listener)
    
public  voidrun()
    
protected  booleanrunModeless()
    
public  voidsetActive(boolean active)
    
protected  voidsetActiveItem(ModalItem modalItem)
    
public  voidsetContext(IToolContext toolContext)
    
public  voidsetCursorID(String id)
    
public  voidsetEnabled(boolean enabled)
    
public  voidsetProperty(String key, Object value)
    
public  voidsetSelectionProvider(IMapEditorSelectionProvider selectionProvider)
    
public  StringtoString()
    
protected  voidtoolProxySetEnabled(boolean enabled)
    

Field Detail
ACTION
final static int ACTION(Code)



BACKGROUND
final static int BACKGROUND(Code)



MODAL
final static int MODAL(Code)



defaultCursorID
String defaultCursorID(Code)



element
IConfigurationElement element(Code)
Configuration from extension registry for this tool.



enabledLock
Lock enabledLock(Code)



hasControl
boolean hasControl(Code)



tool
Tool tool(Code)
The actual tool implementation. To be lazily loaded.



toolContext
IToolContext toolContext(Code)
The current tool context.



type
int type(Code)




Constructor Detail
ToolProxy
public ToolProxy(IExtension extension, IConfigurationElement tool, ToolManager toolManager)(Code)
Creates an new instance of MapViewport.ToolAction
Parameters:
  extension - The Tool extension
Parameters:
  tool - The configuration element which describes the tool
Parameters:
  newParam - TODO




Method Detail
addListener
public void addListener(ToolLifecycleListener listener)(Code)



dispose
public void dispose()(Code)

See Also:   net.refractions.udig.project.ui.internal.tool.display.ModalItem.dispose



getAction
public IAction getAction()(Code)
Creates an action that will run the tool referenced by this proxy an action that will run the tool referenced by this proxy



getActiveItem
protected ModalItem getActiveItem()(Code)

See Also:   net.refractions.udig.project.ui.internal.tool.display.ModalItem.getActiveItem



getCategoryId
public String getCategoryId()(Code)
Returns ID of tool category from extention registry.



getContext
public IToolContext getContext()(Code)

See Also:   net.refractions.udig.project.ui.tool.Tool.getContext



getCursorID
public String getCursorID()(Code)
(non-Javadoc)
See Also:   net.refractions.udig.project.ui.tool.ModalTool.getCursorID



getDefaultItem
protected ModalItem getDefaultItem()(Code)

See Also:   net.refractions.udig.project.ui.internal.tool.display.ModalItem.getDefaultItem



getHandler
public IHandler getHandler(String commandId)(Code)

See Also:   net.refractions.udig.project.ui.internal.tool.display.ModalItem.getHandler(java.lang.String)



getMenuPath
public String getMenuPath()(Code)
If the current action is a ActionTool then the menu path of the tool action is returned the menu path of the tool action or null if the current tool is not an ActionTool.



getModalTool
ModalTool getModalTool()(Code)



getModelessTool
ActionTool getModelessTool()(Code)



getProperty
public Object getProperty(String key)(Code)
(non-Javadoc)
See Also:   net.refractions.udig.project.ui.tool.Tool.getProperty(java.lang.String)



getSelectionProvider
public IMapEditorSelectionProvider getSelectionProvider()(Code)



getStyle
public int getStyle()(Code)

See Also:   org.eclipse.jface.action.Action.getStyle



getTool
public Tool getTool()(Code)
Returns proxy



getType
public int getType()(Code)
Returns the type.



isActive
public boolean isActive()(Code)
(non-Javadoc)
See Also:   net.refractions.udig.project.ui.tool.ModalTool.isActive



isDisposed
public boolean isDisposed()(Code)



isEnabled
public boolean isEnabled()(Code)
(non-Javadoc)
See Also:   net.refractions.udig.project.ui.tool.Tool.isEnabled



isOnToolbar
public boolean isOnToolbar()(Code)
Returns the onToolbar.



notifyResultObtained
public void notifyResultObtained(boolean result)(Code)



parseCursor
CursorLoader parseCursor(IConfigurationElement toolDef)(Code)



removeListener
public void removeListener(ToolLifecycleListener listener)(Code)



run
public void run()(Code)
(non-Javadoc)
See Also:   net.refractions.udig.project.ui.tool.ActionTool.run



runModeless
protected boolean runModeless()(Code)

See Also:   net.refractions.udig.project.ui.internal.tool.display.ModalItem.runModeless



setActive
public void setActive(boolean active)(Code)

See Also:   net.refractions.udig.project.ui.internal.tool.display.ModalItem.setActive(boolean)



setActiveItem
protected void setActiveItem(ModalItem modalItem)(Code)

See Also:   net.refractions.udig.project.ui.internal.tool.display.ModalItem.setActiveItem(net.refractions.udig.project.ui.internal.tool.display.ModalItem)



setContext
public void setContext(IToolContext toolContext)(Code)

See Also:   net.refractions.udig.project.ui.tool.Tool.setContext(net.refractions.udig.project.ui.tool.IToolContext)



setCursorID
public void setCursorID(String id)(Code)
Empty implementation
See Also:   net.refractions.udig.project.ui.tool.ModalTool.setCursorID(java.lang.String)



setEnabled
public void setEnabled(boolean enabled)(Code)
(non-Javadoc)
See Also:   net.refractions.udig.project.ui.tool.ModalTool.setEnabled(boolean)



setProperty
public void setProperty(String key, Object value)(Code)
(non-Javadoc)
See Also:   net.refractions.udig.project.ui.tool.Tool.setProperty(java.lang.Stringjava.lang.Object)



setSelectionProvider
public void setSelectionProvider(IMapEditorSelectionProvider selectionProvider)(Code)



toString
public String toString()(Code)

See Also:   java.lang.Object.toString



toolProxySetEnabled
protected void toolProxySetEnabled(boolean enabled)(Code)



Fields inherited from net.refractions.udig.project.ui.internal.tool.display.ModalItem
protected String[] commandIds(Code)(Java Doc)
protected OpFilter enablement(Code)(Java Doc)
protected String handlerType(Code)(Java Doc)
protected String id(Code)(Java Doc)
protected ImageDescriptor imageDescriptor(Code)(Java Doc)
protected boolean isEnabled(Code)(Java Doc)
protected String name(Code)(Java Doc)
protected List<OperationCategory> operationCategories(Code)(Java Doc)
protected String toolTipText(Code)(Java Doc)

Methods inherited from net.refractions.udig.project.ui.internal.tool.display.ModalItem
public boolean addContribution(CurrentContributionItem contribution)(Code)(Java Doc)
public void clearContributions()(Code)(Java Doc)
abstract public void dispose()(Code)(Java Doc)
public Image getActiveImage()(Code)(Java Doc)
abstract protected ModalItem getActiveItem()(Code)(Java Doc)
public String[] getCommandIds()(Code)(Java Doc)
public List<CurrentContributionItem> getContributions()(Code)(Java Doc)
abstract protected ModalItem getDefaultItem()(Code)(Java Doc)
public OpFilter getEnablesFor()(Code)(Java Doc)
abstract public IHandler getHandler(String commandId)(Code)(Java Doc)
public String getId()(Code)(Java Doc)
public Image getImage()(Code)(Java Doc)
public ImageDescriptor getImageDescriptor()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public List<OperationCategory> getOperationCategories()(Code)(Java Doc)
public String getToolTipText()(Code)(Java Doc)
protected void internalSetEnabled(boolean isEnabled2)(Code)(Java Doc)
abstract public boolean isDisposed()(Code)(Java Doc)
public boolean isEnabled()(Code)(Java Doc)
public CurrentContributionItem removeContribution(int index)(Code)(Java Doc)
public boolean removeContribution(CurrentContributionItem contribution)(Code)(Java Doc)
public void run()(Code)(Java Doc)
abstract protected boolean runModeless()(Code)(Java Doc)
abstract protected void setActive(boolean active)(Code)(Java Doc)
abstract protected void setActiveItem(ModalItem item)(Code)(Java Doc)
public void setChecked(boolean checked)(Code)(Java Doc)
public void setEnabled(boolean isEnabled)(Code)(Java Doc)
public void setId(String id)(Code)(Java Doc)
public void setImageDescriptor(ImageDescriptor imageDescriptor)(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)
public void setToolTipText(String toolTipText)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

w_w_w___._j_a__v_a___2s.co_m___ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.