Java Doc for JMoneyPlugin.java in  » ERP-CRM-Financial » jmoney » net » sf » jmoney » 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 » ERP CRM Financial » jmoney » net.sf.jmoney 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


net.sf.jmoney.JMoneyPlugin

JMoneyPlugin
public class JMoneyPlugin extends AbstractUIPlugin (Code)
The main plugin class to be used in the desktop.


Field Summary
final public static  booleanDEBUG
    
final public static  StringPLUGIN_ID
    

Constructor Summary
public  JMoneyPlugin()
     The constructor.

Method Summary
public  voidaddSessionChangeListener(CurrentSessionChangeListener listener, Control control)
     Adds a change listener.

The listener is active only for as long as the given control exists.

public static  booleanareEqual(Object object1, Object object2)
     Helper method to compare two objects.
public static  ImagecreateImage(String name)
    
public static  ImageDescriptorcreateImageDescriptor(String name)
    
public  StringgetDateFormat()
     Get the format to be used for dates.
public static  JMoneyPlugingetDefault()
     Returns the shared instance.
public static  CurrencygetIsoCurrency(Session session, String code)
     Get the corresponding ISO currency for "code".
public  ResourceBundlegetResourceBundle()
    
public static  StringgetResourceString(String key)
     Returns the string from the plugin's resource bundle, or 'key' if not found.
public  SessiongetSession()
    
public  DatastoreManagergetSessionManager()
    
public static  voidinitSystemCurrency(Session session)
     Whenever a new session is created, JMoney will set a single initial currency.
public static  voidlog(IStatus status)
     Log status to log the of this plug-in.
public static  voidlog(Throwable e)
     Log exception to the log of this plug-in.
public static  SessionopenSession(IMemento memento)
     Given a memento containing the data needed to open a session, return the session.
public  booleansaveOldSession(IWorkbenchWindow window)
     Saves the old session.
public  voidsetSessionManager(DatastoreManager newSessionManager)
     Sets the Session object.
public  voidstart(BundleContext context)
    
public  voidstop(BundleContext context)
    

Field Detail
DEBUG
final public static boolean DEBUG(Code)



PLUGIN_ID
final public static String PLUGIN_ID(Code)




Constructor Detail
JMoneyPlugin
public JMoneyPlugin()(Code)
The constructor.




Method Detail
addSessionChangeListener
public void addSessionChangeListener(CurrentSessionChangeListener listener, Control control)(Code)
Adds a change listener.

The listener is active only for as long as the given control exists. When the given control is disposed, the listener is removed and will receive no more notifications.

This method is generally used when a listener is used to update contents in a control. Typically multiple controls are updated by a listener and the parent composite control is passed to this method.
Parameters:
  listener -
Parameters:
  control -




areEqual
public static boolean areEqual(Object object1, Object object2)(Code)
Helper method to compare two objects. Either or both the objects may be null. If both objects are null, they are considered equal.
Parameters:
  object -
Parameters:
  object2 -



createImage
public static Image createImage(String name)(Code)



createImageDescriptor
public static ImageDescriptor createImageDescriptor(String name)(Code)



getDateFormat
public String getDateFormat()(Code)
Get the format to be used for dates. This format is compatible with the VerySimpleDateFormat class. The format is read from the preference store.



getDefault
public static JMoneyPlugin getDefault()(Code)
Returns the shared instance.



getIsoCurrency
public static Currency getIsoCurrency(Session session, String code)(Code)
Get the corresponding ISO currency for "code". If "session" already contains such a currency this currency is returned. Otherwise, we check our list of ISO 4217 currencies and we create a new currency instance for "session".
Parameters:
  session - Session object which will contain the currency
Parameters:
  code - ISO currency code Currency for "code"



getResourceBundle
public ResourceBundle getResourceBundle()(Code)
Returns the plugin's resource bundle,



getResourceString
public static String getResourceString(String key)(Code)
Returns the string from the plugin's resource bundle, or 'key' if not found.



getSession
public Session getSession()(Code)



getSessionManager
public DatastoreManager getSessionManager()(Code)



initSystemCurrency
public static void initSystemCurrency(Session session)(Code)
Whenever a new session is created, JMoney will set a single initial currency. The currency is taken from our list of ISO 4217 currencies and chosen using information from the default locale. This currency is also set as the default currency.

By doing this, we minimize the number of steps that a new JMoney user must take to get started. If a user only ever uses a single currency then the user may never have to worry about currencies and may never see a currency selection control.
Parameters:
  session -




log
public static void log(IStatus status)(Code)
Log status to log the of this plug-in.



log
public static void log(Throwable e)(Code)
Log exception to the log of this plug-in.
Parameters:
  e - Exception to log



openSession
public static Session openSession(IMemento memento)(Code)
Given a memento containing the data needed to open a session, return the session. If the session is already open then return the session, otherwise the session is opened by this method and returned.
Parameters:
  memento -



saveOldSession
public boolean saveOldSession(IWorkbenchWindow window)(Code)
Saves the old session. Returns false if canceled by user or the save fails.



setSessionManager
public void setSessionManager(DatastoreManager newSessionManager)(Code)
Sets the Session object. The session object contains the accounting data so this method will replace the accounting data in the framework with a new set of accounting data. This method is normally called only by plug-ins that implement a datastore when accounting data is loaded. To avoid doing too much work and user input before setting the new session, only to find that the user does not want to close the previous session, plug-in actions that expect to set a new session should call canClose on the previous session before preparing the new session. It is the caller's responsibility to ensure that both canClose() and close() are called on the previous session. This method will not close any previously set session.



start
public void start(BundleContext context) throws Exception(Code)
This method is called upon plug-in activation



stop
public void stop(BundleContext context) throws Exception(Code)
This method is called when the plug-in is stopped



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.