Java Doc for DesignContext.java in  » Workflow-Engines » osbl-1_0 » org » osbl » agent » gui » 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 » Workflow Engines » osbl 1_0 » org.osbl.agent.gui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.osbl.agent.gui.DesignContext

All known Subclasses:   org.osbl.agent.gui.SubjectDesignContext,  org.osbl.agent.gui.ObjectDesignContext,
DesignContext
abstract public class DesignContext (Code)
The DesignContext is one of the most important classes in the implementation of the Agent System. Many classes present context-dependent interface and/or behaviour. Instead of having to subclass these classes for each Context, this presentation and/or behaviour is this class. Classes that delegate to DesignContext are:
author:
   Sebastian Nozzi.


Field Summary
protected  AgentSystemagentSystem
     The agent system.
protected  List<Rule>currentRules
     The current rules.
protected  ObjectEditorobjectEditor
     The object editor.
protected  PreviewControllerpreviewController
     The preview controller.
protected  RuleEditorPanelruleEditorPanel
     The rule editor panel.
protected  SidePanelsidePanel
     The side panel.

Constructor Summary
public  DesignContext(ObjectEditor objectEditor)
     Instantiates a new design context.

Method Summary
abstract public  voidaddSideFilters(SidePanel targetPanel)
     Populates a SidePanel with context-specific filters.
abstract public  voidaddSpecifierComponents(RuleEditorPanel targetPanel)
     Adds the Specifier components to a RuleEditorPanel.
public  booleanbelongsToDesignContext(Rule rule)
     Answers whether a given Rule belongs to this DesignContext.
Parameters:
  rule - the Rule to be analyzed.
abstract public  voidchangeSpecifiers(Rule rule)
     Change the Specifier Parameters on-screen to reflect the ones set in the Rule.
abstract public  voidenableSpecifierComponents(boolean enabled)
     Enable/disable Specifier UI-components.
abstract public  List<OperationController>getActionControllers()
     Gets the ActionControllers available on this context.
public  SidePanelgetAgentSidePanel()
     Obtains the context-specific SidePanel instance.
abstract public  List<OperationController>getConditionControllers()
     Gets the ConditionControllers available on this context.
public  List<Rule>getCurrentRules()
     Retrieves the list of the current Rules.
public static  StringgetCurrentUser()
     Returns the user-id of the currently logged-in user.
protected static  StringgetMsg(String code, Object... args)
     Convenience method to retrieve a localized version of a String.
public  ObjectEditorgetObjectEditor()
     Returns the context-specific OSBL ObjectEditor passed upon construction.
protected  WindowgetParentWindow()
     Gets the parent window.
public  PreviewControllergetPreviewController()
     Obtains a context-dependent PreviewController instance.
abstract protected  PreviewControllergetPreviewControllerInstance()
     Factory method that instantiates and returns a context-specific PreviewController.
public  RuleEditorPanelgetRuleEditorPanel()
     Obtains the context-specific RuleEditorPanel instance.
abstract public  RuntimeContextgetRuntimeContext()
     Gets the RuntimeContext that corresponds to this (Design)Context.
abstract public  ClassgetRuntimeObjectClass()
     Gets the class of the runtime target object.
public  Stringmsg(String code, Object... args)
     Convenience method to retrieve a localized version of a String.
public  voidpopulateRule(Rule editedRule)
     Populate rule.
abstract public  voidrecomputeCurrentRules()
     Recompute the current Rules to be shown in the UI, based on the logged user-id, the filters applied (if any) and the public status of the other Rules.

Field Detail
agentSystem
protected AgentSystem agentSystem(Code)
The agent system.



currentRules
protected List<Rule> currentRules(Code)
The current rules.



objectEditor
protected ObjectEditor objectEditor(Code)
The object editor.



previewController
protected PreviewController previewController(Code)
The preview controller.



ruleEditorPanel
protected RuleEditorPanel ruleEditorPanel(Code)
The rule editor panel.



sidePanel
protected SidePanel sidePanel(Code)
The side panel.




Constructor Detail
DesignContext
public DesignContext(ObjectEditor objectEditor)(Code)
Instantiates a new design context. It has to be passed an ObjectEditor, used to display modified objects and persist those changes (primarily used in the Preview Mode).
Parameters:
  objectEditor - an OSBL object editor instance




Method Detail
addSideFilters
abstract public void addSideFilters(SidePanel targetPanel)(Code)
Populates a SidePanel with context-specific filters. Called by the SidePanel when it is time to include the filters during its UI construction.
Parameters:
  targetPanel - the target panel where the filter components are to be added.



