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


org.opencms.workplace.CmsTabDialog
   org.opencms.workplace.commons.CmsPropertyAdvanced

All known Subclasses:   org.opencms.workplace.commons.CmsPropertyCustom,
CmsPropertyAdvanced
public class CmsPropertyAdvanced extends CmsTabDialog implements I_CmsDialogHandler(Code)
Provides methods for the properties dialog.

The following files use this class:

  • /commons/property_advanced.jsp


author:
   Andreas Zahner
version:
   $Revision: 1.33 $
since:
   6.0.0



Field Summary
final public static  intACTION_SAVE_DEFINE
     Value for the action: save defined property.
final public static  intACTION_SAVE_EDIT
     Value for the action: save edited properties.
final public static  intACTION_SHOW_DEFINE
     Value for the action: show define property form.
final public static  intACTION_SHOW_EDIT
     Value for the action: show edit properties form.
final public static  intBUTTON_DEFINE
     Constant for the "Define" button in the build button method.
final public static  intBUTTON_FINISH
     Constant for the "Finish" button in the build button method.
final public static  StringDIALOG_SAVE_DEFINE
     Request parameter value for the action: save defined property.
final public static  StringDIALOG_SAVE_EDIT
     Request parameter value for the action: save edited properties.
final public static  StringDIALOG_SHOW_DEFAULT
     Request parameter value for the action: show information form.
final public static  StringDIALOG_SHOW_DEFINE
     Request parameter value for the action: show define property form.
final public static  StringDIALOG_SHOW_EDIT
     Request parameter value for the action: show edit properties form.
final public static  StringDIALOG_TYPE
     The dialog type.
final public static  StringMODE_WIZARD
     Value for the dialog mode: new resource wizard.
final public static  StringMODE_WIZARD_CREATEINDEX
     Value for the dialog mode: new resource wizard with creation of index page for new folder.
final public static  StringMODE_WIZARD_INDEXCREATED
     Value for the dialog mode: new resource wizard with index page created in new folder.
final public static  StringPANEL_RESOURCE
     Key name for the resource panel.
final public static  StringPANEL_STRUCTURE
     Key name for the structure panel.
final public static  StringPARAM_DIALOGMODE
     Request parameter name for the new property definition.
final public static  StringPARAM_NEWPROPERTY
     Request parameter name for the new property definition.
final public static  StringPREFIX_HIDDEN
     Prefix for the hidden fields.
final public static  StringPREFIX_RESOURCE
     Prefix for the hidden resource value.
final public static  StringPREFIX_STRUCTURE
     Prefix for the hidden structure value.
final public static  StringPREFIX_USEPROPERTY
     Prefix for the use property checkboxes.
final public static  StringPREFIX_VALUE
     Prefix for the input values.
final public static  StringTAB_RESOURCE
     Name for the shared (resource) property tab.
final public static  StringTAB_STRUCTURE
     Name for the individual (structure) property tab.
final public static  StringURI_PROPERTY_CUSTOM_DIALOG
     The URI to the customized property dialog.
final public static  StringURI_PROPERTY_DIALOG
     The URI to the standard property dialog.
final public static  StringURI_PROPERTY_DIALOG_HANDLER
     The URI to the property dialog handler.

Constructor Summary
public  CmsPropertyAdvanced()
    
public  CmsPropertyAdvanced(CmsJspActionElement jsp)
    
public  CmsPropertyAdvanced(PageContext context, HttpServletRequest req, HttpServletResponse res)
    

Method Summary
public  voidactionCloseDialog()
     Used to close the current JSP dialog.

This method overwrites the close dialog method in the super class, because in case a new folder is created, after this dialog a new xml page might be created.

It tries to include the URI stored in the workplace settings.

public  voidactionDefine()
    
public  voidactionDeleteResource()
    
public  voidactionEdit(HttpServletRequest request)
    
public  StringbuildActivePropertiesList()
    
public  StringbuildEditForm()
    
public  StringbuildSetFormValues()
     Builds the JavaScript to set the property form values delayed.

The values of the properties are not inserted directly in the <input> tag, because there is a display issue when the property values are very long. This method creates JavaScript to set the property input field values delayed. On the JSP, the code which is created from this method has to be executed delayed after the creation of the html form, e.g.

