Ontimize Document Management 0.035EN

com.ontimize.dms.window.changes
Class SaveDialog

java.lang.Object
  extended by EJDialog
      extended by com.ontimize.dms.client.gui.ComponentDialog
          extended by com.ontimize.dms.window.changes.SaveDialog
All Implemented Interfaces:
java.awt.event.ActionListener, java.beans.PropertyChangeListener, java.util.EventListener

public class SaveDialog
extends ComponentDialog

This dialog shows the changed files in the local cache.

Allows a custom table model to show related document properties.

Since:
21/05/2009, 25/05/2009 Allows to register listeners when dialog is closed., 26/05/2009 Allows to set a table model in runtime., 15/12/2009 Property button and custom form configuration., 17/12/2009 Changed and improved table model to save the related properties., 18/01/2010 Added delete button.

Field Summary
protected  ClassicButton allUpdateButton
           
protected  ClassicButton allVersionButton
           
protected static java.util.Map DEFAULT_TABLE_ICONS
           
protected static java.util.Map DEFAULT_TABLE_TIPS
           
static java.lang.String DELETE_KEY
           
protected  ClassicButton deleteButton
           
static java.lang.String DOCUMENT_KEY
           
protected  SaveModel model
           
static java.lang.String PROPERTY_KEY
           
protected  ClassicButton propertyButton
           
protected  SaveListener saveListener
           
protected  javax.swing.JTable table
           
protected static java.awt.Dimension TABLE_DIMENSION
           
static java.lang.String UPDATE_KEY
           
protected  ValueWrapper valueWrapper
           
protected  java.lang.String valueWrapperClass
           
static java.lang.String VERSION_KEY
           
 
Fields inherited from class com.ontimize.dms.client.gui.ComponentDialog
accept, body, cancel, footer, header, option, PROPERTY_OPTION, TAG_ACCEPT, TAG_ACCEPT_TIP, TAG_CANCEL, TAG_CANCEL_TIP, TAG_HEADER
 
Constructor Summary
SaveDialog(java.awt.Dialog dialog)
           
SaveDialog(java.awt.Frame frame)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void addRemoveListener(java.awt.event.ActionListener l)
           
 void addSaveListener(SaveListener listener)
           
protected  ClassicButton createAcceptButton()
           
protected  javax.swing.JComponent createBody()
           
protected  javax.swing.JComponent createFooter()
          By default: Accept | Cancel buttons.
protected  javax.swing.table.TableCellRenderer createHeaderRenderer(javax.swing.JTable t)
           
protected  javax.swing.JTable createTable()
           
protected  void fireSaveEvent()
           
protected  java.lang.String getBodyBorder()
           
protected  java.lang.String getCancelButtonText()
           
protected  java.lang.String getDialogTitle()
           
protected  java.lang.String getHeader()
           
 Document getSelected()
           
 void init()
           
protected  void setColumnValue(java.lang.Object columnName, java.lang.Object value)
           
 void setDeleteEnabled(boolean enabled)
           
 void setModel(SaveModel model)
           
 void setValueWrapperClass(java.lang.String valueWrapperClass)
           
 void setVisible(boolean visible)
           
 
Methods inherited from class com.ontimize.dms.client.gui.ComponentDialog
acceptButtonAction, cancelButtonAction, createCancelButton, createHeader, createTitle, getAcceptButtonIcon, getAcceptButtonText, getAcceptButtonTip, getCancelButtonIcon, getCancelButtonTip, getHeaderBorder, getOption, getTextsToTranslate, propertyChange, setComponentLocale, setResourceBundle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION_KEY

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

UPDATE_KEY

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

DELETE_KEY

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

DOCUMENT_KEY

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

PROPERTY_KEY

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

DEFAULT_TABLE_ICONS

protected static java.util.Map DEFAULT_TABLE_ICONS

DEFAULT_TABLE_TIPS

protected static java.util.Map DEFAULT_TABLE_TIPS

TABLE_DIMENSION

protected static final java.awt.Dimension TABLE_DIMENSION

model

protected SaveModel model

table

protected javax.swing.JTable table

saveListener

protected SaveListener saveListener

allVersionButton

protected ClassicButton allVersionButton

allUpdateButton

protected ClassicButton allUpdateButton

deleteButton

protected ClassicButton deleteButton

propertyButton

protected ClassicButton propertyButton

valueWrapperClass

protected java.lang.String valueWrapperClass

valueWrapper

protected ValueWrapper valueWrapper
Constructor Detail

SaveDialog

public SaveDialog(java.awt.Dialog dialog)

SaveDialog

public SaveDialog(java.awt.Frame frame)
Method Detail

init

public void init()
Overrides:
init in class ComponentDialog

getDialogTitle

protected java.lang.String getDialogTitle()
Overrides:
getDialogTitle in class ComponentDialog

getHeader

protected java.lang.String getHeader()
Overrides:
getHeader in class ComponentDialog

getBodyBorder

protected java.lang.String getBodyBorder()
Overrides:
getBodyBorder in class ComponentDialog

createBody

protected javax.swing.JComponent createBody()
Overrides:
createBody in class ComponentDialog

createTable

protected javax.swing.JTable createTable()

createHeaderRenderer

protected javax.swing.table.TableCellRenderer createHeaderRenderer(javax.swing.JTable t)

createFooter

protected javax.swing.JComponent createFooter()
Description copied from class: ComponentDialog

By default: Accept | Cancel buttons.

Overrides:
createFooter in class ComponentDialog

createAcceptButton

protected ClassicButton createAcceptButton()
Overrides:
createAcceptButton in class ComponentDialog

getCancelButtonText

protected java.lang.String getCancelButtonText()
Overrides:
getCancelButtonText in class ComponentDialog

getSelected

public Document getSelected()

setVisible

public void setVisible(boolean visible)
Overrides:
setVisible in class ComponentDialog

setDeleteEnabled

public void setDeleteEnabled(boolean enabled)

setValueWrapperClass

public void setValueWrapperClass(java.lang.String valueWrapperClass)

setModel

public void setModel(SaveModel model)

setColumnValue

protected void setColumnValue(java.lang.Object columnName,
                              java.lang.Object value)

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener
Overrides:
actionPerformed in class ComponentDialog

addRemoveListener

public void addRemoveListener(java.awt.event.ActionListener l)

addSaveListener

public void addSaveListener(SaveListener listener)

fireSaveEvent

protected void fireSaveEvent()

Ontimize Document Management