|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.ide.navigator.DeleteActionHandler<T>
public abstract class DeleteActionHandler<T extends Element>
Helps implements progressive disclosure deletion for Node
.
Extending the class and registering it with DeleteHandlerService
Designed for inheritance.
Nested Class Summary | |
---|---|
static class |
DeleteActionHandler.DeleteOption
|
static class |
DeleteActionHandler.DeleteStrategy<E extends Element>
A delete strategy base class that users can use to define what "delete a node" is in the user's domain. |
static class |
DeleteActionHandler.DetailsTextConfig
|
static class |
DeleteActionHandler.DetailsTextConfigBuilder
|
static interface |
DeleteActionHandler.LookupHelper
A lookup strategy class that will help clients identify a delete action handler for the selection they have have received. |
static class |
DeleteActionHandler.NodeDeleteStrategy
A simple node delete implementation that simply deletes the file, pointed to by the node's URL on the file system. |
static interface |
DeleteActionHandler.SelectedNodesProvider<ElementType extends Element>
A provider class that will return uniform node type selection. |
Constructor Summary | |
---|---|
DeleteActionHandler(Context context)
|
|
DeleteActionHandler(java.util.List<T> nodes)
|
Method Summary | |
---|---|
boolean |
askToConfirm(java.awt.Component windowParent)
|
DeleteActionHandler.DeleteOption |
clarifyToDeleteOrToRemoveFromParentContainer(java.awt.Component dialogOwner)
|
void |
clearStatus()
|
DetailDialog |
createDeleteConfirmationDialog(java.awt.Component dialogOwner)
|
protected abstract java.awt.Component |
createDeleteDetailsComponent()
|
protected void |
deleteDetailsAvailable(boolean detailsAvailable)
To be called by clients, whenever details become available. |
void |
doit()
Performs the actual delete operation. |
Context |
getContext()
|
static DeleteActionHandler.DeleteStrategy<Node> |
getDefaultDeleteStrategy()
|
DeleteActionHandler.DeleteStrategy |
getDeleteStrategy()
|
protected abstract DeleteActionHandler.DetailsTextConfig |
getDetailsTextConfig()
|
protected java.util.List<T> |
getNodes()
|
DeleteActionHandler.DeleteOption |
getSelectedDeleteOption()
|
protected void |
handleNonDeletedURLs(java.util.List<java.net.URL> urls)
Displays feedback to the user as to which URL s weren't deleted. |
protected boolean |
hasOptions()
Whether or not the delete operation has any options. |
boolean |
isSilent()
|
protected void |
preLaunchDialog()
|
boolean |
requireConfirm()
Whether or not to ask for confirmation. |
boolean |
runDialog()
|
protected DeleteActionHandler.DeleteOption |
selectedOption(int optionIndex)
|
protected void |
selectedOptionChanged(DeleteActionHandler.DeleteOption deleteOption)
Invoked every time the user changes selected option. |
void |
setContext(Context context)
|
void |
setDeleteStrategy(DeleteActionHandler.DeleteStrategy deleteStrategy)
|
void |
setSelectedOption(int index)
Set the selected option. |
void |
setSilentMode(boolean silent)
|
void |
setStatus(java.lang.String text,
javax.swing.Icon icon)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DeleteActionHandler(Context context)
public DeleteActionHandler(java.util.List<T> nodes)
Method Detail |
---|
public final void setSilentMode(boolean silent)
public final boolean isSilent()
public final Context getContext()
public final void setContext(Context context)
protected final java.util.List<T> getNodes()
protected abstract DeleteActionHandler.DetailsTextConfig getDetailsTextConfig()
protected abstract java.awt.Component createDeleteDetailsComponent()
protected void preLaunchDialog()
public void doit()
oracle.ide.model.Node
s returned from getNodes()
getNodes()
DeleteStrategy
DeleteStrategy
protected void handleNonDeletedURLs(java.util.List<java.net.URL> urls)
URL
s weren't deleted.
The default implementation display an simple non-actionable dialog
listing all URLs that were not deleted, for whatever reason.
urls
- the URLs the we failed to delete.public boolean requireConfirm()
true
, askToConfirm()
is invoked.
protected boolean hasOptions()
true
if the subclass of DeleteActionHandler
has
any delete options.protected DeleteActionHandler.DeleteOption selectedOption(int optionIndex)
public final void setSelectedOption(int index)
hasOptions()
returns true.
index
- the index of the selected optin..public final void setStatus(java.lang.String text, javax.swing.Icon icon)
public final void clearStatus()
protected void selectedOptionChanged(DeleteActionHandler.DeleteOption deleteOption)
deleteOption
- protected final void deleteDetailsAvailable(boolean detailsAvailable)
detailsAvailable
- public DetailDialog createDeleteConfirmationDialog(java.awt.Component dialogOwner)
public boolean runDialog()
public DeleteActionHandler.DeleteOption clarifyToDeleteOrToRemoveFromParentContainer(java.awt.Component dialogOwner)
public boolean askToConfirm(java.awt.Component windowParent)
public DeleteActionHandler.DeleteOption getSelectedDeleteOption()
public static final DeleteActionHandler.DeleteStrategy<Node> getDefaultDeleteStrategy()
public void setDeleteStrategy(DeleteActionHandler.DeleteStrategy deleteStrategy)
public DeleteActionHandler.DeleteStrategy getDeleteStrategy()
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |