Java Doc for CmsWidgetDialogParameter.java in  » Content-Management-System » opencms » org » opencms » workplace » 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 » Content Management System » opencms » org.opencms.workplace 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.opencms.workplace.CmsWidgetDialogParameter

CmsWidgetDialogParameter
public class CmsWidgetDialogParameter implements I_CmsWidgetParameter(Code)
Implements the widget parameter interface for the use of OpenCms widgets on dialogs that are not based on XML contents.


author:
   Alexander Kandzior
version:
   $Revision: 1.16 $
since:
   6.0.0



Field Summary
final public static  StringDEFAULT_DIALOG_PAGE
     The name of the default dialog page.
final public static  intMAX_OCCURENCES
     The maximum number of occurences of a widget dialog element in a list of elements.
protected  Objectm_baseCollection
     The (optional) base collection for read / writing collection based parameters.
protected  Objectm_baseObject
     The (optional) base object for read / writing the parameter value to.
protected  Stringm_baseObjectProperty
     The (optinal) object property to read / write this parameter value to.
protected  Stringm_defaultValue
     The default value of the parameter.
protected  Stringm_dialogPage
     The name of the dialog (page) the widget is used on.
protected  Throwablem_error
     Indicates if the widget value has an error.
protected  Stringm_id
     The id of the parameter on the form.
protected  intm_index
     The index of this parameter in the (optional) list of parameters.
protected  intm_maxOccurs
     The maximum number of occurences of this parameter.
protected  intm_minOccurs
     The minimum number of occurences of this parameter.
protected  Stringm_name
     The name of the parameter.
protected  Stringm_prefix
     Optional localized key prefix identificator.
protected  Stringm_value
     The value of the parameter.
protected  I_CmsWidgetm_widget
     The widget used for the parameter.

Constructor Summary
public  CmsWidgetDialogParameter(CmsWidgetDialogParameter base, int index)
    
public  CmsWidgetDialogParameter(CmsWidgetDialogParameter base, int index, int originalIndex)
    
public  CmsWidgetDialogParameter(Object base, String property, I_CmsWidget widget)
    
public  CmsWidgetDialogParameter(Object base, String property, String dialogPage, I_CmsWidget widget)
    
public  CmsWidgetDialogParameter(Object base, String property, String htmlName, String dialogPage, I_CmsWidget widget)
    
public  CmsWidgetDialogParameter(Object base, String property, String defaultValue, String dialogPage, I_CmsWidget widget, int minOccurs, int maxOccurs)
    
public  CmsWidgetDialogParameter(Object base, String property, String htmlName, String defaultValue, String dialogPage, I_CmsWidget widget, int minOccurs, int maxOccurs)
    
public  CmsWidgetDialogParameter(String name, I_CmsWidget widget)
    
public  CmsWidgetDialogParameter(String name, I_CmsWidget widget, int minOccurs, int maxOccurs)
    
public  CmsWidgetDialogParameter(String value, String defaultValue, String name, I_CmsWidget widget, String dialog, int minOccurs, int maxOccurs, int index)
    

Method Summary
public  voidcommitValue(CmsWidgetDialog dialog)
    
public static  StringcreateId(String name, int index)
    
public  StringgetDefault(CmsObject cms)
    
public  StringgetDialogPage()
    
public  ThrowablegetError()
    
public  StringgetId()
    
public  intgetIndex()
    
public  StringgetKey()
    
public  intgetMaxOccurs()
    
public  intgetMinOccurs()
    
public  StringgetName()
    
public  StringgetStringValue(CmsObject cms)
    
public  I_CmsWidgetgetWidget()
    
public  booleanhasError()
    
public  booleanhasValue(int index)
    
protected  voidinit(String value, String defaultValue, String name, I_CmsWidget widget, String dialog, int minOccurs, int maxOccurs, int index)
    
public  booleanisCollectionBase()
    
public  voidprepareCommit()
    
public  voidsetError(Throwable error)
    
public  voidsetKeyPrefix(String prefix)
    
public  voidsetStringValue(CmsObject cms, String value)
    
public  voidsetindex(int index)
    

Field Detail
DEFAULT_DIALOG_PAGE
final public static String DEFAULT_DIALOG_PAGE(Code)
The name of the default dialog page.



MAX_OCCURENCES
final public static int MAX_OCCURENCES(Code)
The maximum number of occurences of a widget dialog element in a list of elements.



m_baseCollection
protected Object m_baseCollection(Code)
The (optional) base collection for read / writing collection based parameters.



m_baseObject
protected Object m_baseObject(Code)
The (optional) base object for read / writing the parameter value to.



m_baseObjectProperty
protected String m_baseObjectProperty(Code)
The (optinal) object property to read / write this parameter value to.



m_defaultValue
protected String m_defaultValue(Code)
The default value of the parameter.



m_dialogPage
protected String m_dialogPage(Code)
The name of the dialog (page) the widget is used on.