protected  voiddialogButtonsHtml(StringBuffer result, int button, String attribute)
    
public  StringdialogButtonsOkCancelDefine()
    
protected  MapgetActiveProperties()
    
public  StringgetDialogHandler()
    
public  StringgetDialogUri(String resource, CmsJspActionElement jsp)
    
public  StringgetParamDialogmode()
     Returns the value of the dialogmode parameter, or null if this parameter was not provided.

The dialogmode parameter stores the different modes of the property dialog, e.g.

public  StringgetParamIndexPageType()
    
public  StringgetParamNewproperty()
    
public  StringgetParamUsetempfileproject()
    
public static  MapgetPropertyMap(List list)
    
protected  CmsExplorerTypeSettingsgetSettingsForType(String resTypeName)
    
public  ListgetTabParameterOrder()
    
public  ListgetTabs()
    
protected  voidinitWorkplaceRequestValues(CmsWorkplaceSettings settings, HttpServletRequest request)
    
protected  booleanisEditable()
    
public  voidsetParamDialogmode(String value)
    
public  voidsetParamIndexPageType(String paramIndexPageType)
    
public  voidsetParamNewproperty(String value)
    
public  voidsetParamUsetempfileproject(String value)
    

Field Detail
ACTION_SAVE_DEFINE
final public static int ACTION_SAVE_DEFINE(Code)
Value for the action: save defined property.



ACTION_SAVE_EDIT
final public static int ACTION_SAVE_EDIT(Code)
Value for the action: save edited properties.



ACTION_SHOW_DEFINE
final public static int ACTION_SHOW_DEFINE(Code)
Value for the action: show define property form.



ACTION_SHOW_EDIT
final public static int ACTION_SHOW_EDIT(Code)
Value for the action: show edit properties form.



BUTTON_DEFINE
final public static int BUTTON_DEFINE(Code)
Constant for the "Define" button in the build button method.



BUTTON_FINISH
final public static int BUTTON_FINISH(Code)
Constant for the "Finish" button in the build button method.



DIALOG_SAVE_DEFINE
final public static String DIALOG_SAVE_DEFINE(Code)
Request parameter value for the action: save defined property.



DIALOG_SAVE_EDIT
final public static String DIALOG_SAVE_EDIT(Code)
Request parameter value for the action: save edited properties.



DIALOG_SHOW_DEFAULT
final public static String DIALOG_SHOW_DEFAULT(Code)
Request parameter value for the action: show information form.



DIALOG_SHOW_DEFINE
final public static String DIALOG_SHOW_DEFINE(Code)
Request parameter value for the action: show define property form.



DIALOG_SHOW_EDIT
final public static String DIALOG_SHOW_EDIT(Code)
Request parameter value for the action: show edit properties form.



DIALOG_TYPE
final public static String DIALOG_TYPE(Code)
The dialog type.



MODE_WIZARD
final public static String MODE_WIZARD(Code)
Value for the dialog mode: new resource wizard.



MODE_WIZARD_CREATEINDEX
final public static String MODE_WIZARD_CREATEINDEX(Code)
Value for the dialog mode: new resource wizard with creation of index page for new folder.



MODE_WIZARD_INDEXCREATED
final public static String MODE_WIZARD_INDEXCREATED(Code)
Value for the dialog mode: new resource wizard with index page created in new folder.



PANEL_RESOURCE
final public static String PANEL_RESOURCE(Code)
Key name for the resource panel.



PANEL_STRUCTURE
final public static String PANEL_STRUCTURE(Code)
Key name for the structure panel.



PARAM_DIALOGMODE
final public static String PARAM_DIALOGMODE(Code)
Request parameter name for the new property definition.



PARAM_NEWPROPERTY
final public static String PARAM_NEWPROPERTY(Code)
Request parameter name for the new property definition.



PREFIX_HIDDEN
final public static String PREFIX_HIDDEN(Code)
Prefix for the hidden fields.



PREFIX_RESOURCE
final public static String PREFIX_RESOURCE(Code)
Prefix for the hidden resource value.



PREFIX_STRUCTURE
final public static String PREFIX_STRUCTURE(Code)
Prefix for the hidden structure value.



PREFIX_USEPROPERTY
final public static String PREFIX_USEPROPERTY(Code)
Prefix for the use property checkboxes.



