Ontimize 5.2072EN

com.ontimize.util.calendar
Class CalendarDialog.CalendarModel

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended bycom.ontimize.util.calendar.CalendarDialog.CalendarModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel
Enclosing class:
CalendarDialog

public static class CalendarDialog.CalendarModel
extends javax.swing.table.AbstractTableModel

First: Calendar show the days in a typical representation. The header shows the day names in abbreviation mode and the tooltip show the complete names. This component uses a table and a table model

See Also:
Serialized Form

Field Summary
protected  java.util.GregorianCalendar calendar
           
protected  int dayCount
           
protected  java.lang.String[] dayNames
           
protected  java.util.Locale l
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
CalendarDialog.CalendarModel(java.util.Locale l)
           
 
Method Summary
 int getColumnCount()
           
 java.lang.String getColumnName(int index)
           
 int getMonth()
           
 int getRowCount()
           
 java.lang.Object getValueAt(int f, int c)
           
 int getYear()
           
 void setLocale(java.util.Locale l)
           
 void setMonth(int m)
           
 void setYear(int y)
           
protected  void updateModel()
           
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

calendar

protected java.util.GregorianCalendar calendar

dayCount

protected int dayCount

dayNames

protected java.lang.String[] dayNames

l

protected java.util.Locale l
Constructor Detail

CalendarDialog.CalendarModel

public CalendarDialog.CalendarModel(java.util.Locale l)
Method Detail

getColumnName

public java.lang.String getColumnName(int index)

getYear

public int getYear()

getMonth

public int getMonth()

setYear

public void setYear(int y)

setMonth

public void setMonth(int m)

updateModel

protected void updateModel()

setLocale

public void setLocale(java.util.Locale l)

getRowCount

public int getRowCount()

getColumnCount

public int getColumnCount()

getValueAt

public java.lang.Object getValueAt(int f,
                                   int c)

Ontimize