m_error
protected Throwable m_error(Code)
Indicates if the widget value has an error.



m_id
protected String m_id(Code)
The id of the parameter on the form.



m_index
protected int m_index(Code)
The index of this parameter in the (optional) list of parameters.



m_maxOccurs
protected int m_maxOccurs(Code)
The maximum number of occurences of this parameter.



m_minOccurs
protected int m_minOccurs(Code)
The minimum number of occurences of this parameter.



m_name
protected String m_name(Code)
The name of the parameter.



m_prefix
protected String m_prefix(Code)
Optional localized key prefix identificator.



m_value
protected String m_value(Code)
The value of the parameter.



m_widget
protected I_CmsWidget m_widget(Code)
The widget used for the parameter.




Constructor Detail
CmsWidgetDialogParameter
public CmsWidgetDialogParameter(CmsWidgetDialogParameter base, int index)(Code)
Create a new Widget parameter.


Parameters:
  base - the base of the parameter
Parameters:
  index - the index of this parameter in the list




CmsWidgetDialogParameter
public CmsWidgetDialogParameter(CmsWidgetDialogParameter base, int index, int originalIndex)(Code)
Create a new Widget parameter.


Parameters:
  base - the base of the parameter
Parameters:
  index - the index of this parameter in the list
Parameters:
  originalIndex - the original index in the previous version of the list




CmsWidgetDialogParameter
public CmsWidgetDialogParameter(Object base, String property, I_CmsWidget widget)(Code)
Create a new Widget parameter based on a given object's property.


Parameters:
  base - the base object to map the parameter to / from
Parameters:
  property - the base object property to map the parameter to / from
Parameters:
  widget - the widget used for this parameter




CmsWidgetDialogParameter
public CmsWidgetDialogParameter(Object base, String property, String dialogPage, I_CmsWidget widget)(Code)
Create a new Widget parameter based on a given object's property.


Parameters:
  base - the base object to map the parameter to / from
Parameters:
  property - the base object property to map the parameter to / from
Parameters:
  dialogPage - the dialog page to use the widget on
Parameters:
  widget - the widget used for this parameter




CmsWidgetDialogParameter
public CmsWidgetDialogParameter(Object base, String property, String htmlName, String dialogPage, I_CmsWidget widget)(Code)
Create a new Widget parameter based on a given object's property.


Parameters:
  base - the base object to map the parameter to / from
Parameters:
  property - the base object property to map the parameter to / from
Parameters:
  htmlName - the form id name to use in the generated HTML
Parameters:
  dialogPage - the dialog page to use the widget on
Parameters:
  widget - the widget used for this parameter




CmsWidgetDialogParameter
public CmsWidgetDialogParameter(Object base, String property, String defaultValue, String dialogPage, I_CmsWidget widget, int minOccurs, int maxOccurs)(Code)
Create a new Widget parameter based on a given object's property.


Parameters:
  base - the base object to map the parameter to / from
Parameters:
  property - the base object property to map the parameter to / from
Parameters:
  defaultValue - the default value to use for this parameter
Parameters:
  dialogPage - the dialog page to use the widget on
Parameters:
  widget - the widget used for this paramete
Parameters:
  minOccurs - the required minimum numer of occurences of this parameter
Parameters:
  maxOccurs - the maximum allowed numer of occurences of this parameter




CmsWidgetDialogParameter
public CmsWidgetDialogParameter(Object base, String property, String htmlName, String defaultValue, String dialogPage, I_CmsWidget widget, int minOccurs, int maxOccurs)(Code)
Create a new Widget parameter based on a given object's property.


Parameters:
  base - the base object to map the parameter to / from
Parameters:
  property - the base object property to map the parameter to / from
Parameters:
  htmlName - the form id name to use in the generated HTML
Parameters:
  defaultValue - the default value to use for this parameter
Parameters:
  dialogPage - the dialog page to use the widget on
Parameters:
  widget - the widget used for this paramete
Parameters:
  minOccurs - the required minimum numer of occurences of this parameter
Parameters:
  maxOccurs - the maximum allowed numer of occurences of this parameter




CmsWidgetDialogParameter
public CmsWidgetDialogParameter(String name, I_CmsWidget widget)(Code)
Create a new Widget parameter.


Parameters:
  name - the name of the parameter
Parameters:
  widget - the widget used for this parameter




CmsWidgetDialogParameter
public CmsWidgetDialogParameter(String name, I_CmsWidget widget, int minOccurs, int maxOccurs)(Code)
Create a new Widget parameter.


Parameters:
  name - the name of the parameter
Parameters:
  widget - the widget used for this parameter
Parameters:
  minOccurs - the required minimum numer of occurences of this parameter
Parameters:
  maxOccurs - the maximum allowed numer of occurences of this parameter