PREFIX_VALUE
final public static String PREFIX_VALUE(Code)
Prefix for the input values.



TAB_RESOURCE
final public static String TAB_RESOURCE(Code)
Name for the shared (resource) property tab.



TAB_STRUCTURE
final public static String TAB_STRUCTURE(Code)
Name for the individual (structure) property tab.



URI_PROPERTY_CUSTOM_DIALOG
final public static String URI_PROPERTY_CUSTOM_DIALOG(Code)
The URI to the customized property dialog.



URI_PROPERTY_DIALOG
final public static String URI_PROPERTY_DIALOG(Code)
The URI to the standard property dialog.



URI_PROPERTY_DIALOG_HANDLER
final public static String URI_PROPERTY_DIALOG_HANDLER(Code)
The URI to the property dialog handler.




Constructor Detail
CmsPropertyAdvanced
public CmsPropertyAdvanced()(Code)
Default constructor needed for dialog handler implementation.

Do not use this constructor on JSP pages.




CmsPropertyAdvanced
public CmsPropertyAdvanced(CmsJspActionElement jsp)(Code)
Public constructor with JSP action element.


Parameters:
  jsp - an initialized JSP action element




CmsPropertyAdvanced
public CmsPropertyAdvanced(PageContext context, HttpServletRequest req, HttpServletResponse res)(Code)
Public constructor with JSP variables.


Parameters:
  context - the JSP page context
Parameters:
  req - the JSP request
Parameters:
  res - the JSP response





Method Detail
actionCloseDialog
public void actionCloseDialog() throws JspException(Code)
Used to close the current JSP dialog.

This method overwrites the close dialog method in the super class, because in case a new folder is created, after this dialog a new xml page might be created.

It tries to include the URI stored in the workplace settings. This URI is determined by the frame name, which has to be set in the framename parameter.


throws:
  JspException - if including an element fails




actionDefine
public void actionDefine() throws JspException(Code)
Performs the define property action, will be called by the JSP page.


throws:
  JspException - if problems including sub-elements occur




actionDeleteResource
public void actionDeleteResource() throws JspException(Code)
Deletes the current resource if the dialog is in wizard mode.

If the dialog is not in wizard mode, the resource is not deleted.


throws:
  JspException - if including the error page fails




actionEdit
public void actionEdit(HttpServletRequest request) throws JspException(Code)
Performs the edit properties action, will be called by the JSP page.


Parameters:
  request - the HttpServletRequest
throws:
  JspException - if problems including sub-elements occur




buildActivePropertiesList
public String buildActivePropertiesList()(Code)
Creates the HTML String for the active properties overview of the current resource.

the HTML output String for active properties of the resource




buildEditForm
public String buildEditForm()(Code)
Creates the HTML String for the edit properties form.

The values of the form are set delayed, have a look at the JavaDoc of buildSetFormValues() for a detailed description.

the HTML output String for the edit properties form




buildSetFormValues
public String buildSetFormValues()(Code)
Builds the JavaScript to set the property form values delayed.

The values of the properties are not inserted directly in the <input> tag, because there is a display issue when the property values are very long. This method creates JavaScript to set the property input field values delayed. On the JSP, the code which is created from this method has to be executed delayed after the creation of the html form, e.g. in the <body> tag with the attribute onload="window.setTimeout('doSet()',50);".

the JavaScript to set the property form values delayed




dialogButtonsHtml
protected void dialogButtonsHtml(StringBuffer result, int button, String attribute)(Code)

See Also:   org.opencms.workplace.CmsDialog.dialogButtonsHtml(java.lang.StringBufferintjava.lang.String)



dialogButtonsOkCancelDefine
public String dialogButtonsOkCancelDefine()(Code)
Builds a button row with an "Ok", a "Cancel" and a "Define" button.

the button row




getActiveProperties
protected Map getActiveProperties()(Code)
Returns a map with CmsProperty object values keyed by property keys.

a map with CmsProperty object values




getDialogHandler
public String getDialogHandler()(Code)

See Also:   org.opencms.workplace.I_CmsDialogHandler.getDialogHandler



getDialogUri
public String getDialogUri(String resource, CmsJspActionElement jsp)(Code)

See Also:   org.opencms.workplace.I_CmsDialogHandler.getDialogUri(java.lang.StringCmsJspActionElement)



