Ontimize Document Management 0.035EN

com.ontimize.dms.client.gui
Class ODMSComponent

java.lang.Object
  extended by IdentifiedAbstractFormComponent
      extended by com.ontimize.dms.client.gui.ODMSComponent
All Implemented Interfaces:
ContextValues, ComponentContext, DocumentEventListener, SearcherComponent, java.lang.Cloneable

public class ODMSComponent
extends IdentifiedAbstractFormComponent
implements SearcherComponent, ComponentContext, DocumentEventListener, java.lang.Cloneable


Field Summary
static java.lang.String ATTR
           
static java.lang.String BASE
           
protected  javax.swing.JPanel buttonsPanel
           
protected  boolean componentEnabled
          Flag to set component underling components.
protected  InternalConfigModel configuration
           
static boolean DEBUG_TIMES
           
static java.lang.String DEFAULT_FILETABLE_CLASS
           
static int DEFAULT_PREFERRED_HEIGHT
           
static int DEFAULT_PREFERRED_WIDTH
           
static java.lang.String DEFAULT_PROPERTY_CLASS
           
static java.lang.String DEFAULT_SEARCH_CLASS
           
static java.lang.String DEFAULT_TREE_CLASS
           
static java.lang.String DEFAULT_TREE_RENDER_CLASS
           
static java.lang.String DEFAULT_VERSION_CLASS
           
static java.lang.String DEFAULT_VIEWER_CLASS
           
static boolean defaultQuickFilter
           
protected  javax.swing.JComponent detailsPanel
           
static java.lang.String EDITABLE_KEY
           
static java.lang.String ENTITY
           
static java.lang.String EXTRA_FIELDS
           
static java.lang.String FIELDS
           
static java.lang.String FILE_NAME_GENERATION
           
protected  java.util.List fileListeners
           
static java.lang.String FILETABLE_CLASS_KEY
           
static java.lang.String HEIGHT_KEY
           
static java.lang.String HIDDEN_FIELDS
           
protected  boolean installQuickFilter
           
protected  java.lang.String internalConfigResource
           
static java.lang.String KEYS
           
protected  javax.swing.JLayeredPane layerPane
           
protected  javax.swing.JLabel loadingLabel
           
protected  javax.swing.JPanel loadingPanel
           
static java.lang.String loadingProgressIconPath
           
protected static java.lang.String MSG_ADD_CONFLICT
           
protected static java.lang.String MSG_ADD_DIR_DISABLED
           
protected static java.lang.String MSG_ADD_FILE_DISABLED
           
protected static java.lang.String MSG_ADD_LIST
           
protected static java.lang.String MSG_ADD_LIST_ERROR
           
protected static java.lang.String MSG_ADD_LIST_EXCEED
           
protected static java.lang.String MSG_ADD_LOCAL_CALL
           
protected static java.lang.String MSG_ADD_LOCAL_REFRESH
           
protected static java.lang.String MSG_ADD_REMOTE_CALL
           
protected static java.lang.String MSG_ADD_REMOTE_CALL_ERROR
           
protected static java.lang.String MSG_ADD_TITLE
           
protected static java.lang.String MSG_DEL_FILE
           
protected static java.lang.String MSG_DIRECTORY_INVALID
           
protected static java.lang.String MSG_DIRECTORY_MSG
           
protected static java.lang.String MSG_DIRECTORY_TITLE
           
protected static java.lang.String MSG_DOWNLOAD_ERROR
           
protected static java.lang.String MSG_DOWNLOAD_VERSION_ERROR
           
protected static java.lang.String MSG_DOWNLOAD_VERSION_TEMP
           
protected static java.lang.String MSG_KEYS_NULL
           
protected static java.lang.String MSG_LINK_DIR
           
protected static java.lang.String MSG_LINK_EMPTY
           
protected static java.lang.String MSG_LINK_FILE
           
protected static java.lang.String MSG_LINK_MSG
           
protected static java.lang.String MSG_LINK_TITLE
           
protected static java.lang.String MSG_PASTE_SAME_TARGET
           
protected static java.lang.String MSG_PROPERTY_RESERVED
           
protected static java.lang.String MSG_REFRESH_ERROR
           
