Java Doc for ResourceAndContainerGroup.java in  » ESB » cbesb-1.2 » com » bostechcorp » cbesb » ui » ide » wizards » 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 » ESB » cbesb 1.2 » com.bostechcorp.cbesb.ui.ide.wizards 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.bostechcorp.cbesb.ui.ide.wizards.ResourceAndContainerGroup

ResourceAndContainerGroup
public class ResourceAndContainerGroup implements Listener(Code)
Workbench-level composite for resource and container specification by the user. Services such as field validation are performed by the group. The group can be configured to accept existing resources, or only new resources.


Field Summary
final public static  intPROBLEM_CONTAINER_EMPTY
    
final public static  intPROBLEM_NAME_INVALID
    
final public static  intPROBLEM_NONE
    
final public static  intPROBLEM_PATH_INVALID
    
final public static  intPROBLEM_PATH_OCCUPIED
    
final public static  intPROBLEM_PROJECT_DOES_NOT_EXIST
    
final public static  intPROBLEM_RESOURCE_CONTAINS_SEPARATOR
    
final public static  intPROBLEM_RESOURCE_EMPTY
    
final public static  intPROBLEM_RESOURCE_EXIST
    

Constructor Summary
public  ResourceAndContainerGroup(Composite parent, Listener client, String resourceFieldLabel, String resourceType)
     Create an instance of the group to allow the user to enter/select a container and specify a resource name.
public  ResourceAndContainerGroup(Composite parent, Listener client, String resourceFieldLabel, String resourceType, boolean showClosedProjects)
     Create an instance of the group to allow the user to enter/select a container and specify a resource name.
public  ResourceAndContainerGroup(Composite parent, Listener client, String resourceFieldLabel, String resourceType, boolean showClosedProjects, int heightHint)
     Create an instance of the group to allow the user to enter/select a container and specify a resource name.

Method Summary
public  booleanareAllValuesValid()
     Returns a boolean indicating whether all controls in this group contain valid values.
protected  voidcreateContents(Composite parent, String resourceLabelString, int heightHint)
     Creates this object's visual components.
public  IPathgetContainerFullPath()
     Returns the path of the currently selected container or null if no container has been selected.
public  StringgetProblemMessage()
     Returns an error message indicating the current problem with the value of a control in the group, or an empty message if all controls in the group contain valid values.
public  intgetProblemType()
     Returns the type of problem with the value of a control in the group.
public  StringgetResource()
     Returns a string that is the path of the currently selected container.
public  voidhandleEvent(Event e)
     Handles events for all controls in the group.
public  voidsetAllowExistingResources(boolean value)
     Sets the flag indicating whether existing resources are permitted.
public  voidsetContainerFullPath(IPath path)
     Sets the value of this page's container.
public  voidsetFocus()
    
public  voidsetResource(String value, String prefix)
     Sets the value of this page's resource name.
protected  booleanvalidateContainer()
     Returns a boolean indicating whether a container name represents a valid container resource in the workbench.
protected  booleanvalidateControls()
     Validates the values for each of the group's controls.
protected  booleanvalidateFullResourcePath(IPath resourcePath)
     Returns a boolean indicating whether the specified resource path represents a valid new resource in the workbench.
protected  booleanvalidateResourceName()
     Returns a boolean indicating whether the resource name rep- resents a valid resource name in the workbench.

Field Detail
PROBLEM_CONTAINER_EMPTY
final public static int PROBLEM_CONTAINER_EMPTY(Code)



PROBLEM_NAME_INVALID
final public static int PROBLEM_NAME_INVALID(Code)



PROBLEM_NONE
final public static int PROBLEM_NONE(Code)



PROBLEM_PATH_INVALID
final public static int PROBLEM_PATH_INVALID(Code)



PROBLEM_PATH_OCCUPIED
final public static int PROBLEM_PATH_OCCUPIED(Code)



PROBLEM_PROJECT_DOES_NOT_EXIST
final public static int PROBLEM_PROJECT_DOES_NOT_EXIST(Code)



PROBLEM_RESOURCE_CONTAINS_SEPARATOR
final public static int PROBLEM_RESOURCE_CONTAINS_SEPARATOR(Code)



PROBLEM_RESOURCE_EMPTY
final public static int PROBLEM_RESOURCE_EMPTY(Code)



PROBLEM_RESOURCE_EXIST
final public static int PROBLEM_RESOURCE_EXIST(Code)