getParamDialogmode
public String getParamDialogmode()(Code)
Returns the value of the dialogmode parameter, or null if this parameter was not provided.

The dialogmode parameter stores the different modes of the property dialog, e.g. for displaying other buttons in the new resource wizard.

the value of the usetempfileproject parameter




getParamIndexPageType
public String getParamIndexPageType()(Code)
Returns the paramIndexPageType.

the paramIndexPageType




getParamNewproperty
public String getParamNewproperty()(Code)
Returns the value of the new property parameter, or null if this parameter was not provided.

The new property parameter stores the name of the new defined property.

the value of the new property parameter




getParamUsetempfileproject
public String getParamUsetempfileproject()(Code)
Returns the value of the usetempfileproject parameter, or null if this parameter was not provided.

The usetempfileproject parameter stores if the file resides in the temp file project.

the value of the usetempfileproject parameter




getPropertyMap
public static Map getPropertyMap(List list)(Code)
Transforms a list of CmsProperty objects with structure and resource values into a map with CmsProperty object values keyed by property keys.


Parameters:
  list - a list of CmsProperty objects a map with CmsPropery object values keyed by property keys




getSettingsForType
protected CmsExplorerTypeSettings getSettingsForType(String resTypeName)(Code)
Returns the explorer type settings of the resource type, considering eventual references to another type.


Parameters:
  resTypeName - the resource type name the explorer type settings of the resource type




getTabParameterOrder
public List getTabParameterOrder()(Code)

See Also:   org.opencms.workplace.CmsTabDialog.getTabParameterOrder



getTabs
public List getTabs()(Code)

See Also:   org.opencms.workplace.CmsTabDialog.getTabs



initWorkplaceRequestValues
protected void initWorkplaceRequestValues(CmsWorkplaceSettings settings, HttpServletRequest request)(Code)

See Also:   org.opencms.workplace.CmsWorkplace.initWorkplaceRequestValues(org.opencms.workplace.CmsWorkplaceSettingsjavax.servlet.http.HttpServletRequest)



isEditable
protected boolean isEditable()(Code)
Returns whether the properties are editable or not depending on the lock state of the resource and the current project.

true if properties are editable, otherwise false




setParamDialogmode
public void setParamDialogmode(String value)(Code)
Sets the value of the dialogmode parameter.


Parameters:
  value - the value to set




setParamIndexPageType
public void setParamIndexPageType(String paramIndexPageType)(Code)
Sets the paramIndexPageType.


Parameters:
  paramIndexPageType - the paramIndexPageType to set




setParamNewproperty
public void setParamNewproperty(String value)(Code)
Sets the value of the new property parameter.


Parameters:
  value - the value to set




setParamUsetempfileproject
public void setParamUsetempfileproject(String value)(Code)
Sets the value of the usetempfileproject parameter.


Parameters:
  value - the value to set




Fields inherited from org.opencms.workplace.CmsTabDialog
final public static int ACTION_SWITCHTAB(Code)(Java Doc)
final public static String DIALOG_SWITCHTAB(Code)(Java Doc)
final public static String PARAM_SETPRESSED(Code)(Java Doc)
final public static String PARAM_TAB(Code)(Java Doc)

Methods inherited from org.opencms.workplace.CmsTabDialog
public String dialogTabContent(int segment, String title, String attributes)(Code)(Java Doc)
public String dialogTabContentEnd()(Code)(Java Doc)
public String dialogTabContentStart(String title)(Code)(Java Doc)
public String dialogTabContentStart(String title, String attributes)(Code)(Java Doc)
public String dialogTabRow()(Code)(Java Doc)
public int getActiveTab()(Code)(Java Doc)
public String getActiveTabName()(Code)(Java Doc)
public String getParamSetPressed()(Code)(Java Doc)
public String getParamTab()(Code)(Java Doc)
abstract public List getTabParameterOrder()(Code)(Java Doc)
abstract public List getTabs()(Code)(Java Doc)
public String htmlStart()(Code)(Java Doc)
public String htmlStart(String helpUrl)(Code)(Java Doc)
public String paramsAsHidden()(Code)(Java Doc)
public void setParamSetPressed(String value)(Code)(Java Doc)
public void setParamTab(String value)(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.