protected static java.lang.String MSG_REMOVE_FILE_EMPTY
           
protected static java.lang.String MSG_RENAME_INVALID_NAME
           
protected static java.lang.String MSG_REPLACE_CHOOSER_MSG
           
protected static java.lang.String MSG_REPLACE_CHOOSER_TITLE
           
protected static java.lang.String MSG_SELECT
           
protected static java.lang.String MSG_SELECT_FILE
           
protected static java.lang.String MSG_UPLOAD_FILE_NULL
           
static java.lang.String PARENT_FIELDS
           
static java.lang.String PERMISSION_MESSAGE_ERROR
           
protected  Viewer preview
           
protected  IPropertyComponent property
           
static java.lang.String PROPERTY_CLASS_KEY
           
static java.lang.String QUICK_FILTER
           
protected  RefreshEventListener refreshListener
           
protected  BasicSearchComponent search
           
static java.lang.String SEARCH_CLASS_KEY
           
protected  javax.swing.JLabel searchLabel
           
static java.lang.String SHOW_PREVIEW
           
static java.lang.String SHOW_PROPERTIES
           
static java.lang.String SHOW_SEARCH
           
static java.lang.String SHOW_SEARCH_ONLY_LOCAL_DIRECTORY
           
static java.lang.String SHOW_SEARCH_RETURN_BUTTON
           
static java.lang.String SHOW_TRANSFER_RESUME_PANEL
           
static java.lang.String SHOW_TREE
           
static java.lang.String SHOW_VERSIONS
           
protected  IFileTable table
           
protected static java.lang.String TAG_DISABLED
           
protected static java.lang.String TAG_SEARCH
           
protected  IODMSTree tree
           
static java.lang.String TREE_CLASS_KEY
           
static java.lang.String TREE_CONFIG
           
static java.lang.String USE_FILETABLE
           
static java.lang.String USE_PROPERTY
           
static java.lang.String USE_TREE
           
static java.lang.String USE_TREE_RENDER
           
static java.lang.String USE_VERSION
           
static java.lang.String USE_VIEWER
           
protected  ITableVersion version
           
static java.lang.String VERSION_CLASS_KEY
           
static java.lang.String VERSION_COLUMNS
           
static java.lang.String VIEWER_CLASS_KEY
           
static java.lang.String VIEWER_FORM
           
static java.lang.String WIDTH_KEY
           
 
Constructor Summary
ODMSComponent(java.util.Hashtable h)
           
 
Method Summary
 void actionSelected(java.lang.String action, java.util.Map params)
          Function called to execute Action
 void addDocumentListener(DocumentListener listener)
           
protected  void checkCurrentKeys(java.util.Map current)
           
protected  void checkList(Document[] documents, java.util.Hashtable result)
           
protected  boolean checkResult(java.lang.String action, java.util.Hashtable result)
           
protected  boolean checkServerPermission(java.lang.String entityName, java.lang.String permissionName)
           
protected  boolean checkVisibleActionPermission(java.lang.String permissionType, java.lang.String permissionName, boolean restricted)
           
protected  boolean checkVisiblePermission()
           
protected  void configureQuickFilter(java.util.Hashtable args)
           
 javax.swing.JPanel createButtonsPanel()
           
 java.util.Map createContext()
           
 java.util.Map createContext(javax.swing.tree.TreePath path)
          Creates a Map with the information that needs server to execute operations.
 java.util.Map createContext(javax.swing.tree.TreePath path, boolean checkNull)
           
protected  java.util.Map createFieldsFromKeys(javax.swing.tree.TreePath path)
           
protected  ComponentPopup createPopup(ComponentSelection parent)
           
 void deleteData()
           
 void doAdd(java.io.File[] files)
           
protected  boolean doEditingStopped(FileChangeEvent e)
           
protected  java.lang.Object doOperation(int code, Document[] documents, java.util.Map params)
           
protected  java.lang.Object doOperation(int code, Document[] documents, java.util.Map params, boolean background)
           
