public class ItemEditContext
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
accept()
Accepts the changes made on the item during the in-place editing.
|
void |
cancel()
Cancels the in-place editing mode.
|
java.awt.Rectangle |
getBounds()
Gets the rectangle bounding the item contents.
|
Calendar |
getCalendar()
Gets the
Calendar component, associated with the item. |
boolean |
getIsHorizontal()
Gets a value indicating the item's orientation.
|
Item |
getItem()
Gets the item that is being edited.
|
int |
getTextAlignment()
Gets the alignment of the text of the item being edited.
|
java.awt.Font |
getTextFont()
Gets the font of the text of the item being edited.
|
public void accept()
Invoke this method when the user has confirmed the in-place editing of an item through the custom editor control.
public void cancel()
Invoke this method when the user has canceled the in-place editing of an item through the custom editor control.
public Calendar getCalendar()
Calendar
component, associated with the item.Calendar
object.public java.awt.Rectangle getBounds()
The item is painted inside these bounds, so the custom editor should be displayed in them or near them.
public boolean getIsHorizontal()
Items are painted horizontally or vertically depending on the orientation of the current view.
public int getTextAlignment()
This value corresponds to the Style.getTextAlignment()
of the style
associated with the item being edited.
TextAlignment
constants.public java.awt.Font getTextFont()