Constructor Detail
ResourceAndContainerGroup
public ResourceAndContainerGroup(Composite parent, Listener client, String resourceFieldLabel, String resourceType)(Code)
Create an instance of the group to allow the user to enter/select a container and specify a resource name.
Parameters:
  parent - composite widget to parent the group
Parameters:
  client - object interested in changes to the group's fields value
Parameters:
  resourceFieldLabel - label to use in front of the resource name field
Parameters:
  resourceType - one word, in lowercase, to describe the resource to the user(file, folder, project)



ResourceAndContainerGroup
public ResourceAndContainerGroup(Composite parent, Listener client, String resourceFieldLabel, String resourceType, boolean showClosedProjects)(Code)
Create an instance of the group to allow the user to enter/select a container and specify a resource name.
Parameters:
  parent - composite widget to parent the group
Parameters:
  client - object interested in changes to the group's fields value
Parameters:
  resourceFieldLabel - label to use in front of the resource name field
Parameters:
  resourceType - one word, in lowercase, to describe the resource to the user(file, folder, project)
Parameters:
  showClosedProjects - whether or not to show closed projects



ResourceAndContainerGroup
public ResourceAndContainerGroup(Composite parent, Listener client, String resourceFieldLabel, String resourceType, boolean showClosedProjects, int heightHint)(Code)
Create an instance of the group to allow the user to enter/select a container and specify a resource name.
Parameters:
  parent - composite widget to parent the group
Parameters:
  client - object interested in changes to the group's fields value
Parameters:
  resourceFieldLabel - label to use in front of the resource name field
Parameters:
  resourceType - one word, in lowercase, to describe the resource to the user(file, folder, project)
Parameters:
  showClosedProjects - whether or not to show closed projects
Parameters:
  heightHint - height hint for the container selection widget group




Method Detail
areAllValuesValid
public boolean areAllValuesValid()(Code)
Returns a boolean indicating whether all controls in this group contain valid values. boolean



createContents
protected void createContents(Composite parent, String resourceLabelString, int heightHint)(Code)
Creates this object's visual components.
Parameters:
  parent - org.eclipse.swt.widgets.Composite
Parameters:
  heightHint - height hint for the container selection widget group



getContainerFullPath
public IPath getContainerFullPath()(Code)
Returns the path of the currently selected container or null if no container has been selected. Note that the container may not exist yet if the user entered a new container name in the field.



getProblemMessage
public String getProblemMessage()(Code)
Returns an error message indicating the current problem with the value of a control in the group, or an empty message if all controls in the group contain valid values. java.lang.String



getProblemType
public int getProblemType()(Code)
Returns the type of problem with the value of a control in the group. one of the PROBLEM_* constants



getResource
public String getResource()(Code)
Returns a string that is the path of the currently selected container. Returns an empty string if no container has been selected.



handleEvent
public void handleEvent(Event e)(Code)
Handles events for all controls in the group.
Parameters:
  e - org.eclipse.swt.widgets.Event



setAllowExistingResources
public void setAllowExistingResources(boolean value)(Code)
Sets the flag indicating whether existing resources are permitted.



setContainerFullPath
public void setContainerFullPath(IPath path)(Code)
Sets the value of this page's container.
Parameters:
  path - Full path to the container.



setFocus
public void setFocus()(Code)
Gives focus to the resource name field and selects its contents



setResource
public void setResource(String value, String prefix)(Code)
Sets the value of this page's resource name.
Parameters:
  value - new value



validateContainer
protected boolean validateContainer()(Code)
Returns a boolean indicating whether a container name represents a valid container resource in the workbench. An error message is stored for future reference if the name does not represent a valid container. boolean indicating validity of the container name



validateControls
protected boolean validateControls()(Code)
Validates the values for each of the group's controls. If an invalid value is found then a descriptive error message is stored for later reference. Returns a boolean indicating the validity of all of the controls in the group.



validateFullResourcePath
protected boolean validateFullResourcePath(IPath resourcePath)(Code)
Returns a boolean indicating whether the specified resource path represents a valid new resource in the workbench. An error message is stored for future reference if the path does not represent a valid new resource path.
Parameters:
  resourcePath - the path to validate boolean indicating validity of the resource path



validateResourceName
protected boolean validateResourceName()(Code)
Returns a boolean indicating whether the resource name rep- resents a valid resource name in the workbench. An error message is stored for future reference if the name does not represent a valid resource name. boolean indicating validity of the resource name



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.