protected  boolean doSaveProperties(Property[] props)
           
 EntityResult executeSearch(java.util.Map params)
           
 boolean fireDocumentAdded(DocumentList list)
           
 int getAction()
           
 java.util.List getActions(ComponentSelection parent)
          Returns a list with all available actions.
 java.util.List getAllowedActions()
          Returns a list with the enabled actions.
 java.lang.Object getAttribute()
           
 java.lang.String getBase()
           
 DocumentCache getClipboard()
           
 InternalConfigModel getConfiguration()
           
 java.util.Hashtable getCurrentExtraFields()
           
 java.util.Hashtable getCurrentFields()
           
protected  java.util.Hashtable getCurrentFields(javax.swing.tree.TreePath path, boolean last)
           
 java.util.Hashtable getCurrentKeys()
          Return hastable keys/values whith the keys defined in the xml file
protected  java.util.Hashtable getCurrentKeys(javax.swing.tree.TreePath path)
           
protected  java.util.Hashtable getCurrentKeys(javax.swing.tree.TreePath path, boolean checkNull)
           
 javax.swing.JComponent getDetailsPanel()
           
 Document getDocument(java.util.Map node)
          Deprecated.  
 java.lang.String getEntity()
           
 java.util.List getExtraFields()
           
 java.util.List getFields()
           
 java.util.List getHiddenFields()
           
 java.util.List getHiddenFields(javax.swing.tree.TreePath path, boolean children)
           
 java.util.List getKeys()
           
 java.lang.String getLabelComponentText()
           
 java.lang.String getName()
           
 java.util.List getParentFields()
           
 java.util.List getParentFields(javax.swing.tree.TreePath path)
           
 java.awt.Dimension getPreferredSize()
           
 Viewer getPreview()
           
 IPropertyComponent getProperty()
           
 RefreshEventListener getRefreshListener()
           
 Document[] getSelectedDocument()
          Returns document content in the selected row
 Document[] getSelectedDocument(ComponentSelection component)
           
 TreeNode getSelectedLeaf()
           
 java.util.Map[] getSelectedNode(ComponentSelection component)
           
 javax.swing.tree.TreePath getSelectedPath()
           
 int getSQLDataType()
           
 IFileTable getTable()
           
 java.util.Vector getTextsToTranslate()
           
 IODMSTree getTree()
           
 java.lang.Object getValue()
           
 ITableVersion getVersion()
           
 java.util.List getVersionColumns()
           
 java.lang.String getViewerForm()
           
 Document getWorkingDirectory()
           
 void init(java.util.Hashtable args)
           
 boolean isEditable()
           
 boolean isEmpty()
           
 boolean isFileNameGenerationEnabled()
           
 boolean isHidden()
           
 boolean isModifiable()
           
 boolean isModified()
           
 boolean isRequired()
           
protected  void message(java.lang.String key, java.util.List l, java.lang.Object parameter)
           
protected  void popupTrigger(ComponentSelection component, java.awt.Point location)
           
 EntityResult refresh()
           Refresh root node component view.
 EntityResult refresh(TreeNode node)
           
 EntityResult refresh(javax.swing.tree.TreePath path)
           
 EntityResult refresh(javax.swing.tree.TreePath path, boolean inBackground)
           
protected  void selectionTrigger(ComponentSelection component)
           
 void setComponentLocale(java.util.Locale l)
           
protected  void setComponentsEditable(boolean editable)
           
protected  void setComponentsEnabled(boolean enabled)
           
 void setDetailsPanel(javax.swing.JComponent detailsPanel)
           
 void setEditable(boolean editable)
           
 void setEnabled(boolean enabled)
           Enabled all internal components and selects the root node of the tree.
 void setEntityResult(EntityResult er, javax.swing.tree.TreePath path)
           
 void setModifiable(boolean modifiable)
           
 void setRefreshListener(RefreshEventListener refreshListener)
           
 void setRequired(boolean required)
           
 void setResourceBundle(java.util.ResourceBundle rb)
           
 void setValue(java.lang.Object value)
           
protected  void showLAlert()
           
 void showLoadingIndicator(boolean visible)
           
 void tableRowsSelected(javax.swing.event.ListSelectionEvent e)
           
