org.tbee.swing.table
Class GregorianCalendarEditor

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by javax.swing.DefaultCellEditor
          extended by org.tbee.swing.table.DefaultCellEditor
              extended by org.tbee.swing.table.GregorianCalendarEditor
All Implemented Interfaces:
java.io.Serializable, javax.swing.CellEditor, javax.swing.table.TableCellEditor, javax.swing.tree.TreeCellEditor

public class GregorianCalendarEditor
extends DefaultCellEditor

Includes internationalization

Version:
$Revision: 1.21 $
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.DefaultCellEditor
javax.swing.DefaultCellEditor.EditorDelegate
 
Field Summary
static java.lang.String SOURCECODE_VERSION
          Standard variable for determining version of a class file.
 
Fields inherited from class javax.swing.DefaultCellEditor
clickCountToStart, delegate, editorComponent
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
GregorianCalendarEditor()
          initialize the editor with defaults
GregorianCalendarEditor(boolean useIsoNotation)
          initialize the editor with defaults
GregorianCalendarEditor(boolean showDate, boolean showTime)
          initialize the editor with defaults
GregorianCalendarEditor(java.text.Format format)
          initialize the editor with defaults
GregorianCalendarEditor(java.lang.String format)
          initialize the editor with defaults
 
Method Summary
 java.lang.Object getCellEditorValue()
          get the value (after validate is succesful)
 java.text.Format getFormat()
          Format
 boolean getShowDate()
           
 boolean getShowTime()
           
 java.awt.Component getTableCellEditorComponent(javax.swing.JTable t, java.lang.Object value, boolean isSelected, int row, int col)
          get the editor
 boolean getUseIsoNotation()
           
 void setFormat(java.text.Format value)
           
 void setShowDate(boolean value)
          ShowDate, only in non iso mode
 void setShowTime(boolean value)
          ShowTime, only in non iso mode
 void setUseIsoNotation(boolean value)
          UseIsoNotation
 boolean stopCellEditing()
          validate and return false if it failed
 
Methods inherited from class org.tbee.swing.table.DefaultCellEditor
requestFocus, useAsRenderer
 
Methods inherited from class javax.swing.DefaultCellEditor
cancelCellEditing, getClickCountToStart, getComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCell
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.CellEditor
addCellEditorListener, removeCellEditorListener
 

Field Detail

SOURCECODE_VERSION

public static final java.lang.String SOURCECODE_VERSION
Standard variable for determining version of a class file.

See Also:
Constant Field Values
Constructor Detail

GregorianCalendarEditor

public GregorianCalendarEditor()
initialize the editor with defaults


GregorianCalendarEditor

public GregorianCalendarEditor(boolean useIsoNotation)
initialize the editor with defaults


GregorianCalendarEditor

public GregorianCalendarEditor(boolean showDate,
                               boolean showTime)
initialize the editor with defaults


GregorianCalendarEditor

public GregorianCalendarEditor(java.text.Format format)
initialize the editor with defaults


GregorianCalendarEditor

public GregorianCalendarEditor(java.lang.String format)
initialize the editor with defaults

Method Detail

setUseIsoNotation

public void setUseIsoNotation(boolean value)
UseIsoNotation


getUseIsoNotation

public boolean getUseIsoNotation()

setShowDate

public void setShowDate(boolean value)
ShowDate, only in non iso mode


getShowDate

public boolean getShowDate()

setShowTime

public void setShowTime(boolean value)
ShowTime, only in non iso mode


getShowTime

public boolean getShowTime()

getFormat

public java.text.Format getFormat()
Format


setFormat

public void setFormat(java.text.Format value)

stopCellEditing

public boolean stopCellEditing()
validate and return false if it failed

Specified by:
stopCellEditing in interface javax.swing.CellEditor
Overrides:
stopCellEditing in class javax.swing.DefaultCellEditor

getCellEditorValue

public java.lang.Object getCellEditorValue()
get the value (after validate is succesful)

Specified by:
getCellEditorValue in interface javax.swing.CellEditor
Overrides:
getCellEditorValue in class javax.swing.DefaultCellEditor

getTableCellEditorComponent

public java.awt.Component getTableCellEditorComponent(javax.swing.JTable t,
                                                      java.lang.Object value,
                                                      boolean isSelected,
                                                      int row,
                                                      int col)
get the editor

Specified by:
getTableCellEditorComponent in interface javax.swing.table.TableCellEditor
Overrides:
getTableCellEditorComponent in class DefaultCellEditor


Copyright © 2010. All Rights Reserved.