com.ontimize.dms.window.changes
Class SaveDialog
java.lang.Object
EJDialog
com.ontimize.dms.client.gui.ComponentDialog
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.
| 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 |
| 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 |
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
SaveDialog
public SaveDialog(java.awt.Dialog dialog)
SaveDialog
public SaveDialog(java.awt.Frame frame)
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()