protected  void treeSelectedPath(javax.swing.tree.TreePath path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG_TIMES

public static boolean DEBUG_TIMES

ATTR

public static final java.lang.String ATTR
See Also:
Constant Field Values

ENTITY

public static final java.lang.String ENTITY
See Also:
Constant Field Values

KEYS

public static final java.lang.String KEYS
See Also:
Constant Field Values

BASE

public static final java.lang.String BASE
See Also:
Constant Field Values

FIELDS

public static final java.lang.String FIELDS
See Also:
Constant Field Values

EXTRA_FIELDS

public static final java.lang.String EXTRA_FIELDS
See Also:
Constant Field Values

PARENT_FIELDS

public static final java.lang.String PARENT_FIELDS
See Also:
Constant Field Values

HIDDEN_FIELDS

public static final java.lang.String HIDDEN_FIELDS
See Also:
Constant Field Values

VERSION_COLUMNS

public static final java.lang.String VERSION_COLUMNS
See Also:
Constant Field Values

FILE_NAME_GENERATION

public static final java.lang.String FILE_NAME_GENERATION
See Also:
Constant Field Values

VIEWER_FORM

public static final java.lang.String VIEWER_FORM
See Also:
Constant Field Values

TREE_CONFIG

public static final java.lang.String TREE_CONFIG
See Also:
Constant Field Values

SHOW_SEARCH_RETURN_BUTTON

public static final java.lang.String SHOW_SEARCH_RETURN_BUTTON
See Also:
Constant Field Values

SHOW_SEARCH_ONLY_LOCAL_DIRECTORY

public static final java.lang.String SHOW_SEARCH_ONLY_LOCAL_DIRECTORY
See Also:
Constant Field Values

EDITABLE_KEY

public static final java.lang.String EDITABLE_KEY
See Also:
Constant Field Values

HEIGHT_KEY

public static final java.lang.String HEIGHT_KEY
See Also:
Constant Field Values

WIDTH_KEY

public static final java.lang.String WIDTH_KEY
See Also:
Constant Field Values

PERMISSION_MESSAGE_ERROR

public static final java.lang.String PERMISSION_MESSAGE_ERROR
See Also:
Constant Field Values

SHOW_TREE

public static final java.lang.String SHOW_TREE
See Also:
Constant Field Values

SHOW_PREVIEW

public static final java.lang.String SHOW_PREVIEW
See Also:
Constant Field Values

SHOW_PROPERTIES

public static final java.lang.String SHOW_PROPERTIES
See Also:
Constant Field Values

SHOW_VERSIONS

public static final java.lang.String SHOW_VERSIONS
See Also:
Constant Field Values

SHOW_TRANSFER_RESUME_PANEL

public static final java.lang.String SHOW_TRANSFER_RESUME_PANEL
See Also:
Constant Field Values

SHOW_SEARCH

public static final java.lang.String SHOW_SEARCH
See Also:
Constant Field Values

USE_VIEWER

public static final java.lang.String USE_VIEWER
See Also:
Constant Field Values

USE_VERSION

public static final java.lang.String USE_VERSION
See Also:
Constant Field Values

USE_PROPERTY

public static final java.lang.String USE_PROPERTY
See Also:
Constant Field Values

USE_TREE

public static final java.lang.String USE_TREE
See Also:
Constant Field Values

USE_TREE_RENDER

public static final java.lang.String USE_TREE_RENDER
See Also:
Constant Field Values

USE_FILETABLE

public static final java.lang.String USE_FILETABLE
See Also:
Constant Field Values

QUICK_FILTER

public static final java.lang.String QUICK_FILTER
See Also:
Constant Field Values

VIEWER_CLASS_KEY

public static final java.lang.String VIEWER_CLASS_KEY
See Also:
Constant Field Values

VERSION_CLASS_KEY

public static final java.lang.String VERSION_CLASS_KEY
See Also:
Constant Field Values

PROPERTY_CLASS_KEY

public static final java.lang.String PROPERTY_CLASS_KEY
See Also:
Constant Field Values

FILETABLE_CLASS_KEY

public static final java.lang.String FILETABLE_CLASS_KEY
See Also:
Constant Field Values

TREE_CLASS_KEY

public static final java.lang.String TREE_CLASS_KEY
See Also:
Constant Field Values

SEARCH_CLASS_KEY

public static final java.lang.String SEARCH_CLASS_KEY
See Also:
Constant Field Values

DEFAULT_PREFERRED_HEIGHT

public static final int DEFAULT_PREFERRED_HEIGHT
See Also:
Constant Field Values

DEFAULT_PREFERRED_WIDTH

public static final int DEFAULT_PREFERRED_WIDTH
See Also:
Constant Field Values

DEFAULT_VIEWER_CLASS

public static final java.lang.String DEFAULT_VIEWER_CLASS
See Also:
Constant Field Values

DEFAULT_VERSION_CLASS

public static final java.lang.String DEFAULT_VERSION_CLASS
See Also:
Constant Field Values

DEFAULT_PROPERTY_CLASS

public static final java.lang.String DEFAULT_PROPERTY_CLASS
See Also:
Constant Field Values

DEFAULT_FILETABLE_CLASS

public static final java.lang.String DEFAULT_FILETABLE_CLASS
See Also:
Constant Field Values

DEFAULT_TREE_CLASS

public static final java.lang.String DEFAULT_TREE_CLASS
See Also:
Constant Field Values

DEFAULT_TREE_RENDER_CLASS

public static final java.lang.String DEFAULT_TREE_RENDER_CLASS
See Also:
Constant Field Values

DEFAULT_SEARCH_CLASS

public static final java.lang.String DEFAULT_SEARCH_CLASS
See Also:
Constant Field Values

defaultQuickFilter

public static final boolean defaultQuickFilter
See Also:
Constant Field Values

installQuickFilter

protected boolean installQuickFilter

loadingProgressIconPath

public static java.lang.String loadingProgressIconPath

TAG_DISABLED

protected static final java.lang.String TAG_DISABLED
See Also:
Constant Field Values

TAG_SEARCH

protected static final java.lang.String TAG_SEARCH
See Also:
Constant Field Values

MSG_SELECT

protected static final java.lang.String MSG_SELECT
See Also:
Constant Field Values

MSG_SELECT_FILE

protected static final java.lang.String MSG_SELECT_FILE
See Also:
Constant Field Values

MSG_ADD_FILE_DISABLED

protected static final java.lang.String MSG_ADD_FILE_DISABLED
See Also:
Constant Field Values

MSG_ADD_DIR_DISABLED

protected static final java.lang.String MSG_ADD_DIR_DISABLED
See Also:
Constant Field Values

MSG_ADD_TITLE

protected static final java.lang.String MSG_ADD_TITLE
See Also:
Constant Field Values

MSG_ADD_LIST

protected static final java.lang.String MSG_ADD_LIST
See Also:
Constant Field Values

MSG_ADD_LIST_ERROR

protected static final java.lang.String MSG_ADD_LIST_ERROR
See Also:
Constant Field Values

MSG_ADD_LIST_EXCEED

protected static final java.lang.String MSG_ADD_LIST_EXCEED
See Also:
Constant Field Values

MSG_ADD_CONFLICT

protected static final java.lang.String MSG_ADD_CONFLICT
See Also:
Constant Field Values

MSG_ADD_REMOTE_CALL

protected static final java.lang.String MSG_ADD_REMOTE_CALL
See Also:
Constant Field Values

MSG_ADD_REMOTE_CALL_ERROR

protected static final java.lang.String MSG_ADD_REMOTE_CALL_ERROR
See Also:
Constant Field Values

MSG_ADD_LOCAL_CALL

protected static final java.lang.String MSG_ADD_LOCAL_CALL
See Also:
Constant Field Values

MSG_ADD_LOCAL_REFRESH

protected static final java.lang.String MSG_ADD_LOCAL_REFRESH
See Also:
Constant Field Values

MSG_LINK_DIR

protected static final java.lang.String MSG_LINK_DIR
See Also:
Constant Field Values

MSG_LINK_FILE

protected static final java.lang.String MSG_LINK_FILE
See Also:
Constant Field Values

MSG_LINK_TITLE

protected static final java.lang.String MSG_LINK_TITLE
See Also:
Constant Field Values

MSG_LINK_MSG

protected static final java.lang.String MSG_LINK_MSG
See Also:
Constant Field Values

MSG_LINK_EMPTY

protected static final java.lang.String MSG_LINK_EMPTY
See Also:
Constant Field Values

MSG_DEL_FILE

protected static final java.lang.String MSG_DEL_FILE
See Also:
Constant Field Values

MSG_PROPERTY_RESERVED

protected static final java.lang.String MSG_PROPERTY_RESERVED
See Also:
Constant Field Values

MSG_DIRECTORY_TITLE

protected static final java.lang.String MSG_DIRECTORY_TITLE
See Also:
Constant Field Values

MSG_DIRECTORY_MSG

protected static final java.lang.String MSG_DIRECTORY_MSG
See Also:
Constant Field Values

MSG_DIRECTORY_INVALID

protected static final java.lang.String MSG_DIRECTORY_INVALID
See Also:
Constant Field Values

MSG_DOWNLOAD_ERROR

protected static final java.lang.String MSG_DOWNLOAD_ERROR
See Also:
Constant Field Values

MSG_DOWNLOAD_VERSION_TEMP

protected static final java.lang.String MSG_DOWNLOAD_VERSION_TEMP
See Also:
Constant Field Values

MSG_DOWNLOAD_VERSION_ERROR

protected static final java.lang.String MSG_DOWNLOAD_VERSION_ERROR
See Also:
Constant Field Values

MSG_RENAME_INVALID_NAME

protected static final java.lang.String MSG_RENAME_INVALID_NAME
See Also:
Constant Field Values

MSG_REMOVE_FILE_EMPTY

protected static final java.lang.String MSG_REMOVE_FILE_EMPTY
See Also:
Constant Field Values

MSG_PASTE_SAME_TARGET

protected static final java.lang.String MSG_PASTE_SAME_TARGET
See Also:
Constant Field Values

MSG_REPLACE_CHOOSER_TITLE

protected static final java.lang.String MSG_REPLACE_CHOOSER_TITLE
See Also:
Constant Field Values

MSG_REPLACE_CHOOSER_MSG

protected static final java.lang.String MSG_REPLACE_CHOOSER_MSG
See Also:
Constant Field Values

MSG_KEYS_NULL

protected static final java.lang.String MSG_KEYS_NULL
See Also:
Constant Field Values

MSG_REFRESH_ERROR

protected static final java.lang.String MSG_REFRESH_ERROR
See Also:
Constant Field Values

MSG_UPLOAD_FILE_NULL

protected static final java.lang.String MSG_UPLOAD_FILE_NULL
See Also:
Constant Field Values

searchLabel

protected javax.swing.JLabel searchLabel

tree

protected IODMSTree tree

table

protected IFileTable table

search

protected BasicSearchComponent search

detailsPanel

protected javax.swing.JComponent detailsPanel

property

protected IPropertyComponent property

preview

protected Viewer preview

version

protected ITableVersion version

buttonsPanel

protected javax.swing.JPanel buttonsPanel

internalConfigResource

protected java.lang.String internalConfigResource

configuration

protected InternalConfigModel configuration

refreshListener

protected RefreshEventListener refreshListener

componentEnabled

protected boolean componentEnabled
Flag to set component underling components.


fileListeners

protected java.util.List fileListeners

layerPane

protected javax.swing.JLayeredPane layerPane

loadingPanel

protected javax.swing.JPanel loadingPanel

loadingLabel

protected javax.swing.JLabel loadingLabel
Constructor Detail

ODMSComponent

public ODMSComponent(java.util.Hashtable h)
Method Detail

getDetailsPanel

public javax.swing.JComponent getDetailsPanel()

setDetailsPanel

public void setDetailsPanel(javax.swing.JComponent detailsPanel)

getRefreshListener

public RefreshEventListener getRefreshListener()

setRefreshListener

public void setRefreshListener(RefreshEventListener refreshListener)

init

public void init(java.util.Hashtable args)

configureQuickFilter

protected void configureQuickFilter(java.util.Hashtable args)

getLabelComponentText

public java.lang.String getLabelComponentText()

getValue

public java.lang.Object getValue()

isEmpty

public boolean isEmpty()

isModifiable

public boolean isModifiable()

setModifiable

public void setModifiable(boolean modifiable)

isHidden

public boolean isHidden()

getSQLDataType

public int getSQLDataType()

isRequired

public boolean isRequired()

isModified

public boolean isModified()

setRequired

public void setRequired(boolean required)

setEnabled

public void setEnabled(boolean enabled)

Enabled all internal components and selects the root node of the tree.


setComponentsEnabled

protected void setComponentsEnabled(boolean enabled)

createButtonsPanel

public javax.swing.JPanel createButtonsPanel()

getPreferredSize

public java.awt.Dimension getPreferredSize()

isEditable

public boolean isEditable()

setEditable

public void setEditable(boolean editable)

showLoadingIndicator

public void showLoadingIndicator(boolean visible)

setComponentsEditable

protected void setComponentsEditable(boolean editable)

getAttribute

public java.lang.Object getAttribute()
Specified by:
getAttribute in interface ComponentContext

getTree

public IODMSTree getTree()

getTable

public IFileTable getTable()

getProperty

public IPropertyComponent getProperty()

getPreview

public Viewer getPreview()

getVersion

public ITableVersion getVersion()

getClipboard

public DocumentCache getClipboard()

treeSelectedPath

protected void treeSelectedPath(javax.swing.tree.TreePath path)

setValue

public void setValue(java.lang.Object value)

deleteData

public void deleteData()

tableRowsSelected

public void tableRowsSelected(javax.swing.event.ListSelectionEvent e)

doEditingStopped

protected boolean doEditingStopped(FileChangeEvent e)

doAdd

public void doAdd(java.io.File[] files)

doSaveProperties

protected boolean doSaveProperties(Property[] props)

selectionTrigger

protected void selectionTrigger(ComponentSelection component)

popupTrigger

protected void popupTrigger(ComponentSelection component,
                            java.awt.Point location)

createPopup

protected ComponentPopup createPopup(ComponentSelection parent)

getActions

public java.util.List getActions(ComponentSelection parent)
Description copied from interface: ComponentContext

Returns a list with all available actions.

Specified by:
getActions in interface ComponentContext
Returns:
List
See Also:
ComponentPopupItem

getAllowedActions

public java.util.List getAllowedActions()
Description copied from interface: ComponentContext

Returns a list with the enabled actions.

Specified by:
getAllowedActions in interface ComponentContext
Returns:
List with the enabled actions.
See Also:
ComponentActions

getSelectedLeaf

public TreeNode getSelectedLeaf()
Specified by:
getSelectedLeaf in interface ComponentContext

getSelectedPath

public javax.swing.tree.TreePath getSelectedPath()
Specified by:
getSelectedPath in interface ComponentContext

getDocument

public Document getDocument(java.util.Map node)
Deprecated. 

Specified by:
getDocument in interface ComponentContext

getSelectedNode

public java.util.Map[] getSelectedNode(ComponentSelection component)

getSelectedDocument

public Document[] getSelectedDocument()
Returns document content in the selected row

Specified by:
getSelectedDocument in interface ComponentContext

getSelectedDocument

public Document[] getSelectedDocument(ComponentSelection component)

getAction

public int getAction()
Specified by:
getAction in interface ContextValues

getWorkingDirectory

public Document getWorkingDirectory()
Specified by:
getWorkingDirectory in interface ContextValues

getName

public java.lang.String getName()
Specified by:
getName in interface ComponentContext

getConfiguration

public InternalConfigModel getConfiguration()
Specified by:
getConfiguration in interface ComponentContext

getBase

public java.lang.String getBase()
Specified by:
getBase in interface ContextValues

getEntity

public java.lang.String getEntity()

getKeys

public java.util.List getKeys()
Specified by:
getKeys in interface ComponentContext

getCurrentKeys

public java.util.Hashtable getCurrentKeys()
Return hastable keys/values whith the keys defined in the xml file

Specified by:
getCurrentKeys in interface ContextValues
Returns:

getCurrentKeys

protected java.util.Hashtable getCurrentKeys(javax.swing.tree.TreePath path)

getCurrentKeys

protected java.util.Hashtable getCurrentKeys(javax.swing.tree.TreePath path,
                                             boolean checkNull)

checkCurrentKeys

protected void checkCurrentKeys(java.util.Map current)

getFields

public java.util.List getFields()
Specified by:
getFields in interface ComponentContext

getCurrentFields

public java.util.Hashtable getCurrentFields()
Specified by:
getCurrentFields in interface ContextValues

getCurrentFields

protected java.util.Hashtable getCurrentFields(javax.swing.tree.TreePath path,
                                               boolean last)

createFieldsFromKeys

protected java.util.Map createFieldsFromKeys(javax.swing.tree.TreePath path)

getExtraFields

public java.util.List getExtraFields()
Specified by:
getExtraFields in interface ComponentContext

getCurrentExtraFields

public java.util.Hashtable getCurrentExtraFields()
Specified by:
getCurrentExtraFields in interface ContextValues

getParentFields

public java.util.List getParentFields()
Specified by:
getParentFields in interface ContextValues

getParentFields

public java.util.List getParentFields(javax.swing.tree.TreePath path)

getHiddenFields

public java.util.List getHiddenFields()
Specified by:
getHiddenFields in interface ComponentContext

getHiddenFields

public java.util.List getHiddenFields(javax.swing.tree.TreePath path,
                                      boolean children)

getVersionColumns

public java.util.List getVersionColumns()
Specified by:
getVersionColumns in interface ComponentContext

isFileNameGenerationEnabled

public boolean isFileNameGenerationEnabled()
Specified by:
isFileNameGenerationEnabled in interface ContextValues

getViewerForm

public java.lang.String getViewerForm()

setEntityResult

public void setEntityResult(EntityResult er,
                            javax.swing.tree.TreePath path)
Specified by:
setEntityResult in interface SearcherComponent

actionSelected

public void actionSelected(java.lang.String action,
                           java.util.Map params)

Function called to execute Action

See Also:
ComponentActions

executeSearch

public EntityResult executeSearch(java.util.Map params)
Specified by:
executeSearch in interface SearcherComponent

checkResult

protected boolean checkResult(java.lang.String action,
                              java.util.Hashtable result)

checkList

protected void checkList(Document[] documents,
                         java.util.Hashtable result)

refresh

public EntityResult refresh()

Refresh root node component view.

Specified by:
refresh in interface SearcherComponent
Returns:

refresh

public EntityResult refresh(TreeNode node)

refresh

public EntityResult refresh(javax.swing.tree.TreePath path)

refresh

public EntityResult refresh(javax.swing.tree.TreePath path,
                            boolean inBackground)

createContext

public final java.util.Map createContext()
Specified by:
createContext in interface ContextValues

createContext

public java.util.Map createContext(javax.swing.tree.TreePath path)
Description copied from interface: ComponentContext

Creates a Map with the information that needs server to execute operations.

Context is given as a parameter in all server operations.

Specified by:
createContext in interface ComponentContext
Parameters:
path - The current selected path in the tree.
Returns:
Map with the component context keys.

createContext

public java.util.Map createContext(javax.swing.tree.TreePath path,
                                   boolean checkNull)

message

protected void message(java.lang.String key,
                       java.util.List l,
                       java.lang.Object parameter)

doOperation

protected java.lang.Object doOperation(int code,
                                       Document[] documents,
                                       java.util.Map params,
                                       boolean background)

doOperation

protected java.lang.Object doOperation(int code,
                                       Document[] documents,
                                       java.util.Map params)

addDocumentListener

public void addDocumentListener(DocumentListener listener)
Specified by:
addDocumentListener in interface DocumentEventListener

fireDocumentAdded

public boolean fireDocumentAdded(DocumentList list)
Specified by:
fireDocumentAdded in interface DocumentEventListener

showLAlert

protected void showLAlert()

checkVisiblePermission

protected boolean checkVisiblePermission()

checkServerPermission

protected boolean checkServerPermission(java.lang.String entityName,
                                        java.lang.String permissionName)
Parameters:
entityName -
permissionName -
Returns:
Since:
0.030EN

checkVisibleActionPermission

protected boolean checkVisibleActionPermission(java.lang.String permissionType,
                                               java.lang.String permissionName,
                                               boolean restricted)
Parameters:
permissionType -
permissionName -
restricted -
Returns:
Since:
0.030EN

getTextsToTranslate

public java.util.Vector getTextsToTranslate()

setComponentLocale

public void setComponentLocale(java.util.Locale l)

setResourceBundle

public void setResourceBundle(java.util.ResourceBundle rb)

Ontimize Document Management