|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.pentaho.reporting.libraries.designtime.swing.date.TimeCellEditor
public class TimeCellEditor
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.BaselineResizeBehavior |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
TimeCellEditor(Class dateType)
Constructs a new DatePickerParameterComponent . |
Method Summary | |
---|---|
void |
addCellEditorListener(CellEditorListener l)
Adds a listener to the list that's notified when the editor stops, or cancels editing. |
void |
cancelCellEditing()
Tells the editor to cancel editing and not accept any partially edited value. |
Object |
getCellEditorValue()
Returns the value contained in the editor. |
DateFormat |
getDateFormat()
|
Component |
getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column)
Sets an initial value for the editor. |
boolean |
isCellEditable(EventObject anEvent)
Asks the editor if it can start editing using anEvent . |
void |
removeCellEditorListener(CellEditorListener l)
Removes a listener from the list that's notified |
void |
setDateFormat(DateFormat timeFormat)
|
boolean |
shouldSelectCell(EventObject anEvent)
Returns true if the editing cell should be selected, false otherwise. |
boolean |
stopCellEditing()
Tells the editor to stop editing and accept any partially edited value as the value of the editor. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TimeCellEditor(Class dateType)
DatePickerParameterComponent
.
Method Detail |
---|
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
value
for the editor. This will cause
the editor to stopEditing
and lose any partially
edited value if the editor is editing when this method is called. Returns the component that should be added to the client's
Component
hierarchy. Once installed in the client's
hierarchy this component will then be able to draw and receive
user input.
getTableCellEditorComponent
in interface TableCellEditor
table
- the JTable
that is asking the
editor to edit; can be null
value
- the value of the cell to be edited; it is
up to the specific editor to interpret
and draw the value. For example, if value is
the string "true", it could be rendered as a
string or it could be rendered as a check
box that is checked. null
is a valid valueisSelected
- true if the cell is to be rendered with
highlightingrow
- the row of the cell being editedcolumn
- the column of the cell being edited
public Object getCellEditorValue()
getCellEditorValue
in interface CellEditor
public boolean isCellEditable(EventObject anEvent)
anEvent
. anEvent
is in the invoking
component coordinate system. The editor can not assume the Component returned by
getCellEditorComponent
is installed. This method is intended for the use of client to avoid the cost
of setting up and installing the editor component if editing is not possible. If editing can be started this method
returns true.
isCellEditable
in interface CellEditor
anEvent
- the event the editor should use to consider whether to begin editing or not
shouldSelectCell(java.util.EventObject)
public boolean shouldSelectCell(EventObject anEvent)
shouldSelectCell
in interface CellEditor
anEvent
- the event the editor should use to start editing
isCellEditable(java.util.EventObject)
public boolean stopCellEditing()
stopCellEditing
in interface CellEditor
public void cancelCellEditing()
cancelCellEditing
in interface CellEditor
public void addCellEditorListener(CellEditorListener l)
addCellEditorListener
in interface CellEditor
l
- the CellEditorListenerpublic void removeCellEditorListener(CellEditorListener l)
removeCellEditorListener
in interface CellEditor
l
- the CellEditorListenerpublic void setDateFormat(DateFormat timeFormat)
public DateFormat getDateFormat()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |