Source code: ledestin/swing/EditableListener.java
1 /*
2 * Copyright (C) 2000-2001 Dmitry Macsema. All Rights Reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted under the terms of the following
6 * Open Source license:
7 *
8 * The GNU General Public License, version 2, or any later version, as
9 * published by the Free Software Foundation
10 * (http://www.fsf.org/copyleft/gpl.html);
11 */
12
13 package ledestin.swing;
14
15 import java.util.*;
16
17 /**
18 This listener type is for Editable Swing components, i.e. for those that
19 support such actions as add, edit, remove. There are currently JEditableTable
20 and JEditableTree. All functions have boolean return type, and Editable
21 components will check for it before performing actual action to the component's
22 data model. If any of the listeners will return false, action will not be
23 performed, i.e. actual delete will only be performed if all registered listeners
24 will return true at elementIsRemoved.
25 */
26 public interface EditableListener extends EventListener {
27 // public boolean elementIsAdded(EditableEvent event);
28 // public boolean elementIsEdited(EditableEvent event);
29 public boolean canRemove(EditableEvent event);
30 }