public class OwObjectClassView extends OwLayout implements OwTreeView.OwTreeViewEventListner, OwMultipanel
View Module to select the document class of a new document.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Modifier and Type | Class and Description |
---|---|
class |
OwObjectClassView.OwObjectClassTreeViewViewWithStyle
overwrite the object tree view to use own styles
|
static interface |
OwObjectClassView.OwObjectClassViewListner
Event listener for select event.
|
OwLayout.OwDispatchRegion, OwLayout.OwLayoutViewRefrence
Modifier and Type | Field and Description |
---|---|
protected int |
m_iNextButtonIndex
index of the next button in the menu
|
protected OwObjectClassView.OwObjectClassViewListner |
m_listner
event listener for select event
|
protected OwSubMenuView |
m_MenuView
Menu for buttons in the view
|
protected OwObjectClassPreviewView |
m_ObjectClassPreview
View to display the class description as Preview
|
protected OwResource |
m_resource
network resource to get the classes from
|
protected String |
m_TreeItemStyle
overwritten TreeItemStyle for the treeview or null to use default
|
protected String |
m_TreeSelectedItemStyle
overwritten TreeItemSelectedStyle for the treeview or null to use default
|
protected OwObjectClassView.OwObjectClassTreeViewViewWithStyle |
m_TreeView
tree view module to display the OwObject structure
|
static int |
MENU_REGION
region of the tree view
|
static int |
PREVIEW_REGION
region of the tree view
|
static int |
TREE_REGION
region of the tree view
|
CURRENT_MODULE_KEY, FORMULAR_PLACEHOLDER_END_DELIMITER, FORMULAR_PLACEHOLDER_START_DELIMITER, m_externalFormEventTarget
EMPTY_STRING
Constructor and Description |
---|
OwObjectClassView(OwResource resource_p,
int iObjectType_p)
construct a doc class view to select document classes
|
OwObjectClassView(OwResource resource_p,
int iObjectType_p,
OwObjectClassSelectionCfg classSelectionCfg) |
OwObjectClassView(OwResource resource_p,
int iObjectType_p,
String strParentObjectClass_p)
Deprecated.
this will be removed in the future. Please use
OwObjectClassView(OwResource, int, OwObjectClassSelectionCfg) instead. |
Modifier and Type | Method and Description |
---|---|
String |
getFormName()
get the form used for the edit fields
|
protected OwLocation |
getLocation()
The current location, containing the current resource.
Only initialized if setObjectClassProcessor(OwObjectClassProcessor) is called with non-null parameter. |
protected void |
init()
init the target after the context is set.
|
boolean |
isValidated()
check if view has validated its data and the next view can be enabled
|
void |
navigateToClass(OwObjectClass objectClass_p)
navigates to the given class object
NOTE: the tree must have been initialized with navigateClasses already.
|
void |
onNext(javax.servlet.http.HttpServletRequest request_p,
Object oReason_p)
event called when user clicked Lock button in menu
|
protected void |
onRender(Writer w_p)
called when the view should create its HTML content to be displayed
|
void |
onTreeViewNavigateFolder(OwTreeView.OwTreeViewNode node_p)
event called when a user navigates through the tree (using plus minus
icon), but does not open a folder
|
void |
onTreeViewOpenFolder(OwTreeView.OwTreeViewNode node_p)
event called when a user opens a folder to display its document contents
overridden from OwObjectTreeView.OwObjectTreeViewEventListner
|
void |
setEventListner(OwObjectClassView.OwObjectClassViewListner listner_p)
set event listener
|
void |
setItemStyle(String strStyle_p)
set the style for the tree item
|
void |
setNextActivateView(OwView nextView_p)
set the view that is next to this view, displays a next button to activate
|
void |
setObjectClassProcessor(OwObjectClassProcessor objectClassProcessor)
set object class processor
|
void |
setPrevActivateView(OwView prevView_p)
set the view that is prev to this view, displays a prev button to activate
|
void |
setSelectedItemStyle(String strStyle_p)
set the style for the selected tree item
|
addRegion, addView, addView, addViewReference, getIterator, getViewRegion, isRegion, isRegionMaximized, isRegionMinimized, isRegionNormal, renderNamedRegion, renderRegion
activate, detach, getBreadcrumbPart, getDocument, getExternalFormEventTarget, getFormTarget, getIcon, getMaximizeView, getParent, getRenderedNamedRegion, getRenderedRegion, getTitle, getViewList, isFormTargetExternal, isNamedRegion, isShowMaximized, isShowMinimized, isShowNormal, onActivate, onUpdate, render, renderHTMLFormular, serverSideDesignInclude, serverSideInclude, setDocument, setExternalFormTarget, setMaximizeView, setParent, showMaximized, showMinimized, showNormal, usesFormWithAttributes
attach, disableRequestListener, enableRequestListener, getAjaxEventURL, getContext, getEventURL, getFormEventFunction, getFormEventURL, getID, onExternalRequest, onFormEvent, onRequest, updateExternalFormTarget
protected String m_TreeItemStyle
protected String m_TreeSelectedItemStyle
protected OwObjectClassView.OwObjectClassViewListner m_listner
protected OwSubMenuView m_MenuView
protected OwObjectClassPreviewView m_ObjectClassPreview
public static final int TREE_REGION
public static final int MENU_REGION
public static final int PREVIEW_REGION
protected int m_iNextButtonIndex
protected OwObjectClassView.OwObjectClassTreeViewViewWithStyle m_TreeView
protected OwResource m_resource
public OwObjectClassView(OwResource resource_p, int iObjectType_p, String strParentObjectClass_p)
OwObjectClassView(OwResource, int, OwObjectClassSelectionCfg)
instead.resource_p
- the OwResource to get the classes fromiObjectType_p
- int object to browse forstrParentObjectClass_p
- String name of class to start from or null to start browsing from rootpublic OwObjectClassView(OwResource resource_p, int iObjectType_p, OwObjectClassSelectionCfg classSelectionCfg)
resource_p
- iObjectType_p
- classSelectionCfg
- public OwObjectClassView(OwResource resource_p, int iObjectType_p)
resource_p
- the OwResource to get the classes fromiObjectType_p
- int object to browse forpublic void setSelectedItemStyle(String strStyle_p)
public void setItemStyle(String strStyle_p)
public void setObjectClassProcessor(OwObjectClassProcessor objectClassProcessor)
objectClassProcessor
- OwObjectClassProcessorprotected OwLocation getLocation()
setObjectClassProcessor(OwObjectClassProcessor)
is called with non-null parameter.public void setEventListner(OwObjectClassView.OwObjectClassViewListner listner_p)
public String getFormName()
getFormName
in class OwView
protected void init() throws Exception
public void navigateToClass(OwObjectClass objectClass_p) throws Exception
objectClass_p
- OwObjectClassException
public void onTreeViewNavigateFolder(OwTreeView.OwTreeViewNode node_p) throws Exception
OwTreeView.OwTreeViewEventListner
onTreeViewNavigateFolder
in interface OwTreeView.OwTreeViewEventListner
node_p
- the node which triggered the event - the node which is
opened (+) or closed (-)Exception
public void onTreeViewOpenFolder(OwTreeView.OwTreeViewNode node_p) throws Exception
onTreeViewOpenFolder
in interface OwTreeView.OwTreeViewEventListner
node_p
- the node which triggered the event - the opened folder
nodeException
public void setNextActivateView(OwView nextView_p) throws Exception
setNextActivateView
in interface OwMultipanel
nextView_p
- OwViewException
public void onNext(javax.servlet.http.HttpServletRequest request_p, Object oReason_p) throws Exception
oReason_p
- Optional reason object submitted in addMenuItemrequest_p
- HttpServletRequestException
protected void onRender(Writer w_p) throws Exception
public boolean isValidated() throws Exception
isValidated
in interface OwMultipanel
Exception
public void setPrevActivateView(OwView prevView_p) throws Exception
setPrevActivateView
in interface OwMultipanel
prevView_p
- OwViewException
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.