< prev index next >
modules/javafx.controls/src/main/java/javafx/scene/control/ListView.java
Print this page
rev 10598 : 8185767: Fix broken links in Javadocs
*** 205,215 ****
* {@link ListView#setOnEditCommit(javafx.event.EventHandler)} with your own
* {@link EventHandler}, then you will be removing the default handler. Unless
* you then handle the writeback to the property (or the relevant data source),
* nothing will happen. You can work around this by using the
* {@link ListView#addEventHandler(javafx.event.EventType, javafx.event.EventHandler)}
! * method to add a {@link ListView#EDIT_COMMIT_EVENT} {@link EventType} with
* your desired {@link EventHandler} as the second argument. Using this method,
* you will not replace the default implementation, but you will be notified when
* an edit commit has occurred.</p>
*
* <p>Hopefully this summary answers some of the commonly asked questions.
--- 205,215 ----
* {@link ListView#setOnEditCommit(javafx.event.EventHandler)} with your own
* {@link EventHandler}, then you will be removing the default handler. Unless
* you then handle the writeback to the property (or the relevant data source),
* nothing will happen. You can work around this by using the
* {@link ListView#addEventHandler(javafx.event.EventType, javafx.event.EventHandler)}
! * method to add a {@link ListView#editCommitEvent()} {@link EventType} with
* your desired {@link EventHandler} as the second argument. Using this method,
* you will not replace the default implementation, but you will be notified when
* an edit commit has occurred.</p>
*
* <p>Hopefully this summary answers some of the commonly asked questions.
*** 236,247 ****
* *
**************************************************************************/
/**
* An EventType that indicates some edit event has occurred. It is the parent
! * type of all other edit events: {@link #EDIT_START_EVENT},
! * {@link #EDIT_COMMIT_EVENT} and {@link #EDIT_CANCEL_EVENT}.
* @param <T> the type of the objects stored in this ListView
* @return the event type
*/
@SuppressWarnings("unchecked")
public static <T> EventType<ListView.EditEvent<T>> editAnyEvent() {
--- 236,247 ----
* *
**************************************************************************/
/**
* An EventType that indicates some edit event has occurred. It is the parent
! * type of all other edit events: {@link #editStartEvent()},
! * {@link #editCommitEvent()} and {@link #editCancelEvent()}.
* @param <T> the type of the objects stored in this ListView
* @return the event type
*/
@SuppressWarnings("unchecked")
public static <T> EventType<ListView.EditEvent<T>> editAnyEvent() {
*** 1158,1169 ****
*/
public static final EventType<?> ANY = EDIT_ANY_EVENT;
/**
* Creates a new EditEvent instance to represent an edit event. This
! * event is used for {@link #EDIT_START_EVENT},
! * {@link #EDIT_COMMIT_EVENT} and {@link #EDIT_CANCEL_EVENT} types.
* @param source the source
* @param eventType the event type
* @param newValue the new value
* @param editIndex the edit index
*/
--- 1158,1169 ----
*/
public static final EventType<?> ANY = EDIT_ANY_EVENT;
/**
* Creates a new EditEvent instance to represent an edit event. This
! * event is used for {@link #editStartEvent()},
! * {@link #editCommitEvent()} and {@link #editCancelEvent()} types.
* @param source the source
* @param eventType the event type
* @param newValue the new value
* @param editIndex the edit index
*/
< prev index next >