addSpecifierComponents
abstract public void addSpecifierComponents(RuleEditorPanel targetPanel)(Code)
Adds the Specifier components to a RuleEditorPanel. Called by the latter when building its UI. The DesignContext can put context-specific components in it.
Parameters:
  targetPanel - the target RuleEditorPanel instance.



belongsToDesignContext
public boolean belongsToDesignContext(Rule rule)(Code)
Answers whether a given Rule belongs to this DesignContext.
Parameters:
  rule - the Rule to be analyzed. true, if it does belong to this context.



changeSpecifiers
abstract public void changeSpecifiers(Rule rule)(Code)
Change the Specifier Parameters on-screen to reflect the ones set in the Rule.
Parameters:
  rule - the Rule which contains Specifier Parameters whose state should be reflected in the UI.



enableSpecifierComponents
abstract public void enableSpecifierComponents(boolean enabled)(Code)
Enable/disable Specifier UI-components. Permits/avoids edition or change of the parameters. Used when the user is not editable.
Parameters:
  enabled - whether to enable the components or not.



getActionControllers
abstract public List<OperationController> getActionControllers()(Code)
Gets the ActionControllers available on this context. Requested by the RuleEditorPanel. the ActionControllers for this context.



getAgentSidePanel
public SidePanel getAgentSidePanel()(Code)
Obtains the context-specific SidePanel instance. Successive calls to this methods yields the same instance. the context-specific SidePanel instance.



getConditionControllers
abstract public List<OperationController> getConditionControllers()(Code)
Gets the ConditionControllers available on this context. Requested by the RuleEditorPanel. the ConditionControllers for this context.



getCurrentRules
public List<Rule> getCurrentRules()(Code)
Retrieves the list of the current Rules. This call does not recompute the Rules. the current Rules, as a List.



getCurrentUser
public static String getCurrentUser()(Code)
Returns the user-id of the currently logged-in user. the current user's id.



getMsg
protected static String getMsg(String code, Object... args)(Code)
Convenience method to retrieve a localized version of a String. The String might contain format indicators, in which case the data corresponding to those are provided as additional arguments.
Parameters:
  code - the code of the localizable String.
Parameters:
  args - additional arguments applicable to the (format) String. the localized String



getObjectEditor
public ObjectEditor getObjectEditor()(Code)
Returns the context-specific OSBL ObjectEditor passed upon construction. Requested principally by the PreviewMode to show the modified object, allow further edition to it, and persist it. the ObjectEditor.



getParentWindow
protected Window getParentWindow()(Code)
Gets the parent window. Used for opening new panels in the central window. the parent window



getPreviewController
public PreviewController getPreviewController()(Code)
Obtains a context-dependent PreviewController instance. The instance will be created only once. Successive calls to this method will return the same instance. the context-specific PreviewController instance.



getPreviewControllerInstance
abstract protected PreviewController getPreviewControllerInstance()(Code)
Factory method that instantiates and returns a context-specific PreviewController. Usually invoked by the SidePanel. the context-specific PreviewController instance.



getRuleEditorPanel
public RuleEditorPanel getRuleEditorPanel()(Code)
Obtains the context-specific RuleEditorPanel instance. Successive calls to this method will yield the same instance. the context-specific RuleEditorPanel instance.



getRuntimeContext
abstract public RuntimeContext getRuntimeContext()(Code)
Gets the RuntimeContext that corresponds to this (Design)Context. Usually invoked by the PreviewController. the context-specific RuntimeContext.



getRuntimeObjectClass
abstract public Class getRuntimeObjectClass()(Code)
Gets the class of the runtime target object. the class of the runtime target object.



msg
public String msg(String code, Object... args)(Code)
Convenience method to retrieve a localized version of a String. The String might contain format indicators, in which case the data corresponding to those are provided as additional arguments.
Parameters:
  code - the code of the localizable String.
Parameters:
  args - additional arguments applicable to the (format) String. the localized String



populateRule
public void populateRule(Rule editedRule)(Code)
Populate rule. Requested by the RuleEditorPanel.
Parameters:
  editedRule - the edited rule



recomputeCurrentRules
abstract public void recomputeCurrentRules()(Code)
Recompute the current Rules to be shown in the UI, based on the logged user-id, the filters applied (if any) and the public status of the other Rules. Called whenever the filters have changed. Subclasses implement a context-specific way of recomputing the Rules, usually using the filter settings.



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)

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