Java Doc for ModalItem.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

All known Subclasses:   net.refractions.udig.project.ui.internal.tool.display.ToolProxy,
ModalItem
abstract public class ModalItem implements ILazyOpListener(Code)

Responsibilities:

  • Maintain that only ModalItem is active at a time.
  • Mark contained ContributionItems as selected or not depending on whether the current ModalItem is active.
  • Contains a set of contributions.

author:
   jeichar
since:
   0.9.0


Field Summary
protected  String[]commandIds
    
protected  OpFilterenablement
    
protected  StringhandlerType
    
protected  Stringid
    
protected  ImageDescriptorimageDescriptor
    
protected  booleanisEnabled
    
protected  Stringname
    
protected  List<OperationCategory>operationCategories
    
protected  StringtoolTipText
    


Method Summary
public  booleanaddContribution(CurrentContributionItem contribution)
    
public  voidclearContributions()
    
abstract public  voiddispose()
     disposes of any resources held by the item.
public  ImagegetActiveImage()
     Returns the "pushed" look of an active icon.
abstract protected  ModalItemgetActiveItem()
     Returns the currently active item or null if no currently active tool.
public  String[]getCommandIds()
    
public  List<CurrentContributionItem>getContributions()
     Returns the list of contributions controlled by this item.
abstract protected  ModalItemgetDefaultItem()
     Gets the default item.
public  OpFiltergetEnablesFor()
    
abstract public  IHandlergetHandler(String commandId)
     Returns an instance of a command handler for the current item.
Parameters:
  commandId - the id of the command to get a handler for.
public  StringgetId()
    
public  ImagegetImage()
    
public  ImageDescriptorgetImageDescriptor()
     Gets the image descriptor of the item.
public  StringgetName()
     gets the name of the item.
public  List<OperationCategory>getOperationCategories()
    
public  StringgetToolTipText()
    
protected  voidinternalSetEnabled(boolean isEnabled2)
    
abstract public  booleanisDisposed()
    
public  booleanisEnabled()
     Returns whether the item is enabled.
public  CurrentContributionItemremoveContribution(int index)
    
public  booleanremoveContribution(CurrentContributionItem contribution)
    
public  voidrun()
    
abstract protected  booleanrunModeless()
     If the current Item is modeless then runModelss runs the item and return true.
abstract protected  voidsetActive(boolean active)
     Activates the current item.
abstract protected  voidsetActiveItem(ModalItem item)
     Sets the currently active item.
public  voidsetChecked(boolean checked)
     Marks each contribution item as selected.
public  voidsetEnabled(boolean isEnabled)
    
public  voidsetId(String id)
    
public  voidsetImageDescriptor(ImageDescriptor imageDescriptor)
     Sets the images descriptor of the item.
public  voidsetName(String name)
    
public  voidsetToolTipText(String toolTipText)
    

Field Detail
commandIds
protected String[] commandIds(Code)



enablement
protected OpFilter enablement(Code)



handlerType
protected String handlerType(Code)



id
protected String id(Code)



imageDescriptor
protected ImageDescriptor imageDescriptor(Code)



isEnabled
protected boolean isEnabled(Code)



name
protected String name(Code)



operationCategories
protected List<OperationCategory> operationCategories(Code)



toolTipText
protected String toolTipText(Code)





Method Detail
addContribution
public boolean addContribution(CurrentContributionItem contribution)(Code)



clearContributions
public void clearContributions()(Code)



dispose
abstract public void dispose()(Code)
disposes of any resources held by the item.



getActiveImage
public Image getActiveImage()(Code)
Returns the "pushed" look of an active icon. the "pushed" look of an active icon.



getActiveItem
abstract protected ModalItem getActiveItem()(Code)
Returns the currently active item or null if no currently active tool. the currently active item or null if no currently active tool.



getCommandIds
public String[] getCommandIds()(Code)
Returns the list desired commands the list of desired commands



getContributions
public List<CurrentContributionItem> getContributions()(Code)
Returns the list of contributions controlled by this item.



getDefaultItem
abstract protected ModalItem getDefaultItem()(Code)
Gets the default item. the default item.



getEnablesFor
public OpFilter getEnablesFor()(Code)



getHandler
abstract public IHandler getHandler(String commandId)(Code)
Returns an instance of a command handler for the current item.
Parameters:
  commandId - the id of the command to get a handler for. an instance of a command handler for the current item.



getId
public String getId()(Code)
ID of item the id



getImage
public Image getImage()(Code)
Gets the icon image of the tool the icon image of the tool.



getImageDescriptor
public ImageDescriptor getImageDescriptor()(Code)
Gets the image descriptor of the item. the image descripor of the item.



getName
public String getName()(Code)
gets the name of the item. the name of the item.



getOperationCategories
public List<OperationCategory> getOperationCategories()(Code)



getToolTipText
public String getToolTipText()(Code)
Gets the tooltip of the item the tooltip of the item.



internalSetEnabled
protected void internalSetEnabled(boolean isEnabled2)(Code)



isDisposed
abstract public boolean isDisposed()(Code)
Returns true if the item is disposed Returns true if the item is disposed



isEnabled
public boolean isEnabled()(Code)
Returns whether the item is enabled.



removeContribution
public CurrentContributionItem removeContribution(int index)(Code)



removeContribution
public boolean removeContribution(CurrentContributionItem contribution)(Code)



run
public void run()(Code)

See Also:   net.refractions.udig.project.ui.tool.ActionTool.run



runModeless
abstract protected boolean runModeless()(Code)
If the current Item is modeless then runModelss runs the item and return true. true if the item is modeless.



setActive
abstract protected void setActive(boolean active)(Code)
Activates the current item. The activeTool item field does not need to be set in this method.



setActiveItem
abstract protected void setActiveItem(ModalItem item)(Code)
Sets the currently active item.



setChecked
public void setChecked(boolean checked)(Code)
Marks each contribution item as selected.
Parameters:
  checked - the selected value of each contribution.



setEnabled
public void setEnabled(boolean isEnabled)(Code)



setId
public void setId(String id)(Code)
sets the id of the item
Parameters:
  id - the new id.



setImageDescriptor
public void setImageDescriptor(ImageDescriptor imageDescriptor)(Code)
Sets the images descriptor of the item.
Parameters:
  imageDescriptor - the new image descriptor.



setName
public void setName(String name)(Code)
Sets the name of the item
Parameters:
  name - the new name



setToolTipText
public void setToolTipText(String toolTipText)(Code)
sets the tooltip of the item
Parameters:
  toolTipText - the new tooltip



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)

ww___w___.___ja_va__2s___.___c__o___m___ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.