CmsWidgetDialogParameter
public CmsWidgetDialogParameter(String value, String defaultValue, String name, I_CmsWidget widget, String dialog, int minOccurs, int maxOccurs, int index)(Code)
Create a new Widget parameter with specified occurence settings.


Parameters:
  value - the initial value of the parameter
Parameters:
  defaultValue - the default value of the parameter
Parameters:
  name - the id of the parameter
Parameters:
  widget - the widget used for this parameter
Parameters:
  dialog - the dialog this parameter is used on
Parameters:
  minOccurs - the required minimum numer of occurences of this parameter
Parameters:
  maxOccurs - the maximum allowed numer of occurences of this parameter
Parameters:
  index - the index of this parameter in the list





Method Detail
commitValue
public void commitValue(CmsWidgetDialog dialog) throws CmsException(Code)
"Commits" (writes) the value of this widget back to the underlying base object.


Parameters:
  dialog - the widget dialog where the parameter is used on
throws:
  CmsException - in case the String value of the widget is invalid for the base Object




createId
public static String createId(String name, int index)(Code)
Returns a from id representation for the given widget name and id.


Parameters:
  name - the widget parameter name
Parameters:
  index - the widget parameter index a from id representation for the given widget name and id




getDefault
public String getDefault(CmsObject cms)(Code)

See Also:   org.opencms.widgets.I_CmsWidgetParameter.getDefault(org.opencms.file.CmsObject)



getDialogPage
public String getDialogPage()(Code)
Returns the name of the dialog (or dialog page) this widget parameter is used on.

This information can be used to create multi-page dialogs where the widgets are spread over several pages.

the name of the dialog (or dialog page) this widget parameter is used on




getError
public Throwable getError()(Code)
Returns the Exception caused when this parameter value was commited, or null if error occured.

the Exception caused when this parameter value was commited




getId
public String getId()(Code)

See Also:   org.opencms.widgets.I_CmsWidgetParameter.getId



getIndex
public int getIndex()(Code)

See Also:   org.opencms.widgets.I_CmsWidgetParameter.getIndex



getKey
public String getKey()(Code)

See Also:   org.opencms.widgets.I_CmsWidgetParameter.getKey



getMaxOccurs
public int getMaxOccurs()(Code)

See Also:   org.opencms.widgets.I_CmsWidgetParameter.getMaxOccurs



getMinOccurs
public int getMinOccurs()(Code)

See Also:   org.opencms.widgets.I_CmsWidgetParameter.getMinOccurs



getName
public String getName()(Code)

See Also:   org.opencms.widgets.I_CmsWidgetParameter.getName



getStringValue
public String getStringValue(CmsObject cms) throws CmsRuntimeException(Code)

See Also:   org.opencms.widgets.I_CmsWidgetParameter.getStringValue(org.opencms.file.CmsObject)



getWidget
public I_CmsWidget getWidget()(Code)
Returns the widget for this parameter.

the widget for this parameter




hasError
public boolean hasError()(Code)

See Also:   org.opencms.widgets.I_CmsWidgetParameter.hasError



hasValue
public boolean hasValue(int index)(Code)
Checks if a value for this widget base type with the given id is available.

This should only be used if the base object is a collection.


Parameters:
  index - the index to check true if a value for this widget base type with the given id is available




init
protected void init(String value, String defaultValue, String name, I_CmsWidget widget, String dialog, int minOccurs, int maxOccurs, int index)(Code)
Initializes a widget parameter with the given values.


Parameters:
  value - the initial value of the parameter
Parameters:
  defaultValue - the default value of the parameter
Parameters:
  name - the id of the parameter
Parameters:
  widget - the widget used for this parameter
Parameters:
  dialog - the dialog this parameter is used on
Parameters:
  minOccurs - the required minimum numer of occurences of this parameter
Parameters:
  maxOccurs - the maximum allowed numer of occurences of this parameter
Parameters:
  index - the index of this parameter in the list




isCollectionBase
public boolean isCollectionBase()(Code)
Returns true if this widget parameter is mapped to a Collection base object.

true if this widget parameter is mapped to a Collection base object




prepareCommit
public void prepareCommit()(Code)
Prepares this widget dialog parameter to be commited.

This is required if the base type is mapped to a Collection object, becasue the collection needs to be cleared before the new values are set.




setError
public void setError(Throwable error)(Code)
Sets the error state of this widget.

If the argument is null then the state is set to "no error".


Parameters:
  error - the error state to set




setKeyPrefix
public void setKeyPrefix(String prefix)(Code)

See Also:   org.opencms.widgets.I_CmsWidgetParameter.setKeyPrefix(java.lang.String)



setStringValue
public void setStringValue(CmsObject cms, String value) throws CmsIllegalArgumentException(Code)

See Also:   org.opencms.widgets.I_CmsWidgetParameter.setStringValue(org.opencms.file.CmsObjectjava.lang.String)



setindex
public void setindex(int index)(Code)
Sets the index to the provided value.


Parameters:
  index - the new index value to set




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.