|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

public interface IExplorerActions<T>
Interface for actions that can be performed on the Explorer.
| Method Summary | |
|---|---|
Transferable |
createNewTransferable()
Create Transferable that is used when user drags and drops node
representing new item somewhere (presumably to scene). |
Transferable |
createTransferable(T data)
Create new Transferable from item data. |
boolean |
delete(T item)
Delete item (e.g. |
boolean |
filter(String query,
boolean caseSensitive,
T item)
Method to filter items in the Explorer. |
String |
getDescription(T item)
Get description of an item (to be used in the tootltip text). |
String |
getDisplayName(T item)
Get text for @item that will be displayed in the explorer. |
String |
getNewItemLabel()
Get label for new item action. |
void |
openEditor(T item)
Open editor for item. |
void |
refresh(Explorer<T> explorer)
Refresh the explorer. |
| Method Detail |
|---|
String getDisplayName(T item)
item - Item that has survived filtration.
String getNewItemLabel()
String getDescription(T item)
item - Item in the result list
boolean filter(String query,
boolean caseSensitive,
T item)
Explorer. Whe user types something
into search box, explorer uses some implementation of this filter to
determine which items should be shown in the result window.
query - String query, what user typed into search windowcaseSensitive - Should the filtering be case sensitive?item - Item that will be evaluated if it should be filtered out or
not
void refresh(Explorer<T> explorer)
boolean delete(T item)
Competence) from the plan, that may include
some questions to the user ("Are you sure?") .
item - Item to be deleted.
void openEditor(T item)
item - Item to be displayedTransferable createTransferable(T data)
Transferable from item data. Used in the explorer for
Drag and drop operation.
data - data that will be transfered, can be null
Transferable createNewTransferable()
Transferable that is used when user drags and drops node
representing new item somewhere (presumably to scene). When the
transferable is asked for data, it queries
the user for the data and returns new item.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||